kbuild: Remove compilation tool command line validation
To support multiple versions of the compilation tools GCC etal the original Kbuild would execute the tool to ascertain if the argument being added to command line was compatible with the version of the tool installed on the system. This causes significant overhead and is not required since we specify the minimum version of the tools required for the build. Change-Id: I23d811bee9e89bf7549449c679adbfa02efd94de Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
This commit is contained in:
parent
f9360e8069
commit
f25f9b37ea
1 changed files with 10 additions and 7 deletions
|
@ -86,14 +86,17 @@ TMPOUT := $(if $(KBUILD_EXTMOD),$(firstword $(KBUILD_EXTMOD))/)
|
|||
# Usage: option = $(call try-run, $(CC)...-o "$$TMP",option-ok,otherwise)
|
||||
# Exit code chooses option. "$$TMP" is can be used as temporary file and
|
||||
# is automatically cleaned up.
|
||||
# try-run = $(shell set -e; \
|
||||
# TMP="$(TMPOUT).$$$$.tmp"; \
|
||||
# TMPO="$(TMPOUT).$$$$.o"; \
|
||||
# if ($(1)) >/dev/null 2>&1; \
|
||||
# then echo "$(2)"; \
|
||||
# else echo "$(3)"; \
|
||||
# fi; \
|
||||
# rm -f "$$TMP" "$$TMPO")
|
||||
try-run = $(shell set -e; \
|
||||
TMP="$(TMPOUT).$$$$.tmp"; \
|
||||
TMPO="$(TMPOUT).$$$$.o"; \
|
||||
if ($(1)) >/dev/null 2>&1; \
|
||||
then echo "$(2)"; \
|
||||
else echo "$(3)"; \
|
||||
fi; \
|
||||
rm -f "$$TMP" "$$TMPO")
|
||||
echo "$(2)";)
|
||||
|
||||
|
||||
# as-option
|
||||
# Usage: cflags-y += $(call as-option,-Wa$(comma)-isa=foo,)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue