Skip to content

Instantly share code, notes, and snippets.

@shmick
Last active February 26, 2016 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shmick/f16d1f9331404ad61993 to your computer and use it in GitHub Desktop.
Save shmick/f16d1f9331404ad61993 to your computer and use it in GitHub Desktop.
# I've only tested this on Ubuntu 14.04 64bit using ubuntu/trusty64 via Vagrant
#
# This one liner will install all required build tools and begin the compile process
# bash <(curl -s0 https://gist.githubusercontent.com/shmick/f16d1f9331404ad61993/raw)
#
echo "Running apt-get update..." && \
sudo apt-get -qq update && \
echo "Running apt-get install..." && \
sudo apt-get -qq install \
git-core \
build-essential \
libssl-dev \
libncurses5-dev \
unzip \
lua5.1 \
libxml-parser-perl \
subversion && \
cat <<EOF > build.sh
cd ~
rm -rf ~/heatermeter ~/openwrt
git clone git://github.com/CapnBry/HeaterMeter.git heatermeter
git clone git://git.openwrt.org/12.09/openwrt.git openwrt
cd openwrt
git checkout 955332d --quiet
cd ~/heatermeter/openwrt
./install.sh BCM2708 ~/openwrt
cd ~/openwrt
make oldconfig
make
make package/mac80211/compile
while [ ! -f ~/openwrt/bin/brcm2708/openwrt-brcm2708-sdcard-vfat-ext4.img ]
do make
done
ls -ld ~/openwrt/bin/brcm2708/*.img
EOF
chmod +x ./build.sh && ./build.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment