# HG changeset patch # User Mychaela Falconia # Date 1549487820 0 # Node ID 2106617f1291ac56c897ec0034950032d32926d4 # Parent 148776c3f4c99d0c99c7125005580abd72e191f5 scripts/mk-component*: added cfile_symlink function like in Magnetite diff -r 148776c3f4c9 -r 2106617f1291 scripts/mk-component-gcc.sh --- a/scripts/mk-component-gcc.sh Wed Feb 06 21:03:09 2019 +0000 +++ b/scripts/mk-component-gcc.sh Wed Feb 06 21:17:00 2019 +0000 @@ -79,6 +79,19 @@ OBJS="$OBJS $objname" } +cfile_symlink() { + if [ $# != 1 ] + then + echo "Error: cfile_symlink takes 1 argument" 1>&2 + exit 1 + fi + localcopy=`basename "$1"` + echo "$localcopy:" >> $BUILD_DIR/$LIBNAME/Makefile + echo " ln -s $1 ." >> $BUILD_DIR/$LIBNAME/Makefile + echo >> $BUILD_DIR/$LIBNAME/Makefile + c_file $localcopy +} + # invoke the recipe COMPILER=gcc diff -r 148776c3f4c9 -r 2106617f1291 scripts/mk-component.sh --- a/scripts/mk-component.sh Wed Feb 06 21:03:09 2019 +0000 +++ b/scripts/mk-component.sh Wed Feb 06 21:17:00 2019 +0000 @@ -92,6 +92,19 @@ OBJS="$OBJS $objname" } +cfile_symlink() { + if [ $# != 1 ] + then + echo "Error: cfile_symlink takes 1 argument" 1>&2 + exit 1 + fi + localcopy=`basename "$1"` + echo "$localcopy:" >> $BUILD_DIR/$LIBNAME/Makefile + echo " ln -s $1 ." >> $BUILD_DIR/$LIBNAME/Makefile + echo >> $BUILD_DIR/$LIBNAME/Makefile + c_file $localcopy +} + # invoke the recipe COMPILER=tms470