This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push: new 21a6a1369 kernel build:avoid multiple definition ld script 21a6a1369 is described below commit 21a6a13698d1418fbaafebea12d46cd7cc957351 Author: anjiahao <anjia...@xiaomi.com> AuthorDate: Mon Feb 10 17:55:31 2025 +0800 kernel build:avoid multiple definition ld script Signed-off-by: anjiahao <anjia...@xiaomi.com> --- import/Make.defs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/import/Make.defs b/import/Make.defs index d6f99cf50..8943963ed 100644 --- a/import/Make.defs +++ b/import/Make.defs @@ -98,4 +98,9 @@ ifeq ($(CONFIG_BINFMT_ELF_RELOCATABLE),y) LDELFFLAGS += -r endif LDELFFLAGS += -e __start -Bstatic + +# Remove other ld scripts, just use import ld scripts +# +LDFILE := $(filter -T %.ld, $(LDELFFLAGS)) +LDELFFLAGS := $(filter-out $(LDFILE), $(LDELFFLAGS)) LDELFFLAGS += $(addprefix -T,$(call CONVERT_PATH,$(TOPDIR)/scripts/gnu-elf.ld))