User Tools

Site Tools


doc:howto:buildroot.exigence.macosx

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:howto:buildroot.exigence.macosx [2013/07/14 09:13]
lorema
doc:howto:buildroot.exigence.macosx [2016/07/13 14:13] (current)
the_alchemist /Volumes, not /Volume
Line 1: Line 1:
 +====== OpenWrt Buildroot – Installation on Mac OS X ======
 +| ->​[[doc:​howto:​buildroot.exigence|Procedure on Linux]] |
 +If you test on other version of OS X or different release, add/edit below please!
  
 +----
 +These instructions worked on OS X 10.11.5 on 7 May 2016.
 +
 +  - Install Xcode or at least Xcode command line tools from the [[https://​itunes.apple.com/​us/​app/​xcode/​id497799835?​mt=12|MacOSX App Store]]
 +  - [[http://​brew.sh/​|Install brew]].
 +  - Add duplicates repository to homebrew for grep formulae: <code bash>​brew tap homebrew/​dupes</​code>​
 +  - Install additional formulae: <code bash>​brew install coreutils findutils gawk gnu-getopt gnu-tar grep wget quilt xz</​code>​
 +  - gnu-getopt is keg-only, so force linking it: <code bash>​brew ln gnu-getopt --force</​code>​
 +  - To get rid of "date illegal option"​ you can add to your .bash_profile:​ <code bash>​PATH="/​usr/​local/​opt/​coreutils/​libexec/​gnubin:​$PATH"</​code>​
 +  - OS X by default comes with a case-insensitive filesystem. OpenWrt won't build on that. As a workaround, create a (Sparse) case-sensitive disk-image that you then mount in the finder and use as build directory:
 +  - <code bash>​hdiutil create -size 20g -type SPARSE -fs "​Case-sensitive HFS+" -volname OpenWrt OpenWrt.sparseimage
 +hdiutil attach OpenWrt.sparseimage</​code>​
 +  - Change to <​code>/​Volumes/​OpenWrt</​code>​ (Your newly created and mounted disk image)
 +  - Now proceed normally (git clone...)
 +
 +----
 +These instructions worked on OS X 10.10.3, building trunk Rev. 45337 on 9.April.2015. ​
 +
 +  - Install Xcode or at least Xcode command line tools from the MacOSX App Store
 +  - [[http://​brew.sh/​|Install brew]].
 +  - Add duplicates repository to homebrew for grep formulae: <code bash>​brew tap homebrew/​dupes</​code>​
 +  - Install additional formulae: <code bash>​brew install coreutils findutils gawk gnu-getopt gnu-tar grep wget quilt xz</​code>​
 +  - gnu-getopt is keg-only, so force linking it: <code bash>​brew ln gnu-getopt --force</​code>​
 +  - To get rid of "date illegal option"​ you can add to your .bash_profile:​ <code bash>​PATH="/​usr/​local/​opt/​coreutils/​libexec/​gnubin:​$PATH"</​code>​
 +  - Now proceed normally (git clone...)
 +
 +----
 +These instructions worked for me on OS X 10.10, building 14.07
 +
 +  - [[http://​pkgsrc.org/​|Install pkgsrc]].
 +  - Install prerequisites:​ <code bash>​pkgin install getopt coreutils gawk gtar findutils</​code>​
 +  - Now proceed normally (git clone...)
 +
 +----
 +
 +These instructions worked for [[sethml@ofb.net|me]] on OS X 10.9.5, building 14.07 branch "​Barrier Breaker"​. ​
 +
 +  - [[http://​brew.sh/​|Install brew]].
 +  - Install prerequisites:​ <code bash>​brew install asciidoc binutils coreutils findutils gawk gettext gnu-getopt gnu-tar openssl xz</​code>​
 +  - BuildRoot expects '​getopt'​ to be GNU getopt, so symlink it into place: <code bash>ln -s `brew --prefix gnu-getopt`/​bin/​getopt `brew --prefix`/​bin/​gnugetopt</​code>​
 +  - Follow the [[doc:​howto:​buildroot.exigence#​downloading_sources|Linux instructions starting with Downloading Sources]]
 +  - If you run into any additional steps required, please add them to this page!
 +
 +----
 +===== Old Instructions =====
 +You can find old instructions on the [[doc:​howto:​buildroot.exigence.macosx.old|Old OSX Instructions page.]]