When I type 'make clean' all *.o-Files are deleted. That also deletes all *.o-Files in all Subdirectorys from the Espruino Code, including (in my Case) the Cross-Compiler which I downloaded in the root Directory of the source.
If you don't do that alle *.o Files from the cross compiler are deleted, including (for example) crti.o which is leading to a linker error on compile, because the Linker needs that object file.
Is my method to just download the cross compiler into the source root directory that odd that no one has ever had a problem with that?
I can make an Issue and PR in the Repo If wanted.
Greetings,
Thomas
PS: Problem with my simple fix is -of course- that we need to change the folder name 'gcc-arm-none-eabi-6-2017-q1-update' in the file 'scripts/provision.sh' and 'Makefile' everytime we change it. It's not nice to have that at two places to maintain I suppose.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
When I type 'make clean' all *.o-Files are deleted. That also deletes all *.o-Files in all Subdirectorys from the Espruino Code, including (in my Case) the Cross-Compiler which I downloaded in the root Directory of the source.
Make clean does the following:
I propose that we change that to:
If you don't do that alle *.o Files from the cross compiler are deleted, including (for example) crti.o which is leading to a linker error on compile, because the Linker needs that object file.
Is my method to just download the cross compiler into the source root directory that odd that no one has ever had a problem with that?
I can make an Issue and PR in the Repo If wanted.
Greetings,
Thomas
PS: Problem with my simple fix is -of course- that we need to change the folder name 'gcc-arm-none-eabi-6-2017-q1-update' in the file 'scripts/provision.sh' and 'Makefile' everytime we change it. It's not nice to have that at two places to maintain I suppose.