Skip to content

Commit cff45b9

Browse files
committed
os/board/rtl8730e: Optimize the CFLAGS length
Generate a response file containing all the CFLAGS instead of loading an entire CFLAGS string directly. --- > Before CFLAGS length: 3777 / 4096 > After CFLAGS length: 28 / 4096 Built with both configurations (flat apps), MD5 sum of TizenRT/build/output/bin/kernel_rtl8730e_200204.trpk match.
1 parent 867455b commit cff45b9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

os/board/rtl8730e/src/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,11 @@ else
218218

219219
endif
220220

221+
# Generate response file containing all CFLAGS
222+
CFLAGS_FILE := $(TOPDIR)/cflags.rsp
223+
$(shell printf "%s" "$(CFLAGS)" > $(CFLAGS_FILE))
224+
CFLAGS := @$(CFLAGS_FILE)
225+
221226
all: libboard$(LIBEXT)
222227

223228
$(AOBJS): %$(OBJEXT): %$(ASMEXT)

0 commit comments

Comments
 (0)