Hey @armystic,
Would you be interested in trying neopo?
It provides an incredibly straightforward interface for building Particle projects on the command line and manages local toolchains identically to Workbench.
As an experiment, I tried to replicate your build process and I get the same error about MODULE_FUNCTION.
#!/bin/bash
PATH="$PATH:/home/nrobinson/.particle/toolchains/gcc-arm/9.2.1/bin"
cd /home/nrobinson/.particle/toolchains/deviceOS/2.0.0-rc.3
make PLATFORM=photon MODULAR=n all
However, if I run make
in the modules
directory as suggested by the compile-all
target in the Workbench makefile, make PLATFORM=photon MODULAR=n all
runs successfully.
#!/bin/bash
PATH="$PATH:/home/nrobinson/.particle/toolchains/gcc-arm/9.2.1/bin"
cd /home/nrobinson/.particle/toolchains/deviceOS/2.0.0-rc.3/modules
make PLATFORM=photon MODULAR=n all
Edit: Sorry for not remembering that you had difficulties building roughly a month ago:
In all seriousness though, using neopo would allow you to easily setup the local Particle toolchain and get right to building firmware within a few minutes.