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

From: Sam Ravnborg
Date: Sun Aug 15 2004 - 15:23:43 EST


# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/08/15 21:54:22+02:00 sam@xxxxxxxxxxxxxxxxx
# 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@xxxxxxxxxxxx>
#
# scripts/Makefile.build
# 2004/08/15 21:54:06+02:00 sam@xxxxxxxxxxxxxxxxx +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
-
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/