# HG changeset patch # User Mychaela Falconia # Date 1475417489 0 # Node ID 46d9d68a39115de5db2701e8e4c8cd298ed2b338 # Parent 8dd671b7d41ec2edb32738c790a41d791032a4ae top Makefile: support building flash images for the C139 diff -r 8dd671b7d41e -r 46d9d68a3911 configure.sh --- a/configure.sh Sun Oct 02 14:00:10 2016 +0000 +++ b/configure.sh Sun Oct 02 14:11:29 2016 +0000 @@ -198,6 +198,12 @@ fi cat makefile-frags/link-steps >> $BUILD_DIR/Makefile +if [ "$TARGET" != c139 ] +then + cat makefile-frags/m0-to-bin-std >> $BUILD_DIR/Makefile +else + cat makefile-frags/m0-to-bin-c139 >> $BUILD_DIR/Makefile +fi cat makefile-frags/clean-always >> $BUILD_DIR/Makefile if [ "$str2ind_blobs_used" = 0 ] diff -r 8dd671b7d41e -r 46d9d68a3911 makefile-frags/link-steps --- a/makefile-frags/link-steps Sun Oct 02 14:00:10 2016 +0000 +++ b/makefile-frags/link-steps Sun Oct 02 14:11:29 2016 +0000 @@ -11,6 +11,3 @@ fwimage.m0: fwimage.out ../toolwrap/hex470 -m -memwidth 16 -romwidth 16 $< -fwimage.bin: fwimage.m0 - mokosrec2bin $< $@ FF - diff -r 8dd671b7d41e -r 46d9d68a3911 makefile-frags/m0-to-bin-c139 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefile-frags/m0-to-bin-c139 Sun Oct 02 14:11:29 2016 +0000 @@ -0,0 +1,6 @@ +fwimage.intbin: fwimage.m0 + mokosrec2bin $< $@ FF + +fwimage.bin: fwimage.intbin + dd if=$< of=$@ bs=65536 skip=1 + diff -r 8dd671b7d41e -r 46d9d68a3911 makefile-frags/m0-to-bin-std --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefile-frags/m0-to-bin-std Sun Oct 02 14:11:29 2016 +0000 @@ -0,0 +1,3 @@ +fwimage.bin: fwimage.m0 + mokosrec2bin $< $@ FF +