If anyone is aware of OpenWrt, you might know that it provides a build system for allowing users to build their own image. Apparently this build system could be installed on FreeBSD at one time, but is not currently available.... hopefully until now
Here is my effort to create it:-
I've only just managed to get this working, so would appreciate any feedback. The build system does get installed, but I haven't yet produced an image, just pleased to have got this far.
Here is my effort to create it:-
Code:
# Install required pkgs
cat <<EOF | xargs pkg install -y
git
bash
gmake
gtar
gcc
gawk
ncurses
findutils
patch
wget
getopt
coreutils
EOF
# Build and install GNU time
wget https://ftp.gnu.org/gnu/time/time-1.9.tar.gz
tar zxf time-1.9.tar.gz
cd time-1.9
./configure
make
make install
mv /usr/local/bin/time /usr/local/bin/gtime
# Install OpenWrt Build System
mkdir ~/OpenWrt-BuildSystem
cd ~/OpenWrt-BuildSystem
git clone https://github.com/openwrt/openwrt.git
cd openwrt
# patch mkhash.c
wget 'https://bugs.openwrt.org/index.php?getfile=292' -O patchfile
patch scripts/mkhash.c -i patchfile -o scripts/mkhash.c
# Let's go!!!
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
I've only just managed to get this working, so would appreciate any feedback. The build system does get installed, but I haven't yet produced an image, just pleased to have got this far.