aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2003-03-11 00:03:40 +0100
committerSam Ravnborg <sam@mars.ravnborg.org>2003-03-11 00:03:40 +0100
commit87b2da2b95644551d44dce487b818155bd4b0f9c (patch)
treeb1344c7dd551c8127bd9ffcec98302aa4b7879c1 /scripts
parentf94e5fd7e5d09a56a60670a9bb211a791654bba8 (diff)
downloadhistory-87b2da2b95644551d44dce487b818155bd4b0f9c.tar.gz
kbuild: build-targets replaced with always
The former name "kbuild-targets" did not give the user the intuitive feeling that this target will be build regards less of any dependencies no matter if we compile modules or not. The new name "always" imply that this will be build always, and tus is more informative. Fixed the few users of build-targets, and added a warning in Makefile.build
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile10
-rw-r--r--scripts/Makefile.build9
-rw-r--r--scripts/Makefile.clean9
-rw-r--r--scripts/Makefile.lib2
-rw-r--r--scripts/genksyms/Makefile2
-rw-r--r--scripts/lxdialog/Makefile4
6 files changed, 18 insertions, 18 deletions
diff --git a/scripts/Makefile b/scripts/Makefile
index cf1ba16eb69c8..658b93f061ac9 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -8,11 +8,11 @@
# docproc: Preprocess .tmpl file in order to generate .sgml docs
# conmakehash: Create arrays for initializing the kernel console tables
-host-progs := fixdep split-include conmakehash docproc kallsyms modpost \
- mk_elfconfig
-build-targets := $(host-progs) empty.o
+host-progs := fixdep split-include conmakehash docproc kallsyms modpost \
+ mk_elfconfig
+always := $(host-progs) empty.o
-modpost-objs := modpost.o file2alias.o
+modpost-objs := modpost.o file2alias.o
subdir-$(CONFIG_MODVERSIONS) += genksyms
@@ -20,7 +20,7 @@ subdir-$(CONFIG_MODVERSIONS) += genksyms
subdir- += lxdialog kconfig
# fixdep is needed to compile other host programs
-$(addprefix $(obj)/,$(filter-out fixdep,$(build-targets)) $(subdir-y)): $(obj)/fixdep
+$(addprefix $(obj)/,$(filter-out fixdep,$(always)) $(subdir-y)): $(obj)/fixdep
# dependencies on generated files need to be listed explicitly
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index d54b2dc5d1e83..4f3f9e3346a9b 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -19,6 +19,10 @@ ifdef EXTRA_TARGETS
$(warning kbuild: $(obj)/Makefile - Usage of EXTRA_TARGETS is obsolete in 2.5. Please fix!)
endif
+ifdef build-targets
+$(warning kbuild: $(obj)/Makefile - Usage of build-targets is obsolete in 2.5. Please fix!)
+endif
+
ifdef export-objs
$(warning kbuild: $(obj)/Makefile - Usage of export-objs is obsolete in 2.5. Please fix!)
endif
@@ -59,7 +63,7 @@ touch-module = @echo $(@:.o=.ko) > $(MODVERDIR)/$(@F:.o=.mod)
__build: $(if $(KBUILD_BUILTIN),$(O_TARGET) $(L_TARGET) $(extra-y)) \
$(if $(KBUILD_MODULES),$(obj-m)) \
- $(subdir-ym) $(build-targets)
+ $(subdir-ym) $(always)
@:
# Module versioning
@@ -202,8 +206,7 @@ cmd_as_o_S = $(CC) $(a_flags) -c -o $@ $<
%.o: %.S FORCE
$(call if_changed_dep,as_o_S)
-targets += $(real-objs-y) $(real-objs-m) $(extra-y) $(MAKECMDGOALS) \
- $(build-targets)
+targets += $(real-objs-y) $(real-objs-m) $(extra-y) $(MAKECMDGOALS) $(always)
# Build the compiled-in targets
# ---------------------------------------------------------------------------
diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean
index a4eaa129063c1..dc734426699f3 100644
--- a/scripts/Makefile.clean
+++ b/scripts/Makefile.clean
@@ -28,16 +28,13 @@ subdir-ymn := $(sort $(subdir-ym) $(subdir-n) $(subdir-))
# Add subdir path
-extra-y := $(addprefix $(obj)/,$(extra-y) $(EXTRA_TARGETS))
-targets := $(addprefix $(obj)/,$(targets))
-clean-files := $(addprefix $(obj)/,$(clean-files))
-host-progs := $(addprefix $(obj)/,$(host-progs))
subdir-ymn := $(addprefix $(obj)/,$(subdir-ymn))
+__clean-files := $(wildcard $(addprefix $(obj)/, \
+ $(extra-y) $(EXTRA_TARGETS) $(always) $(host-progs) \
+ $(targets) $(clean-files)))
# ==========================================================================
-__clean-files := $(wildcard $(extra-y) $(host-progs) $(clean-files) $(targets))
-
quiet_cmd_clean = CLEAN $(obj)
cmd_clean = rm -f $(__clean-files); $(clean-rule)
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 81952e85d25f5..5d4b44b7150ab 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -87,7 +87,7 @@ host-cshobjs := $(sort $(foreach m,$(host-cshlib),$($(m:.so=-objs))))
# Add subdir path
extra-y := $(addprefix $(obj)/,$(extra-y))
-build-targets := $(addprefix $(obj)/,$(build-targets))
+always := $(addprefix $(obj)/,$(always))
targets := $(addprefix $(obj)/,$(targets))
obj-y := $(addprefix $(obj)/,$(obj-y))
obj-m := $(addprefix $(obj)/,$(obj-m))
diff --git a/scripts/genksyms/Makefile b/scripts/genksyms/Makefile
index 771d2dc303cf8..6d9e57472fc1f 100644
--- a/scripts/genksyms/Makefile
+++ b/scripts/genksyms/Makefile
@@ -1,6 +1,6 @@
host-progs := genksyms
-build-targets := $(host-progs)
+always := $(host-progs)
genksyms-objs := genksyms.o parse.o lex.o
diff --git a/scripts/lxdialog/Makefile b/scripts/lxdialog/Makefile
index f4b40f078ee8e..fe959bd22a6ad 100644
--- a/scripts/lxdialog/Makefile
+++ b/scripts/lxdialog/Makefile
@@ -15,8 +15,8 @@ endif
endif
endif
-host-progs := lxdialog
-build-targets := $(host-progs)
+host-progs := lxdialog
+always := $(host-progs)
lxdialog-objs := checklist.o menubox.o textbox.o yesno.o inputbox.o \
util.o lxdialog.o msgbox.o