Bug 60540

Summary: [TRIVIAL]devicetable-offsets.h (auto-generated) is not removed by "make distclean"
Product: Other Reporter: MDBürkle (dominik.buerkle)
Component: OtherAssignee: other_other
Status: NEW ---    
Severity: low CC: alan, kernel
Priority: P1    
Hardware: All   
OS: Linux   
URL: https://bugs.gentoo.org/show_bug.cgi?id=476098
Kernel Version: 3.10 Subsystem:
Regression: No Bisected commit-id:

Description MDBürkle 2013-07-09 22:24:15 UTC
Hi,

in kernels 3.9.[236], the file scripts/mod/devicetable-offsets.h is generated by (at least) "make modules_prepare".

That same file is not removed by "make distclean".

Kernel 3.9.9 has this behaviour, too.

Gentoo-Sources-3.10.0's "make distclean" removes that file.

I guess a single line in scripts/mod/Makefile does the trick:
  targets += $(devicetable-offsets-file)

Kind regards,
mdbuerkle


lapmdb-hpl src #>> grep -ie 'devicetable-offsets' $( find linux-3.9.9 -iname 'makefile' )
linux-3.9.9/scripts/mod/Makefile:devicetable-offsets-file := devicetable-offsets.h
linux-3.9.9/scripts/mod/Makefile:scripts/mod/devicetable-offsets.s: scripts/mod/devicetable-offsets.c FORCE
linux-3.9.9/scripts/mod/Makefile:$(obj)/$(devicetable-offsets-file): scripts/mod/devicetable-offsets.s
linux-3.9.9/scripts/mod/Makefile:$(obj)/file2alias.o: $(obj)/$(devicetable-offsets-file)
lapmdb-hpl src #>> grep -ie 'devicetable-offsets' $( find linux-3.10.0-gentoo/ -iname 'makefile' )
linux-3.10.0-gentoo/scripts/mod/Makefile:devicetable-offsets-file := devicetable-offsets.h
linux-3.10.0-gentoo/scripts/mod/Makefile:scripts/mod/devicetable-offsets.s: scripts/mod/devicetable-offsets.c FORCE
linux-3.10.0-gentoo/scripts/mod/Makefile:$(obj)/$(devicetable-offsets-file): scripts/mod/devicetable-offsets.s
linux-3.10.0-gentoo/scripts/mod/Makefile:targets += $(devicetable-offsets-file)
linux-3.10.0-gentoo/scripts/mod/Makefile:$(obj)/file2alias.o: $(obj)/$(devicetable-offsets-file)
lapmdb-hpl src #>>