Skip to content

Commit

Permalink
kbuild: always use $(CC) for $(call cc-version)
Browse files Browse the repository at this point in the history
The possibility to specify an optional parameter did not work out as
expected and it was not used - so remove the possibility.

Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
Sam Ravnborg committed Aug 1, 2006
1 parent 002d27b commit 8eb3afe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/Kbuild.include
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ cc-option-align = $(subst -functions=0,,\

# cc-version
# Usage gcc-ver := $(call cc-version, $(CC))
cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh \
$(if $(1), $(1), $(CC)))
cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC))

# cc-ifversion
# Usage: EXTRA_CFLAGS += $(call cc-ifversion, -lt, 0402, -O1)
Expand Down

0 comments on commit 8eb3afe

Please sign in to comment.