From 2abce4e05462b4b0c9ca196174ea3551eb539681 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 8 Feb 2007 08:16:44 -0800 Subject: [PATCH] --- yaml --- r: 46769 b: refs/heads/master c: b892afd1e60132a981b963929e352eabf3306ba2 h: refs/heads/master i: 46767: f4286687912171e440ecde140acbb6bd7b054da5 v: v3 --- [refs] | 2 +- trunk/scripts/Kbuild.include | 19 +++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/[refs] b/[refs] index d63ce005cb15..2cd005b6c16d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c4184f117af7441fb83bc413d2214d92920e0289 +refs/heads/master: b892afd1e60132a981b963929e352eabf3306ba2 diff --git a/trunk/scripts/Kbuild.include b/trunk/scripts/Kbuild.include index 8d7eabf238c0..a1880e854dce 100644 --- a/trunk/scripts/Kbuild.include +++ b/trunk/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