diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-08 17:16:44 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-08 17:16:44 +0100 |
commit | b892afd1e60132a981b963929e352eabf3306ba2 (patch) | |
tree | 606cd7f6e725729941cea539618cd24dce5594eb /scripts | |
parent | kbuild: make $(checker-shell ) strip spaces around the result (diff) | |
download | linux-b892afd1e60132a981b963929e352eabf3306ba2.tar.xz linux-b892afd1e60132a981b963929e352eabf3306ba2.zip |
kbuild: fix space for good (take 103)
Michal Ostrowski points out what the real problem was: the spaces at the
start of the definition of the 'checker-shell' make function.
Cc: Michal Ostrowski <mostrows@watson.ibm.com>
Acked-by: David Miller <davem@davemloft.net>
Acked-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Acked-by: Oleg Verych <olecom@flower.upol.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Kbuild.include | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 8d7eabf238c0..a1880e854dce 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -60,16 +60,15 @@ endef # Usage: option = $(call checker-shell,$(CC)...-o $$OUT,option-ok,otherwise) # Exit code chooses option. $$OUT is safe location for needless output. define checker-shell - $(strip - $(shell set -e; \ - DIR=$(KBUILD_EXTMOD); \ - cd $${DIR:-$(objtree)}; \ - OUT=$$PWD/.$$$$.null; \ - if $(1) >/dev/null 2>&1; \ - then echo "$(2)"; \ - else echo "$(3)"; \ - fi; \ - rm -f $$OUT)) +$(shell set -e; \ + DIR=$(KBUILD_EXTMOD); \ + cd $${DIR:-$(objtree)}; \ + OUT=$$PWD/.$$$$.null; \ + if $(1) >/dev/null 2>&1; \ + then echo "$(2)"; \ + else echo "$(3)"; \ + fi; \ + rm -f $$OUT) endef # as-option |