Skip to content

Commit b892afd

Browse files
author
Linus Torvalds
committed
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>
1 parent c4184f1 commit b892afd

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

‎scripts/Kbuild.include‎

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,15 @@ endef
6060
# Usage: option = $(call checker-shell,$(CC)...-o $$OUT,option-ok,otherwise)
6161
# Exit code chooses option. $$OUT is safe location for needless output.
6262
define checker-shell
63-
$(strip
64-
$(shell set -e; \
65-
DIR=$(KBUILD_EXTMOD); \
66-
cd $${DIR:-$(objtree)}; \
67-
OUT=$$PWD/.$$$$.null; \
68-
if $(1) >/dev/null 2>&1; \
69-
then echo "$(2)"; \
70-
else echo "$(3)"; \
71-
fi; \
72-
rm -f $$OUT))
63+
$(shell set -e; \
64+
DIR=$(KBUILD_EXTMOD); \
65+
cd $${DIR:-$(objtree)}; \
66+
OUT=$$PWD/.$$$$.null; \
67+
if $(1) >/dev/null 2>&1; \
68+
then echo "$(2)"; \
69+
else echo "$(3)"; \
70+
fi; \
71+
rm -f $$OUT)
7372
endef
7473

7574
# as-option

0 commit comments

Comments
 (0)