From: davidcunado-arm Date: Tue, 30 Jan 2018 12:45:52 +0000 (+0000) Subject: Merge pull request #1220 from jwerner-chromium/JW_ld_bfd X-Git-Tag: baikal/aarch64/sdk5.9~2692 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=e282b9d97defe49c8ecc8638b5e5b29dae08eb67;p=arm-tf.git Merge pull request #1220 from jwerner-chromium/JW_ld_bfd Makefile: Use ld.bfd linker if available --- e282b9d97defe49c8ecc8638b5e5b29dae08eb67 diff --cc Makefile index d5fa2ade8,60d99bf70..aa71ee31d --- a/Makefile +++ b/Makefile @@@ -125,8 -125,13 +125,14 @@@ OC := ${CROSS_COMPILE}objcop OD := ${CROSS_COMPILE}objdump NM := ${CROSS_COMPILE}nm PP := ${CROSS_COMPILE}gcc -E +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) target32-directive = -target arm-none-eabi # Will set march32-directive from platform configuration