Commit b892afd1 authored by Linus Torvalds's avatar Linus Torvalds

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: default avatarDavid Miller <davem@davemloft.net>
Acked-by: default avatarGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Acked-by: default avatarOleg Verych <olecom@flower.upol.cz>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c4184f11
...@@ -60,16 +60,15 @@ endef ...@@ -60,16 +60,15 @@ endef
# Usage: option = $(call checker-shell,$(CC)...-o $$OUT,option-ok,otherwise) # Usage: option = $(call checker-shell,$(CC)...-o $$OUT,option-ok,otherwise)
# Exit code chooses option. $$OUT is safe location for needless output. # Exit code chooses option. $$OUT is safe location for needless output.
define checker-shell define checker-shell
$(strip $(shell set -e; \
$(shell set -e; \ DIR=$(KBUILD_EXTMOD); \
DIR=$(KBUILD_EXTMOD); \ cd $${DIR:-$(objtree)}; \
cd $${DIR:-$(objtree)}; \ OUT=$$PWD/.$$$$.null; \
OUT=$$PWD/.$$$$.null; \ if $(1) >/dev/null 2>&1; \
if $(1) >/dev/null 2>&1; \ then echo "$(2)"; \
then echo "$(2)"; \ else echo "$(3)"; \
else echo "$(3)"; \ fi; \
fi; \ rm -f $$OUT)
rm -f $$OUT))
endef endef
# as-option # as-option
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment