From 87195cbcf477692c7e631344107e2fb148535c54 Mon Sep 17 00:00:00 2001 From: EangJS Date: Wed, 12 Nov 2025 13:10:54 +0800 Subject: [PATCH] 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 before and after modification, MD5 sum of TizenRT/build/output/bin/kernel_rtl8730e_200204.trpk match. --- os/board/rtl8730e/src/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/os/board/rtl8730e/src/Makefile b/os/board/rtl8730e/src/Makefile index b72863586d..b1b31950a0 100644 --- a/os/board/rtl8730e/src/Makefile +++ b/os/board/rtl8730e/src/Makefile @@ -218,6 +218,11 @@ else endif +# Generate response file containing all CFLAGS +CFLAGS_FILE := $(TOPDIR)/cflags.rsp +$(shell printf "%s" "$(CFLAGS)" > $(CFLAGS_FILE)) +CFLAGS := @$(CFLAGS_FILE) + all: libboard$(LIBEXT) $(AOBJS): %$(OBJEXT): %$(ASMEXT)