-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
mimxrt1050_evk: build time too long for this platform #44262
Comments
Hi @danieldegrasse, any idea on this? |
@LixinGuoX the build time change is introduced by a0a0f65, more than likely because the DTS file generated for the RT1050 EVK, and thus I'm not sure exactly how to fix this issue, since the iMX RT pinmux controller is complicated enough that the pin mux settings can't be encapsulated by a |
"-j 1" is really bad, you should try without -j1, not directly related to the issue and commits above, but this will speed up things considerably, i.e. build on process while you are flashing and testing on another. |
@gmarull @carlescufi FYI |
Without '- j 1' , it can speed up to 90min, will then reset back and see real effect of the patch above. |
That's an interesting case, also thanks for the investigation @danieldegrasse. I think we should probably look at optimizing the contents of |
@gmarull I think this does relate to #41543. I ran some tests to confirm the issue is related to the length of the header file, and not devicetree itself, by modifying the CMSIS header file for the RT1052 SOC, which should be included in most NXP drivers in Zephyr. The file itself is 52542 SLOC, and building hello_world with a clean cache took me 29.413s on 766ef95. Adding 200k lines of unused defines (of the format |
@danieldegrasse have a look at |
Pin control DTSI files need /omit-if-no-ref/ property to reduce generated devicetree size and improve build times. Fixes #44262 Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
Describe the bug
After this PR(#44150) merged, the total build and run time for mimxrt1050_evk has been extended a lot, from approximately 4-5 hours to 7-8 hours.
And found the the biggest change is in the build stage, time cost almost doubled.
To Reproduce
Steps to reproduce the behavior:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: