Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

compile-milkymist-firmware.sh: detect werner git folder automaticly

  • Loading branch information...
commit 10f4ed298e6a9a70de44489a5a6fdf2e3de049c9 1 parent 0860952
Xiangfu Liu authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 scripts/compile-milkymist-firmware.sh
View
14 scripts/compile-milkymist-firmware.sh
@@ -5,7 +5,7 @@ TIME=$(date "+%H-%M-%S")
DATE_TIME=`date +"%m%d%Y-%H%M"`
-IMAGES_DIR="/home/xiangfu/build-milkymist/milkymist-firmware-${DATE_TIME}/"
+IMAGES_DIR="/home/xiangfu/build-milkymist/milkymist-firmware-${DATE_TIME}"
mkdir -p ${IMAGES_DIR}
@@ -14,7 +14,7 @@ VERSIONS="${IMAGES_DIR}/VERSIONS"
touch ${BUILD_LOG} ${VERSIONS}
-MILKYMIST_GIT_DIR=/home/xiangfu/milkymist-firmware/milkymist/
+MILKYMIST_GIT_DIR=/home/xiangfu/milkymist-firmware/milkymist
SCRIPTS_GIT_DIR=/home/xiangfu/milkymist-firmware/scripts
@@ -54,12 +54,12 @@ if [ "$?" != "0" ]; then
fi
-# You have to manully clone the wernermisc to MILKYMIST_GIT_DIR
-# cd ${MILKYMIST_GIT_DIR} && git clone git://projects.qi-hardware.com/wernermisc.git
echo "handle werner's patches on rtems ..."
-(cd ${MILKYMIST_GIT_DIR}/rtems && rm -f patches && ln -s ../wernermisc/m1/patches/rtems/ patches)
-(cd ${MILKYMIST_GIT_DIR}/rtems/patches && git fetch -a && git reset --hard origin/master)
-(cd ${MILKYMIST_GIT_DIR}/rtems && quilt push -a)
+if [ -e ${MILKYMIST_GIT_DIR}/wernermisc ]; then
+ git clone git://projects.qi-hardware.com/wernermisc.git ${MILKYMIST_GIT_DIR}/wernermisc
+fi
+(cd ${MILKYMIST_GIT_DIR}/wernermisc && git fetch -a && git reset --hard origin/master)
+(cd ${MILKYMIST_GIT_DIR}/rtems && rm -f patches && ln -s ${MILKYMIST_GIT_DIR}/wernermisc/m1/patches/rtems patches && quilt push -a)
cp -a ${MILKYMIST_GIT_DIR}/wernermisc/m1/patches/rtems ${IMAGES_DIR}/rtems-patches
Please sign in to comment.
Something went wrong with that request. Please try again.