Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

update the dailybuild folder data format. only save success build

  • Loading branch information...
commit 6b0b6f885cf7e40af422deda58132ca9791a69a0 1 parent 0afd8dd
authored January 27, 2012
11  scripts/compile-milkymist-firmware.sh
... ...
@@ -1,12 +1,12 @@
1 1
 #!/bin/bash
2 2
 
3  
-DATE=$(date "+%Y-%m-%d")
4  
-TIME=$(date "+%H-%M-%S")
5  
-DATE_TIME=`date +"%m%d%Y-%H%M"`
  3
+DATE_TIME=`date +"%Y%m%d-%H%M"`
6 4
 
7 5
 
8  
-IMAGES_DIR="/home/xiangfu/build-milkymist/milkymist-firmware-${DATE_TIME}"
  6
+IMAGES_DIR="/home/xiangfu/building/Milkymist/milkymist-firmware-${DATE_TIME}"
  7
+DEST_DIR="/home/xiangfu/build-milkymist"
9 8
 mkdir -p ${IMAGES_DIR}
  9
+mkdir -p ${DEST_DIR}
10 10
 
11 11
 
12 12
 BUILD_LOG="${IMAGES_DIR}/BUILD_LOG"
@@ -59,6 +59,7 @@ if [ ! -e ${MILKYMIST_GIT_DIR}/wernermisc ]; then
59 59
 	git clone git://projects.qi-hardware.com/wernermisc.git ${MILKYMIST_GIT_DIR}/wernermisc
60 60
 fi
61 61
 (cd ${MILKYMIST_GIT_DIR}/wernermisc && git fetch -a && git reset --hard origin/master)
  62
+(cd ${MILKYMIST_GIT_DIR}/rtems && git reset --hard f80b3a3d825110b5d8826f72db3fa47a6d71b66a)
62 63
 (cd ${MILKYMIST_GIT_DIR}/rtems && rm -f patches && ln -s ${MILKYMIST_GIT_DIR}/wernermisc/m1/patches/rtems patches && quilt push -a)
63 64
 
64 65
 
@@ -161,6 +162,8 @@ cp -a ${MILKYMIST_GIT_DIR}/wernermisc/m1/patches/rtems ${IMAGES_DIR}/rtems-patch
161 162
 echo "create SDK ..."
162 163
 (cd /opt/ && tar cjvf ${IMAGES_DIR}/Flickernoise-lm32-rtems-4.11-SDK-for-Linux-x86_64.tar.bz2 rtems-4.11/)
163 164
 
  165
+mv ${IMAGES_DIR} ${DEST_DIR}
  166
+
164 167
 echo -e "\
165 168
 say #milkymist The Firmware build was successfull, \
166 169
 see images here: http://fidelio.qi-hardware.com/~xiangfu/build-milkymist/milkymist-firmware-${DATE_TIME}/\nclose" \
13  scripts/compile-openwrt-milkymist.sh
@@ -7,15 +7,16 @@ CONFIG_FILE_TYPE="config."$1
7 7
 MAKE_VARS=" V=99 IGNORE_ERRORS=m -j4 "
8 8
 
9 9
 ########################################################################
10  
-DATE=$(date "+%Y-%m-%d")
11  
-TIME=$(date "+%H-%M-%S")
12  
-DATE_TIME=`date +"%m%d%Y-%H%M"`
  10
+DATE_TIME=`date +"%Y%m%d-%H%M"`
13 11
 
14 12
 GET_FEEDS_VERSION_SH="/home/xiangfu/bin/get-feeds-revision.sh"
15 13
 PATCH_OPENWRT_SH="/home/xiangfu/bin/patch-openwrt.sh"
16 14
 
17  
-IMAGES_DIR="/home/xiangfu/build-milkymist/milkymist-openwrt.$1-${DATE_TIME}/"
  15
+IMAGES_DIR="/home/xiangfu/building/Milkymist/milkymist-openwrt.$1-${DATE_TIME}/"
  16
+DEST_DIR="/home/xiangfu/build-milkymist"
18 17
 mkdir -p ${IMAGES_DIR}
  18
+mkdir -p ${DEST_DIR}
  19
+
19 20
 
20 21
 BUILD_LOG="${IMAGES_DIR}/BUILD_LOG"
21 22
 VERSIONS_FILE="${IMAGES_DIR}/VERSIONS"
@@ -99,4 +100,6 @@ cp -a bin/lm32/* ${IMAGES_DIR} 2>/dev/null
99 100
  bzip2 -z BUILD_LOG; \
100 101
 )
101 102
 
102  
-echo "DONE :)"
  103
+mv ${IMAGES_DIR} ${DEST_DIR}
  104
+
  105
+echo "DONE!"

0 notes on commit 6b0b6f8

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