Use a more logical naming system.
This commit is contained in:
parent
31e3e08408
commit
50e0fbc594
76 changed files with 115 additions and 0 deletions
|
|
@ -1,42 +0,0 @@
|
|||
# These are external variables, and shouldn't clash with anything else
|
||||
# @CNAME@
|
||||
# @CNAME@_BUILT
|
||||
#
|
||||
|
||||
if [ -z ${@CNAME@_BUILT} ]
|
||||
then
|
||||
@CNAME@="obj/@NAME@.hex"
|
||||
EXTRAS="" # @TODO@ cflags, libs
|
||||
|
||||
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 ${@CNAME@} ]
|
||||
then
|
||||
MODIFIED=1
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ${MODIFIED} -ne 0 ]
|
||||
then
|
||||
echo " Compiling..."
|
||||
|
||||
SDCCFLAGS="" # @TODO@
|
||||
do_cmd ${SDCC} ${SDCCFLAGS} -o "${@CNAME@}" ${SRC} ${EXTRAS} || return 1
|
||||
|
||||
print_success "Firmware built"
|
||||
else
|
||||
print_success "Firmware up to date"
|
||||
fi
|
||||
|
||||
@CNAME@_BUILT=1
|
||||
|
||||
fi
|
||||
|
||||
# kate: @KATE_MODELINE@
|
||||
# vim: @VIM_MODELINE@
|
||||
Loading…
Add table
Add a link
Reference in a new issue