]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ctf: do not build in CTF data for no-longer-built-in modules
authorNick Alcock <nick.alcock@oracle.com>
Wed, 10 Oct 2012 18:30:42 +0000 (19:30 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 29 Jun 2015 21:40:34 +0000 (22:40 +0100)
commit3a8d99729fbdaca543392a006fa3168ca09d1b8d
tree8bf316045bb58232800ced79281b5cb6c0cdc8ac
parentb0338a3520450e7bc68503db81c6f9555e582f55
ctf: do not build in CTF data for no-longer-built-in modules

The module-ctf-flags code in Makefile.modpost uses $(wildcard) to include CTF
for all built-in modules (named *.builtin.ctf) inside dtrace_ctf.ko without
needing to know what its name is.  Unfortunately, if the .config is changed to
make a built-in module modular, or to not build it at all, a stale .builtin.ctf
file persists, and is built in to dtrace_ctf.ko despite the absence of any
module corresponding to it.

Since all .builtin.ctf files are regenerated (named .builtin.ctf.new) on every
dwarf2ctf run, the solution is to delete .builtin.ctf files without corresponding
.new files on every dwarf2ctf run.

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
scripts/Makefile.modpost