Closed jerryneedell closed 6 years ago
hey @jerryneedell, that file is auto-generated for each build when the make command is run. Make sure you have python in your path and can run
python scripts/datecode.py .
from the repo root directory
also if you're looking for the most recent crickit build the uf2 can be found here: https://github.com/adafruit/seesaw/releases/tag/1.1.2
@deanm1278 Thanks - I was jsut testing to see if I could build it. I tried:
python scripts/datecode.py .
and it runs ok but the build still fails.
When is the python script run to create build_date.h?
the script is run here: https://github.com/adafruit/seesaw/blob/master/Makefile#L120 when you run the python script does the build_date.h file get created in the repo root?
No - nothing is created.
maybe a permissions issue and it can't create the file? Try running as root?
it works if I make this change:
-f = open(sys.argv[1] + '\\build_date.h', 'w')
+f = open(sys.argv[1] + '/build_date.h', 'w')
I am building on Linux (also tried MacOS) is the script assuming Windows? (uses "\")
oh yea windows paths. We can probably remove those slashes entirely... I'll try on monday does the rest of the build work once you fix that file?
Yes - it seems to work fine with that change - No errors with make all-boards Thanks - no rush on this. I just wanted to make sure I understood what was going on.
Trying to build for BOARD=crickit for BAORD=samd09Breakout fails due to missing include file.