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:
Dirk Brandewie 2015-06-01 09:48:10 -07:00 committed by Anas Nashif
commit f25f9b37ea

View file

@ -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,)