Description
A few mpconfigboard.mk
files have language-specific build requirements, like this:
# Tweak inlining depending on language.
ifeq ($(TRANSLATION), zh_Latn_pinyin)
CFLAGS_INLINE_LIMIT = 23
else
CFLAGS_INLINE_LIMIT = 55
endif
However, build_release_files.py
doesn't do a clean build for each language for a board. Only the first language is built cleanly: further builds don't do a make clean; make
, but just a a make
, reusing already compiled sources. This saves a lot of build time but it renders settings like the above ineffective. I noticed this because a local build fit in flash but the Travis build of the same board and language didn't.
We need some way to force a clean build for languages that have different settings. I'm thinking about having build_release_files.py
look inside the mpconfigboard.mk
for a board to see if there are language-specific settings. If it finds such a setting it will force a clean build for that language, and then clean up again afterwards so the next build is not affected.
I'm thinking about the best way to do this, maybe either by looking for the language code mentioned in the file (need to avoid false positives for short language codes), or else looking for some special comment or variable that serves as a flag to indicate this.