summaryrefslogtreecommitdiff
path: root/examples/rules.mk
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2023-05-10 16:06:04 +0700
committerGitHub <[email protected]>2023-05-10 16:06:04 +0700
commitaaff27d220dd95cc018bf01f54df5dae706a52ae (patch)
treee99c7914abba762a6152967725b2448eac523089 /examples/rules.mk
parent5e023fa2ca4c20f06b6e0dc12f6f044a7d4e14bd (diff)
parenteaa159c0a6a0a56a56507e44e83fe1883b3995c2 (diff)
Merge pull request #2058 from hathach/cmake-imxrt
Add Cmake for imxrt and Fix EHCI PortSC issue
Diffstat (limited to 'examples/rules.mk')
-rw-r--r--examples/rules.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/rules.mk b/examples/rules.mk
index c125408df..516beca78 100644
--- a/examples/rules.mk
+++ b/examples/rules.mk
@@ -72,6 +72,11 @@ endif
LDFLAGS += $(CFLAGS) -Wl,[email protected] -Wl,-cref -Wl,-gc-sections
+# Some toolchain such as renesas rx does not support --print-memory-usage flags
+ifneq ($(FAMILY),rx)
+LDFLAGS += -Wl,--print-memory-usage
+endif
+
ifdef LD_FILE
LDFLAGS += -Wl,-T,$(TOP)/$(LD_FILE)
endif