[10/12] kbuild: Fix hostprogs-y

From: Sam Ravnborg
Date: Fri Aug 13 2004 - 15:08:18 EST


# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/08/10 21:56:40+02:00 sam@xxxxxxxxxxxxxxxxx
# 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@xxxxxxxxxxxx>
#
# scripts/Makefile.host
# 2004/08/10 21:56:24+02:00 sam@xxxxxxxxxxxxxxxxx +1 -1
# Allow same target to be specified more than once
#
diff -Nru a/scripts/Makefile.host b/scripts/Makefile.host
--- a/scripts/Makefile.host 2004-08-13 21:07:50 +02:00
+++ b/scripts/Makefile.host 2004-08-13 21:07:50 +02:00
@@ -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))))
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/