summaryrefslogtreecommitdiff
path: root/scripts/Makefile
diff options
context:
space:
mode:
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2003-02-19 04:17:28 -0600
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2003-02-19 04:17:28 -0600
commit46bd1da672d66ccd8a639d3c1f8a166048cca608 (patch)
treea85bc3a930ba54ada76ec20e2bd7e36f48568ef3 /scripts/Makefile
parent8e19dec4605cfd6ab8c3c92794e0eebda597648d (diff)
kbuild: [PATCH] put genksyms in scripts dir
This puts genksyms into scripts/genksyms/. genksyms used to be maintained externally, though the only possible user was the kernel build. Moving it into the kernel sources makes it easier to keep it uptodate, like for example updating it to generate linker scripts directly instead of postprocessing the generated header file fragments with sed, as we do currently. Also, genksyms does not handle __typeof__, which needs to be fixed since some of the exported symbol in the kernel are defined using __typeof__. (Rusty Russell/me)
Diffstat (limited to 'scripts/Makefile')
-rw-r--r--scripts/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/Makefile b/scripts/Makefile
index 287694dddf69..3b00318d0bc6 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -14,11 +14,13 @@ build-targets := $(host-progs) empty.o
modpost-objs := modpost.o file2alias.o
+subdir-$(CONFIG_MODVERSIONS) += genksyms
+
# Let clean descend into subdirs
-subdir- := lxdialog kconfig
+subdir- += lxdialog kconfig
# fixdep is needed to compile other host programs
-$(addprefix $(obj)/,$(filter-out fixdep,$(build-targets))): $(obj)/fixdep
+$(addprefix $(obj)/,$(filter-out fixdep,$(build-targets)) $(subdir-y)): $(obj)/fixdep
# dependencies on generated files need to be listed explicitly