-
Notifications
You must be signed in to change notification settings - Fork 619
os/board/rtl8730e: Optimize the CFLAGS length #7035
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
cff45b9 to
87195cb
Compare
| endif | ||
|
|
||
| # Generate response file containing all CFLAGS | ||
| CFLAGS_FILE := $(TOPDIR)/cflags.rsp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CFLAGS response file approach is a valid solution for addressing command line length limitations. However, the implementation should be carefully integrated with the existing build system to ensure robustness and maintainability. The approach is particularly useful for complex builds with many include paths and definitions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we use this approach, we should clean this file too.
And also add this file to .gitignore.
7f72a54 to
59d4033
Compare
seokhun-eom24
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you seperate commit with Makefile and .gitignore for cherry-pick.
ccbe921 to
92a0bd3
Compare
* Generate a response file containing all the CFLAGS instead of loading an entire CFLAGS string directly. * Remove duplicate include paths to clean up makefile --- Built with before and after modification, MD5 sum of TizenRT/build/output/bin/kernel_rtl8730e_200204.trpk match.
92a0bd3 to
7d0d0b5
Compare
Optimize the CFLAGS length
Currently, there are many
-Iinclude paths appended toCFLAGS. This may cause the limit of 4096 to exceed.This PR would edit the Makefile to generate a temporary response file containing all the
CFLAGSinstead of loading an entire CFLAGS string directly.Also remove duplicate include paths
CFLAGS += -I$(DIR_OSDEP)CFLAGS += -I$(COMPONENT_DIR)/os_depCFLAGS += -I$(DIR_MBED)CFLAGS += -I$(COMPONENT_DIR)/mbed/targets/hal/rtl8730eCFLAGS += -I$(TOPDIR)/arch/$(CONFIG_ARCH)/src/armv7-aCFLAGS += -I$(TOPDIR)/arch/$(CONFIG_ARCH)/src/armv7-aCFLAGS += -I$(TARGETDIR)/bootloaderCFLAGS += -I$(TARGETDIR)/bootloaderVerification
Built with before and after modification, MD5 sum of
TizenRT/build/output/bin/kernel_rtl8730e_200204.trpkmatch.