summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-01-21 11:32:37 +0700
committerhathach <[email protected]>2023-01-21 11:32:37 +0700
commit1bbeb6ad79fa1e76c109592773e0834e1ec00a0c (patch)
tree6d223fc58c9a88df40d959c5c741fec4fcd9ad5d /examples
parentcb34cb2a9397eeeeff9bacd212914477c6e76ff9 (diff)
update stm32f1 to support iar build
Diffstat (limited to 'examples')
-rw-r--r--examples/rules.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/rules.mk b/examples/rules.mk
index 19ecbc9e1..6a62288ce 100644
--- a/examples/rules.mk
+++ b/examples/rules.mk
@@ -72,6 +72,10 @@ ifdef LD_FILE
LDFLAGS += -Wl,-T,$(TOP)/$(LD_FILE)
endif
+ifdef GCC_LD_FILE
+LDFLAGS += -Wl,-T,$(TOP)/$(GCC_LD_FILE)
+endif
+
ifneq ($(SKIP_NANOLIB), 1)
LDFLAGS += -specs=nosys.specs -specs=nano.specs
endif