Commit dd33c03b authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Michal Marek

kbuild: fix cc-ifversion macro

The macro "cc-version" takes no argument.  Drop $(CC) from the
"cc-ifversion" definition.
Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent c22bd32c
......@@ -139,7 +139,7 @@ cc-fullversion = $(shell $(CONFIG_SHELL) \
# cc-ifversion
# Usage: EXTRA_CFLAGS += $(call cc-ifversion, -lt, 0402, -O1)
cc-ifversion = $(shell [ $(call cc-version, $(CC)) $(1) $(2) ] && echo $(3))
cc-ifversion = $(shell [ $(call cc-version) $(1) $(2) ] && echo $(3))
# cc-ldoption
# Usage: ldflags += $(call cc-ldoption, -Wl$(comma)--hash-style=both)
......
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