adds platform dir to link dirs to find linker script includes

This commit is contained in:
2025-07-30 06:33:58 +02:00
parent a7b4e7b715
commit 0843d92878

2
env/common-gcc.mk vendored
View File

@@ -28,7 +28,7 @@ INCLUDES += -I$(PLATFORM_DIR)
INCLUDES += -I$(BSP_BASE)/libwrap/sys/
LDFLAGS += -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI)
LDFLAGS += -L$(ENV_DIR)
LDFLAGS += -L$(ENV_DIR) -L$(PLATFORM_DIR)
LD_SCRIPT += -T $(LINKER_SCRIPT) -Wl,--no-warn-rwx-segments -Wl,-Map=$(TARGET).map -nostartfiles
ifneq (,$(findstring specs=nano.specs,$(LDFLAGS), LD_SCRIPT))