X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=scripts%2FKbuild.include;h=c664e39be6a6a193ca9b6448c6c01e28b18099b8;hb=0938b6094ee0389e3231db667d0263cac8bff258;hp=650457191a237a50e95271bff67a69ef12295ebb;hpb=3e11350255d9c5d4bd03c2a65769da84c05d3294;p=oweals%2Fu-boot.git diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 650457191a..c664e39be6 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -3,6 +3,7 @@ # Convenient variables comma := , +quote := " squote := ' empty := space := $(empty) $(empty) @@ -161,6 +162,15 @@ ld-option = $(call try-run,\ # Important: no spaces around options ar-option = $(call try-run, $(AR) rc$(1) "$$TMP",$(1),$(2)) +# ld-version +# Usage: $(call ld-version) +# Note this is mainly for HJ Lu's 3 number binutil versions +ld-version = $(shell $(LD) --version | $(srctree)/scripts/ld-version.sh) + +# ld-ifversion +# Usage: $(call ld-ifversion, -ge, 22252, y) +ld-ifversion = $(shell [ $(call ld-version) $(1) $(2) ] && echo $(3)) + ###### ###