Merge pull request #1220 from jwerner-chromium/JW_ld_bfd
Makefile: Use ld.bfd linker if available
This commit is contained in:
commit
e282b9d97d
6
Makefile
6
Makefile
|
@ -127,6 +127,12 @@ NM := ${CROSS_COMPILE}nm
|
||||||
PP := ${CROSS_COMPILE}gcc -E
|
PP := ${CROSS_COMPILE}gcc -E
|
||||||
DTC ?= dtc
|
DTC ?= dtc
|
||||||
|
|
||||||
|
# Use ${LD}.bfd instead if it exists (as absolute path or together with $PATH).
|
||||||
|
ifneq ($(strip $(wildcard ${LD}.bfd) \
|
||||||
|
$(foreach dir,$(subst :, ,${PATH}),$(wildcard ${dir}/${LD}.bfd))),)
|
||||||
|
LD := ${LD}.bfd
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq (${ARM_ARCH_MAJOR},7)
|
ifeq (${ARM_ARCH_MAJOR},7)
|
||||||
target32-directive = -target arm-none-eabi
|
target32-directive = -target arm-none-eabi
|
||||||
# Will set march32-directive from platform configuration
|
# Will set march32-directive from platform configuration
|
||||||
|
|
Loading…
Reference in New Issue