import/mk: Update ELF flags to represent build configuration type.

Allows board configuration to select the output ELF format for application built using the `make import` target.
This commit is contained in:
Stuart Ianna 2023-06-27 10:39:53 +10:00 committed by Xiang Xiao
parent cb9cba8d3f
commit 44ae5cc14a

View File

@ -90,5 +90,8 @@ endif
# ELF module definitions
LDELFFLAGS += -r -e _start -Bstatic
ifeq ($(CONFIG_BINFMT_ELF_RELOCATABLE),y)
LDELFFLAGS += -r
endif
LDELFFLAGS += -e _start -Bstatic
LDELFFLAGS += $(addprefix -T,$(call CONVERT_PATH,$(TOPDIR)/scripts/gnu-elf.ld))