summaryrefslogtreecommitdiff
path: root/scripts/Makefile
diff options
context:
space:
mode:
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2003-02-14 10:13:33 -0600
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2003-02-14 10:13:33 -0600
commitf864c7c2f6732d95cb30cf7b0b2a02c40e1c2bc8 (patch)
treeea2b2c55560a281cd09a95a77a687adfd170fabc /scripts/Makefile
parentcbc98ae5392ed151ecf74ad41c3ec7b0cb5547bb (diff)
kbuild: Merge file2alias into scripts/modpost.c
Up to now, we called "nm" to find the symbol table in vmlinux / modules. Using code from scripts/file2alias.c allows us to do that parsing ourselves, which is faster and will give us the opportunity to merge the MODULE_DEVICE_TABLE() parsing into modpost, too.
Diffstat (limited to 'scripts/Makefile')
-rw-r--r--scripts/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/Makefile b/scripts/Makefile
index 59bdaae2e5b7..eeed3759799e 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -9,9 +9,11 @@
# conmakehash: Create arrays for initializing the kernel console tables
host-progs := fixdep split-include conmakehash docproc kallsyms modpost \
- file2alias mk_elfconfig
+ mk_elfconfig
build-targets := $(host-progs) empty.o
+modpost-objs := modpost.o file2alias.o
+
# Let clean descend into subdirs
subdir- := lxdialog kconfig
@@ -20,12 +22,12 @@ $(addprefix $(obj)/,$(filter-out fixdep,$(host-progs))): $(obj)/fixdep
# dependencies on generated files need to be listed explicitly
-$(obj)/file2alias: $(obj)/elfconfig.h
+$(obj)/modpost.o $(obj)/file2alias.o: $(obj)/elfconfig.h
-quiet_cmd_elfconfig = MKTARGET $@
+quiet_cmd_elfconfig = MKELF $@
cmd_elfconfig = $(obj)/mk_elfconfig < $< > $@
$(obj)/elfconfig.h: $(obj)/empty.o $(obj)/mk_elfconfig FORCE
$(call if_changed,elfconfig)
-targets += $(obj)/target.h
+targets += $(obj)/elfconfig.h