aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Kbuild.include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-08 11:16:44 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-08 11:16:44 -0500
commitb892afd1e60132a981b963929e352eabf3306ba2 (patch)
tree606cd7f6e725729941cea539618cd24dce5594eb /scripts/Kbuild.include
parentc4184f117af7441fb83bc413d2214d92920e0289 (diff)
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/Kbuild.include')
-rw-r--r--scripts/Kbuild.include19
1 files changed, 9 insertions, 10 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include
index 8d7eabf238c..a1880e854dc 100644
--- a/scripts/Kbuild.include
+++ b/scripts/Kbuild.include
@@ -60,16 +60,15 @@ endef
60# Usage: option = $(call checker-shell,$(CC)...-o $$OUT,option-ok,otherwise) 60# Usage: option = $(call checker-shell,$(CC)...-o $$OUT,option-ok,otherwise)
61# Exit code chooses option. $$OUT is safe location for needless output. 61# Exit code chooses option. $$OUT is safe location for needless output.
62define checker-shell 62define checker-shell
63 $(strip 63$(shell set -e; \
64 $(shell set -e; \ 64 DIR=$(KBUILD_EXTMOD); \
65 DIR=$(KBUILD_EXTMOD); \ 65 cd $${DIR:-$(objtree)}; \
66 cd $${DIR:-$(objtree)}; \ 66 OUT=$$PWD/.$$$$.null; \
67 OUT=$$PWD/.$$$$.null; \ 67 if $(1) >/dev/null 2>&1; \
68 if $(1) >/dev/null 2>&1; \ 68 then echo "$(2)"; \
69 then echo "$(2)"; \ 69 else echo "$(3)"; \
70 else echo "$(3)"; \ 70 fi; \
71 fi; \ 71 rm -f $$OUT)
72 rm -f $$OUT))
73endef 72endef
74 73
75# as-option 74# as-option