I followed the (not so clear at times) instructions on installing the local toolchain and repositories in a Windows (8.1 in my case) environment. The paths are set correctly and the tools run just fine but I believe the makefiles will not work in windows. First, the rm and mkdir commands have command line arguments not compatible with the Windows version. Second, the rm and mkdir commands will not run correctly in windows due to the “/” versus “” problem. I edited the makefiles and made changes as follows:
rm = del mkdir = mkdir
So when I run make as instructed, I get:
E:\SparkChain\core-firmware\build>make Building core-common-lib Building file: ../CC3000_Host_Driver/cc3000_common.c Invoking: ARM GCC C Compiler mkdir obj/CC3000_Host_Driver/ The syntax of the command is incorrect. make: *** [obj/CC3000_Host_Driver/cc3000_common.o] Error 1 make: *** [check_external_deps] Error 2 E:\SparkChain\core-firmware\build>
Make cannot create the necessary directories. First, because Windows mkdir cannot create the entire path in one command. Second because the “/” syntax is wrong. Obviously, the version of MAKE is for Windows so there has to be a way for this to work. Perhaps the makefiles need to be changed to work in Windows?
Is there a gnuWin32 or other version of mkdir that works as expected?
[UPDATE] The Windows version git installed as part of the toolchain has version of rm and mkdir that can be specified in the makefiles. I edited the makefile in each of the three repositories and changed the rm and mkdir entries as follows:
RM = "C:\Program Files (x86)\Git\bin\mkdir.exe" -f MKDIR = "C:\Program Files (x86)\Git\bin\mkdir.exe" -p
When I ran make from the core-firmware/build directory again, it worked perfectly with no errors. Perhaps this information should be included in your toolchain instructions!