From c4df7a0366781bb9fd01a198de1f55ccb27ad9a9 Mon Sep 17 00:00:00 2001 From: Sam Ravnborg Date: Sun, 30 Jan 2005 00:34:30 +0100 Subject: kbuild: Introdude KBUILD_NOCMDDEP When tossing around with different gcc compilers there is no way to tell kbuild to ignore the new name of the compiler. The new option KBUILD_NOCMDDEP tell kbuild not to check the commandline for changes. This should be used with care because the resulting kernel may become inconsistent if one part is build with 2.96, and another part build with 3.3.4. So use only when you know what you are doing. Syntax: make KBUILD_NOCMDDEP=1 Original request for this feature came from hpa. Signed-off-by: Sam Ravnborg --- scripts/Makefile.lib | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/Makefile.lib') diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index cffdfbbcfd1d..007551d70536 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -183,8 +183,12 @@ cmd_gzip = gzip -f -9 < $< > $@ # Generic stuff # =========================================================================== +ifneq ($(KBUILD_NOCMDDEP),1) # Check if both arguments has same arguments. Result in empty string if equal -arg-check := $(strip $(filter-out $(1), $(2)) $(filter-out $(2), $(1)) ) +# User may override this check using make KBUILD_NOCMDDEP=1 +_arg-check = $(strip $(filter-out $(1), $(2)) $(filter-out $(2), $(1)) ) + +endif # echo command. Short version is $(quiet) equals quiet, otherwise full command echo-cmd = $(if $($(quiet)cmd_$(1)), \ -- cgit v1.2.3