I'm trying to extend the standard Sming makefile without modifying it. My thought is I would like to add some "stuff" to the makefile-user.mk and have it picked up. In particular, I'm trying to add an application version. I can easily add a variable:
VERSION = 1.0.18
Now I want two things to happen.
1. I would like to add that version to the compiler flags so it gets passed to my application
-DVERSION=$(VERSION)
2. I would like to write out a text file in the out/firmware directory so that I can upload it to my webserver for OTA update checking.
version:
$(vecho) "Setting Version $(VERSION)"
echo "$(VERSION)" > $(FW_BASE)/version.txt
Is there any way for me to extend makefile-user to do this without editing the makefile in Sming core?
thanks,
Curtis
aka Piperpilot