kbuild: Allow external modules to use host.progs with no warning

Sam Ravnborg
2004-08-15T20:19:59Z

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/08/15 21:54:22+02:00 sam@mars.ravnborg.org
# kbuild: Allow external modules to use host-progs with no warning
#
# Only warn if $(host-progs) and $(hostptogs-y) are not equal.
# This allows external modules to use:
# hostprogs-y := file ...
# host-progs := $(hostprogs-y)
#
# This is backwards compatible and will not warn.
#
# Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
#
# scripts/Makefile.build
# 2004/08/15 21:54:06+02:00 sam@mars.ravnborg.org +2 -0
# Only warn if $(host-progs) and $(hostptogs-y) are not equal.
# This allows external modules to use:
# hostprogs-y := file ...
# host-progs := $(hostprogs-y)
#
# This is backwards compatible and will not warn.
#
diff -Nru a/scripts/Makefile.build b/scripts/Makefile.build
--- a/scripts/Makefile.build 2004-08-15 22:20:04 +02:00
+++ b/scripts/Makefile.build 2004-08-15 22:20:04 +02:00
@@ -15,8 +15,10 @@
include scripts/Makefile.lib

ifdef host-progs
+ifneq ($(hostprogs-y),$(host-progs))
$(warning kbuild: $(obj)/Makefile - Usage of host-progs is deprecated. Please replace with hostprogs-y!)
hostprogs-y += $(host-progs)
+endif
endif

# Do not include host rules unles needed