I created an application with local built in own source folder. I use the spark/firmware develop branch.
I ran into the problem that the build fails with
make[1]: *** No rule to make target '../build/target/user/platform-0-lto/oinkbrew_firmware/libuser.a', needed by '../../oinkbrew_firmware/target/oinkbrew.elf'. Stop
my make file:
$(MAKECMDGOALS): run_make
.PHONY: run_make
APPDIR = ../../oinkbrew_firmware
APP ?= oinkbrew
run_make:
@$(MAKE) -e -C ../spark-firmware/main
APPDIR=$(APPDIR)
USER_MAKEFILE=build.mk
TARGET_FILE_NAME=oinkbrew
TARGET_DIR_NAME=$(APPDIR)/target
SPARK_CLOUD=n
$(MAKEOVERRIDES)
$(MAKECMDGOALS)
Please let me know if you need more information from me. I'm not sure what information you need.