Last active
August 12, 2020 20:38
-
-
Save pstef/ff98d32f637592b2998584c13c7a2800 to your computer and use it in GitHub Desktop.
Instructions for getting OpenWrt to compile on FreeBSD
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
portmaster shells/bash sysutils/coreutils textproc/diffutils misc/findutils lang/gawk lang/gcc10 misc/getopt devel/git-lite devel/gmake textproc/gsed archivers/gtar devel/patch lang/perl5.30 lang/python37 net/rsync ftp/wget | |
or | |
pkg install bash coreutils diffutils findutils gawk gcc getopt git-lite gmake gsed gtar patch perl5 python rsync wget | |
git clone --shallow-since=2016-03-01 'https://github.com/pstef/openwrt' --branch=freebsd && cd openwrt | |
mkdir -p staging_dir/host/bin && cd staging_dir/host/bin | |
ln -s /usr/local/bin/getopt | |
ln -s /usr/local/bin/gmake make | |
cd ../../.. | |
./scripts/feeds update -a | |
./scripts/feeds install -a | |
cp target/linux/ath79/generic/config-default .config | |
gmake menuconfig CC=gcc CXX=g++ #all tooling could be compiled with host cc (clang) except for the cross-compiling gcc | |
gmake -sj4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment