I may have posted this before, but I've just tested it in a new IOCAGE jail to see if it works and it does.
If anyone is interested in OpenWrt, please feel free to try it.
Compare the above with what is suggested on the OpenWrt website
openwrt.org
I'd be interested to know if it's possible to build an x86 version of OpenWrt using this build system but don't where to start.
If anyone is interested in OpenWrt, please feel free to try it.
Code:
#########
#########
#########
######### Changes required
#########
######### include inline patches
#########
######### check if packages have been installed
#########
#########
#########
pkg bootstrap -y
# Install required pkgs
cat <<EOF | xargs pkg install -y
git
rsync
bash
gmake
gtar
gcc
gawk
ncurses
findutils
diffutils
patch
wget
getopt
coreutils
pkgconf
EOF
# Install OpenWrt Build System
mkdir /OpenWrt-BuildSystem
cd /OpenWrt-BuildSystem
git clone https://github.com/openwrt/openwrt.git
cd openwrt
# patch prereq-build.mk
patch <<EOF
--- include/prereq-build.mk 2023-08-26 09:03:31.437266000 +0100
+++ -
@@ -149,6 +149,7 @@
Please install an extended getopt version that supports --long, \\
gnugetopt -o t --long test -- --test | grep '^ *--test *--', \\
getopt -o t --long test -- --test | grep '^ *--test *--', \\
+ /usr/local/bin/getopt -o t --long test -- --test | grep '^ *--test *--', \\
/usr/local/opt/gnu-getopt/bin/getopt -o t --long test -- --test | grep '^ *--test *--', \\
/opt/local/bin/getopt -o t --long test -- --test | grep '^ *--test *--'))
EOF
#exit
pkg-config=ncurses
# Let's go!!!
./scripts/feeds update -a
./scripts/feeds install -a
# mkdir -p /usr/include/ncursesw
# cd /usr/include/ncursesw
# ln -s ../ncurses*.h ./
make menuconfig
Compare the above with what is suggested on the OpenWrt website
[OpenWrt Wiki] Build system setup
I'd be interested to know if it's possible to build an x86 version of OpenWrt using this build system but don't where to start.