Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

compile-milkymist-firmware.sh boot.crc.bin needs all images already u…

…nder IMAGES_DIR
  • Loading branch information...
commit da086611ca9358810f5f1c4f39bd2dea8d5db09f 1 parent c8b2482
authored September 10, 2011

Showing 1 changed file with 12 additions and 10 deletions. Show diff stats Hide diff stats

  1. 22  scripts/compile-milkymist-firmware.sh
22  scripts/compile-milkymist-firmware.sh
@@ -18,7 +18,7 @@ MILKYMIST_GIT_DIR=/home/xiangfu/milkymist-firmware/milkymist/
18 18
 SCRIPTS_GIT_DIR=/home/xiangfu/milkymist-firmware/scripts.git
19 19
 
20 20
 
21  
-MD5_BINARIES="bios.bin bios-rescue.bin boot.bin data.flash5.bin flickernoise flickernoise.bin flickernoise.fbi flickernoise.ralf soc.fpg soc-rescue.fpg splash.raw splash-rescue.raw standby.fpg"
  21
+MD5_BINARIES="bios.bin bios-rescue.bin boot.bin data.flash5.bin flickernoise flickernoise.bin flickernoise.fbi soc.fpg soc-rescue.fpg splash.raw splash-rescue.raw standby.fpg"
22 22
 
23 23
 
24 24
 abort() {
@@ -89,9 +89,6 @@ echo "compile soc ..."
89 89
 if [ "$?" != "0" ]; then
90 90
 	abort "ERROR: compile SOC"
91 91
 fi
92  
-
93  
-
94  
-echo "copy soc to bin/ ..."
95 92
 cp ${MILKYMIST_GIT_DIR}/milkymist.git/boards/milkymist-one/flash/standby.fpg ${IMAGES_DIR}
96 93
 cp ${MILKYMIST_GIT_DIR}/milkymist.git/boards/milkymist-one/flash/soc.fpg ${IMAGES_DIR}
97 94
 cp ${MILKYMIST_GIT_DIR}/milkymist.git/boards/milkymist-one/flash/bios.bin ${IMAGES_DIR}
@@ -99,23 +96,27 @@ cp ${MILKYMIST_GIT_DIR}/milkymist.git/boards/milkymist-one/flash/splash.raw ${IM
99 96
 cp ${MILKYMIST_GIT_DIR}/milkymist.git/boards/milkymist-one/flash/soc-rescue.fpg ${IMAGES_DIR}
100 97
 cp ${MILKYMIST_GIT_DIR}/milkymist.git/boards/milkymist-one/flash/bios-rescue.bin ${IMAGES_DIR}
101 98
 cp ${MILKYMIST_GIT_DIR}/milkymist.git/boards/milkymist-one/flash/splash-rescue.raw ${IMAGES_DIR}
102  
-
103 99
 BIOS_LEN=`ls -l  ${IMAGES_DIR}/bios-rescue.bin  | awk '{printf "%d\n",$5-4}'`
104 100
 dd if=${IMAGES_DIR}/bios-rescue.bin of=${IMAGES_DIR}/bios-rescue-without-CRC.bin bs=1 count=${BIOS_LEN}
105 101
 
  102
+
106 103
 echo "compile flickernoise ..."
107 104
 export PATH=${MILKYMIST_GIT_DIR}/milkymist.git/tools:$PATH
108 105
 export PATH=/home/xiangfu/openwrt-xburst.full_system/staging_dir/host/bin:$PATH  #for autoconf 2.68
109  
-MILKYMIST_GIT_DIR=${MILKYMIST_GIT_DIR} IMAGES_DIR=${IMAGES_DIR} \
110  
-  make -C ${SCRIPTS_GIT_DIR}/compile-flickernoise \
111  
-  clean flickernoise.fbi boot.bin boot.crc.bin >> ${BUILD_LOG} 2>&1
  106
+MILKYMIST_GIT_DIR=${MILKYMIST_GIT_DIR} make -C ${SCRIPTS_GIT_DIR}/compile-flickernoise \
  107
+  clean flickernoise.fbi >> ${BUILD_LOG} 2>&1
112 108
 if [ "$?" != "0" ]; then
113 109
 	abort "ERROR: compile flickernoise"
114 110
 fi
  111
+cp ${MILKYMIST_GIT_DIR}/flickernoise.git/src/bin/* ${IMAGES_DIR}/
115 112
 
116 113
 
117  
-echo "copy flickernoise to bin/ ..."
118  
-cp ${MILKYMIST_GIT_DIR}/flickernoise.git/src/bin/* ${IMAGES_DIR}/
  114
+echo "compile autotest ..."
  115
+MILKYMIST_GIT_DIR=${MILKYMIST_GIT_DIR} IMAGES_DIR=${IMAGES_DIR} make -C ${SCRIPTS_GIT_DIR}/compile-flickernoise \
  116
+  boot.bin boot.crc.bin >> ${BUILD_LOG} 2>&1
  117
+if [ "$?" != "0" ]; then
  118
+	abort "ERROR: compile autotest"
  119
+fi
119 120
 cp ${MILKYMIST_GIT_DIR}/autotest-m1.git/src/boot*.bin ${IMAGES_DIR}/
120 121
 
121 122
 
@@ -124,6 +125,7 @@ mkdir -p ${IMAGES_DIR}/data.flash5/patchpool
124 125
 find ${MILKYMIST_GIT_DIR}/flickernoise.git/patches -name "*.fnp" -exec cp {} ${IMAGES_DIR}/data.flash5/patchpool \;
125 126
 
126 127
 make -C ${MILKYMIST_GIT_DIR}/rtems-yaffs2.git/utils mm-mkyaffs2image
  128
+
127 129
 ${MILKYMIST_GIT_DIR}/rtems-yaffs2.git/utils/mm-mkyaffs2image \
128 130
   ${IMAGES_DIR}/data.flash5 ${IMAGES_DIR}/data.flash5.bin convert  >> ${BUILD_LOG} 2>&1
129 131
 chmod 644 ${IMAGES_DIR}/data.flash5.bin

0 notes on commit da08661

Please sign in to comment.
Something went wrong with that request. Please try again.