Created
October 24, 2016 19:15
-
-
Save thesabbir/15baedaf070bc7a421dbc21dc3bc96c2 to your computer and use it in GitHub Desktop.
Install xcode and brew and run this script to setup openwrt build tool on OSX 10.10+
This file contains hidden or 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
#!/bin/bash | |
brew tap homebrew/dupes | |
brew install coreutils findutils gawk gnu-getopt gnu-tar grep wget quilt xz | |
brew ln gnu-getopt --force | |
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" | |
hdiutil create -size 20g -type SPARSE -fs "Case-sensitive HFS+" -volname OpenWrt OpenWrt.sparseimage | |
hdiutil attach OpenWrt.sparseimage | |
cd /Volumes/OpenWrt | |
git clone https://github.com/openwrt/openwrt.git buildroot | |
cd buildroot | |
echo "Ready to roll!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment