Port over docs and firmware, and store module parameters.

This commit is contained in:
Laurence Withers 2006-07-26 19:38:18 +01:00
commit 22876dac1f
8 changed files with 24 additions and 51 deletions

View file

@ -1,21 +1,21 @@
# These are external variables, and shouldn't clash with anything else
# @NAME@
# @NAME@_BUILT
# @CNAME@
# @CNAME@_BUILT
#
if [ -z ${@NAME@_BUILT} ]
if [ -z ${@CNAME@_BUILT} ]
then
@NAME@="obj/@NAME@.hex"
EXTRAS="@TODO@" # cflags, libs
@CNAME@="obj/@NAME@.hex"
EXTRAS="" # @TODO@ cflags, libs
echo "Building firmware ${@NAME@}..."
echo "Building firmware ${@CNAME@}..."
do_cmd source src/@NAME@/build.monolithic || return 1
MODIFIED=0
for test in ${MONOLITHIC_TESTS} ${SRC}
do
if [ ${test} -nt ${@NAME@} ]
if [ ${test} -nt ${@CNAME@} ]
then
MODIFIED=1
break
@ -26,14 +26,14 @@ then
then
echo " Compiling..."
do_cmd ${SDCC} ${SDCCFLAGS} -o "${@NAME@}" ${SRC} ${EXTRAS} || return 1
do_cmd ${SDCC} ${SDCCFLAGS} -o "${@CNAME@}" ${SRC} ${EXTRAS} || return 1
print_success "Firmware built"
else
print_success "Firmware up to date"
fi
@NAME@_BUILT=1
@CNAME@_BUILT=1
fi