diff scripts/mk-component.sh @ 68:838717193e09

eliminated the use of bootloader.lib binary blob
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 01 Oct 2016 21:54:10 +0000
parents c49c78d9bb5a
children 5e2b0806b098
line wrap: on
line diff
--- a/scripts/mk-component.sh	Sat Oct 01 20:10:35 2016 +0000
+++ b/scripts/mk-component.sh	Sat Oct 01 21:54:10 2016 +0000
@@ -49,6 +49,20 @@
 	echo >> $BUILD_DIR/$LIBNAME/Makefile
 }
 
+asm_file() {
+	if [ $# != 1 ]
+	then
+		echo "Error: asm_file takes 1 argument" 1>&2
+		exit 1
+	fi
+	objname=`basename "$1" .s`.obj
+	helpers/makeline dep $objname "$1" >> $BUILD_DIR/$LIBNAME/Makefile
+	helpers/makeline cmd ../../toolwrap/asm470 ${ASMFLAGS} "$1" '$@' \
+		>> $BUILD_DIR/$LIBNAME/Makefile
+	echo >> $BUILD_DIR/$LIBNAME/Makefile
+	OBJS="$OBJS $objname"
+}
+
 cfile_plain() {
 	if [ $# != 1 ]
 	then