You are reading a single comment by @Robin and its replies.
Click here to read the full conversation.
-
The constant BOARD seems to be picked up from
'name' : "nRF52840 Dongle",
after removing the whitespace.
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.
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?