Commit 93e66df2 authored by Sam Ravnborg's avatar Sam Ravnborg

kbuild: fix cc-version

cc-version needs to use $(shell to get the gcc version.
Before if gave the following error when building the kernel:

/bin/sh: line 1: [: too many arguments

And all checks for gcc version were broken.
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent c3ea9b6a
...@@ -279,8 +279,8 @@ cc-option-yn = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \ ...@@ -279,8 +279,8 @@ cc-option-yn = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
# cc-version # cc-version
# Usage gcc-ver := $(call cc-version $(CC)) # Usage gcc-ver := $(call cc-version $(CC))
cc-version = $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh \ cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh \
$(if $(1), $(1), $(CC)) $(if $(1), $(1), $(CC)))
# Look for make include files relative to root of kernel src # Look for make include files relative to root of kernel src
......
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