diff options
Diffstat (limited to 'scripts/Kbuild.include')
-rw-r--r-- | scripts/Kbuild.include | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 34a87fc77f71..ddf0ebdc2ca8 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
@@ -129,17 +129,15 @@ cc-disable-warning = $(call try-run,\ | |||
129 | $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) -W$(strip $(1)) -c -x c /dev/null -o "$$TMP",-Wno-$(strip $(1))) | 129 | $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) -W$(strip $(1)) -c -x c /dev/null -o "$$TMP",-Wno-$(strip $(1))) |
130 | 130 | ||
131 | # cc-version | 131 | # cc-version |
132 | # Usage gcc-ver := $(call cc-version) | ||
133 | cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC)) | 132 | cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC)) |
134 | 133 | ||
135 | # cc-fullversion | 134 | # cc-fullversion |
136 | # Usage gcc-ver := $(call cc-fullversion) | ||
137 | cc-fullversion = $(shell $(CONFIG_SHELL) \ | 135 | cc-fullversion = $(shell $(CONFIG_SHELL) \ |
138 | $(srctree)/scripts/gcc-version.sh -p $(CC)) | 136 | $(srctree)/scripts/gcc-version.sh -p $(CC)) |
139 | 137 | ||
140 | # cc-ifversion | 138 | # cc-ifversion |
141 | # Usage: EXTRA_CFLAGS += $(call cc-ifversion, -lt, 0402, -O1) | 139 | # Usage: EXTRA_CFLAGS += $(call cc-ifversion, -lt, 0402, -O1) |
142 | cc-ifversion = $(shell [ $(call cc-version) $(1) $(2) ] && echo $(3)) | 140 | cc-ifversion = $(shell [ $(cc-version) $(1) $(2) ] && echo $(3)) |
143 | 141 | ||
144 | # cc-ldoption | 142 | # cc-ldoption |
145 | # Usage: ldflags += $(call cc-ldoption, -Wl$(comma)--hash-style=both) | 143 | # Usage: ldflags += $(call cc-ldoption, -Wl$(comma)--hash-style=both) |
@@ -157,13 +155,12 @@ ld-option = $(call try-run,\ | |||
157 | ar-option = $(call try-run, $(AR) rc$(1) "$$TMP",$(1),$(2)) | 155 | ar-option = $(call try-run, $(AR) rc$(1) "$$TMP",$(1),$(2)) |
158 | 156 | ||
159 | # ld-version | 157 | # ld-version |
160 | # Usage: $(call ld-version) | ||
161 | # Note this is mainly for HJ Lu's 3 number binutil versions | 158 | # Note this is mainly for HJ Lu's 3 number binutil versions |
162 | ld-version = $(shell $(LD) --version | $(srctree)/scripts/ld-version.sh) | 159 | ld-version = $(shell $(LD) --version | $(srctree)/scripts/ld-version.sh) |
163 | 160 | ||
164 | # ld-ifversion | 161 | # ld-ifversion |
165 | # Usage: $(call ld-ifversion, -ge, 22252, y) | 162 | # Usage: $(call ld-ifversion, -ge, 22252, y) |
166 | ld-ifversion = $(shell [ $(call ld-version) $(1) $(2) ] && echo $(3)) | 163 | ld-ifversion = $(shell [ $(ld-version) $(1) $(2) ] && echo $(3)) |
167 | 164 | ||
168 | ###### | 165 | ###### |
169 | 166 | ||