diff options
| author | Sam Ravnborg <sam@mars.ravnborg.org> | 2005-01-30 00:34:30 +0100 |
|---|---|---|
| committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2005-01-30 00:34:30 +0100 |
| commit | c4df7a0366781bb9fd01a198de1f55ccb27ad9a9 (patch) | |
| tree | b572421f3a1b17cbb31eae3a7f472ba3de027283 | |
| parent | 28a4d0aa3461c278d72a7c0ad130492ff7606daf (diff) | |
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 <sam@ravnborg.org>
| -rw-r--r-- | scripts/Makefile.lib | 6 |
1 files changed, 5 insertions, 1 deletions
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)), \ |
