Last active
February 26, 2016 18:10
-
-
Save shmick/f16d1f9331404ad61993 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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