Bug 60540 - [TRIVIAL]devicetable-offsets.h (auto-generated) is not removed by "make distclean"
Summary: [TRIVIAL]devicetable-offsets.h (auto-generated) is not removed by "make distc...
Status: NEW
Alias: None
Product: Other
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 low
Assignee: other_other
URL: https://bugs.gentoo.org/show_bug.cgi?...
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-09 22:24 UTC by MDBürkle
Modified: 2013-11-13 19:30 UTC (History)
2 users (show)

See Also:
Kernel Version: 3.10
Subsystem:
Regression: No
Bisected commit-id:


Attachments

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 #>>

Note You need to log in before you can comment on or make changes to this bug.