From f82ee79cb37a7e1fa5a97bdb0626c67b98650c8f Mon Sep 17 00:00:00 2001 From: Bart Van Der Meerssche Date: Thu, 23 Sep 2010 17:38:49 +0200 Subject: [PATCH] openwrt: introduce shell script for setting up a flukso build environment --- mote/v1/openwrt/install.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 mote/v1/openwrt/install.sh diff --git a/mote/v1/openwrt/install.sh b/mote/v1/openwrt/install.sh new file mode 100755 index 0000000..7d69af4 --- /dev/null +++ b/mote/v1/openwrt/install.sh @@ -0,0 +1,35 @@ +#!/usr/bin/env bash + +if (( $# < 1 )) +then + printf "%b" "Error. Not enough arguments.\n" + printf "Usage: ./install \n" + exit 1 +elif (( $# > 1 )) +then + printf "%b" "Error. Too many arguments.\n" + printf "Usage: ./install \n" + exit 2 +fi + +REPO_PATH=$(pwd) +BACKFIRE_PATH=$1 + +mkdir -p $BACKFIRE_PATH +svn co svn://svn.openwrt.org/openwrt/branches/backfire $BACKFIRE_PATH + +echo "src-link flukso $REPO_PATH/package" > $BACKFIRE_PATH/feeds.conf +$BACKFIRE_PATH/scripts/feeds update +$BACKFIRE_PATH/scripts/feeds install -a -p flukso + +cp .config $BACKFIRE_PATH +cp -r files $BACKFIRE_PATH + +cp patches/300-set.AR2315_RESET_GPIO.to.6.patch $BACKFIRE_PATH/target/linux/atheros/patches-2.6.30 + +cd $BACKFIRE_PATH +patch -p0 < $REPO_PATH/patches/100-disable.console.patch +patch -p0 < $REPO_PATH/patches/110-set.console.baud.to.4800.patch + +# and to build the flash image +# make -j4