aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2004-08-11 01:56:40 +0200
committerSam Ravnborg <sam@mars.ravnborg.org>2004-08-11 01:56:40 +0200
commit3fe519b21b33a395c2e3b01ee70289a0899014ee (patch)
tree984d81221053c6db1a1a7a841a6e72ad752bceff /scripts
parentff08974850158f4c4d815840f7c3e82a4aa12c34 (diff)
downloadhistory-3fe519b21b33a395c2e3b01ee70289a0899014ee.tar.gz
kbuild: Fix hostprogs-y
Allow the same target to be specified more than once without causing a warnign from make. The same target may be specified twice when using the following pattern: hostprogs-$(CONFIG_FOO) += program hostprogs-$(CONFIG_BAR) += program Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.host2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.host b/scripts/Makefile.host
index 04a79033fbcea5..0a5d8cafa135b7 100644
--- a/scripts/Makefile.host
+++ b/scripts/Makefile.host
@@ -30,7 +30,7 @@
# libkconfig.so as the executable conf.
# Note: Shared libraries consisting of C++ files are not supported
-__hostprogs := $(hostprogs-y)$(hostprogs-m)
+__hostprogs := $(sort $(hostprogs-y)$(hostprogs-m))
# hostprogs-y := tools/build may have been specified. Retreive directory
obj-dirs += $(foreach f,$(__hostprogs), $(if $(dir $(f)),$(dir $(f))))