-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
BUILD.sh improvements on MacOS #20
Comments
Another suggestion for MacOS. The current build process uses features of Make which are not available in the default Mojave MacOS version of make(3.81). Adding
to the MacOS specific flow through BUILD.sh will allow the later homebrew versions of make(4.3) to be used if installed. Here is the output I get when I don't use make from homebrew
and for completeness, here is the output when using home-brew make
Cheers, |
Sorry for the chain of comments. CLEAN.sh also requires a newer version of make. |
Thank you for your comments. |
In order to use brew's newer version of make, I needed to export |
The code for computing the FILESIZE in BUILD.sh is incorrect on MacOS.
FILESIZE=$(stat -s MicroPython.bin | cut -d' ' -s -f 1 | cut -d'=' -s -f 2)
is getting the value of the first field in the output of stat -s and this is st_dev=16777223 on my machine. Alternative implementations are
FILESIZE=$(eval $(stat -s MicroPython.bin); echo $st_size)
or
FILESIZE=$(stat -s MicroPython.bin | cut -d' ' -s -f 8 | cut -d'=' -s -f 2)
which also works for me but I am not sure if this is always true.
This code appears twice in BUILD.sh and both need updating.
Thanks for all the updates!
The text was updated successfully, but these errors were encountered: