Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46768
b: refs/heads/master
c: c4184f1
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Feb 8, 2007
1 parent f428668 commit 684c87a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 905adce4094d64a6691df994e424fbf486301adc
refs/heads/master: c4184f117af7441fb83bc413d2214d92920e0289
5 changes: 2 additions & 3 deletions trunk/scripts/Kbuild.include
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,16 @@ 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; \
\
ln -s /dev/null $$OUT; \
if $(1) >/dev/null 2>&1; \
then echo "$(2)"; \
else echo "$(3)"; \
fi; \
rm -f $$OUT)
rm -f $$OUT))
endef

# as-option
Expand Down

0 comments on commit 684c87a

Please sign in to comment.