From a82bae6ec6eb34d0b25eb5d26fcf300d2a7fd27f Mon Sep 17 00:00:00 2001 From: Sam Ravnborg Date: Mon, 16 Aug 2004 01:54:22 +0200 Subject: 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 --- scripts/Makefile.build | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts') diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 9312926161fe..c48adfe03a73 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -15,9 +15,11 @@ include $(obj)/Makefile 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 ifneq ($(hostprogs-y)$(hostprogs-m),) -- cgit v1.2.3