Where should constant PROJ_NAME be changed for firmware builds #6856
Replies: 1 comment
-
Posted at 2021-10-31 by Robin Sun 2021.10.31 Just found: L714
of file Posted at 2021-10-31 by Robin Just stumbled across #define JS_VERSION "2v08" in jsutils header. The minor version should be near. ;-) So, Q1 is self answered although I'm not sure how %v is populated Posted at 2021-11-01 by @fanoush
I think it is taken directly from 'make BOARD=XYZ' and matches the boards/XYZ.py filename. You can override it by adding 'boardname' to the file. This is used in PUCKJS_MINIMAL.py to keep PUCKJS board name. Posted at 2021-11-02 by Robin Mon 2021.11.01
I see that attribute in file PUCKJS_MINIMAL.py @fanoush , but I'm not sure that will solve my issue. Board name not used as build filename. The above will have a different .hex file output from the original, wouldn't it? Will have more time to test and try that suggestion this weekend. If I wasn't clear, I have a new file nRF52840DONGLE with specific desired .hex name definition:
and using these lines to build:
so I expect the output build would produce a .hex file with this new '2' suffix,
However, as can be seen by the build output, the .py filename *nRF52840DONGLE2* is picked up as you suspect it should, but the internal .hex file definition that I supply within that file, still outputs a filename that isn't desired. *(no '2' suffix)*
From:
Shouldn't it be as I define with the %v substitution:
and not, which is being built? (missing 2 suffix)
Maybe there is a pre-defined cache list of acceptable board names somewhere, even though this one isn't an original Espruino? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-10-31 by Robin
Sun 2021.10.31
Have read over:
The current make build file 'CURRENT_BOARD.make' is dynamically built using additional input from
file (in my case) nRF52840DONGLE.py
It contains a constant
PROJ_NAME
which seems to be built from this lineI can see that the current build version
2V08.220
gets inserted using the variable %vNo PROJ_NAME constant is within that file.
The constant
BOARD
seems to be picked up fromafter removing the whitespace.
When I change the 'binary_name' to the file name I'd like to create, both the .elf and .hex files remain espruino_2V08.220_nrf52840_dongle.elf
and not the file name I place there. This has the unwanted side effect of writing over the official build.
Q1: Where does the version get picked up from?
Q2: Where/how should the PROJ_NAME be set?
Beta Was this translation helpful? Give feedback.
All reactions