added iw for ap

This commit is contained in:
wt
2025-03-02 00:50:34 +07:00
parent dd41d6fe02
commit 8e194a61b7
11 changed files with 34 additions and 23 deletions
+3
View File
@@ -24,5 +24,8 @@ dropbear:
libnl: libnl:
./scripts/build_image.sh libnl ./scripts/build_image.sh libnl
iw:
./scripts/build_image.sh iw
sdroot_usable: sdroot_usable:
./scripts/build_image.sh sdroot_usable ./scripts/build_image.sh sdroot_usable
+2 -3
View File
@@ -4,10 +4,9 @@
. ./scripts/funcs.sh . ./scripts/funcs.sh
. ./scripts/config.sh . ./scripts/config.sh
pkgname=bash
pkgver=5.2.32
bash() { bash() {
pkgname=bash
pkgver=5.2.32
printf "$GREEN** Building and installing bash\n$RESET" printf "$GREEN** Building and installing bash\n$RESET"
mkdir $build/${pkgname} mkdir $build/${pkgname}
cd $build/${pkgname} cd $build/${pkgname}
+4
View File
@@ -11,6 +11,7 @@
. ./scripts/sdroot.sh . ./scripts/sdroot.sh
. ./scripts/dropbear.sh . ./scripts/dropbear.sh
. ./scripts/libnl.sh . ./scripts/libnl.sh
. ./scripts/iw.sh
case $1 in case $1 in
build) build)
@@ -36,6 +37,9 @@ case $1 in
libnl) libnl)
libnl libnl
;; ;;
iw)
iw
;;
sdroot_usable) sdroot_usable)
if [ ! -d downloads ]; then if [ ! -d downloads ]; then
download_sources download_sources
+1 -1
View File
@@ -30,7 +30,7 @@ export bash_enable="false"
export git_enable="false" export git_enable="false"
export gitea_enable="false" export gitea_enable="false"
export libnl_enable="false" export libnl_enable="false"
export iw_enable="false" export iw_enable="true"
export wireles_tools_enable="false" export wireles_tools_enable="false"
export wpa_supplicant_enable="false" export wpa_supplicant_enable="false"
#-------------------------------------- #--------------------------------------
+2 -3
View File
@@ -5,13 +5,12 @@
. ./scripts/config.sh . ./scripts/config.sh
. ./scripts/zlib.sh . ./scripts/zlib.sh
pkgname=curl
pkgver=8.9.1
curl() { curl() {
if [ ! -d $build/zlib ]; then if [ ! -d $build/zlib ]; then
zlib zlib
fi fi
pkgname=curl
pkgver=8.9.1
printf "$GREEN** Building and installing curl\n$RESET" printf "$GREEN** Building and installing curl\n$RESET"
mkdir $build/${pkgname} mkdir $build/${pkgname}
cd $build/${pkgname} cd $build/${pkgname}
+2 -3
View File
@@ -5,13 +5,12 @@
. ./scripts/config.sh . ./scripts/config.sh
. ./scripts/curl.sh . ./scripts/curl.sh
pkgname=git
pkgver=2.46.0
git() { git() {
if [ ! -d $build/curl ]; then if [ ! -d $build/curl ]; then
curl curl
fi fi
pkgname=git
pkgver=2.46.0
printf "$GREEN** Building and installing ${pkgname}\n$RESET" printf "$GREEN** Building and installing ${pkgname}\n$RESET"
mkdir $build/git mkdir $build/git
cd $build/git cd $build/git
+12 -4
View File
@@ -3,15 +3,23 @@
. ./scripts/colors.sh . ./scripts/colors.sh
. ./scripts/funcs.sh . ./scripts/funcs.sh
. ./scripts/config.sh . ./scripts/config.sh
. ./scripts/libnl.sh
pkgname=iw
pkgver=6.9
iw() { iw() {
[ ! -d $build/libnl ] && libnl
pkgname=iw
pkgver=6.9
printf "$GREEN** Building and installing iw\n$RESET" printf "$GREEN** Building and installing iw\n$RESET"
[ ! -d $build/iw ] && mkdir $build/iw [ ! -d $build/iw ] && mkdir $build/iw
cd $build/iw cd $build/iw
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.xz tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.xz
cd ${pkgname}-${pkgver} cd ${pkgname}-${pkgver}
CC=arm-buildroot-linux-uclibcgnueabihf-gcc \
PKG_CONFIG_PATH=/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/lib/pkgconfig \
make ${makeflags}
check $? "Build ${pkgname}"
${CROSS_COMPILE}-strip iw
check $? "Stripping ${pkgname} binary"
cp -v iw $rootfspath/usr/bin/iw
check $? "Install to rootfs ${pkgname}"
} }
+2 -3
View File
@@ -4,10 +4,9 @@
. ./scripts/funcs.sh . ./scripts/funcs.sh
. ./scripts/config.sh . ./scripts/config.sh
pkgname=libnl
pkgver=3.10.0
libnl() { libnl() {
pkgname=libnl
pkgver=3.10.0
printf "$GREEN** Building and installing ${pkgname}\n$RESET" printf "$GREEN** Building and installing ${pkgname}\n$RESET"
[ ! -d $build/${pkgname} ] && mkdir $build/${pkgname} [ ! -d $build/${pkgname} ] && mkdir $build/${pkgname}
cd $build/${pkgname} cd $build/${pkgname}
+2
View File
@@ -14,6 +14,7 @@
. ./scripts/git.sh . ./scripts/git.sh
. ./scripts/gitea.sh . ./scripts/gitea.sh
. ./scripts/libnl.sh . ./scripts/libnl.sh
. ./scripts/iw.sh
#----------- Building rootfs ---------------------- #----------- Building rootfs ----------------------
rootfs() { rootfs() {
@@ -69,6 +70,7 @@ rootfs() {
if [ "$libnl_enable" = "true" ]; then if [ "$libnl_enable" = "true" ]; then
libnl libnl
fi fi
[ "$iw_enable" = "true" ] && iw
chmod 640 $rootfspath/etc/shadow $rootfspath/etc/inittab chmod 640 $rootfspath/etc/shadow $rootfspath/etc/inittab
chmod 755 $rootfspath/etc/init.d/* $rootfspath/usr/share/udhcpc/default.script $rootfspath/init chmod 755 $rootfspath/etc/init.d/* $rootfspath/usr/share/udhcpc/default.script $rootfspath/init
+2 -3
View File
@@ -4,11 +4,10 @@
. ./scripts/funcs.sh . ./scripts/funcs.sh
. ./scripts/config.sh . ./scripts/config.sh
pkgname=uClibc-ng
pkgver=1.0.50
#------------ glibc ---------------------------------------- #------------ glibc ----------------------------------------
uclibc() { uclibc() {
pkgname=uClibc-ng
pkgver=1.0.50
printf "$UGREEN** Building ${pkgname}\n$RESET" printf "$UGREEN** Building ${pkgname}\n$RESET"
mkdir -p $build/${pkgname} # &>> $fulllogfile mkdir -p $build/${pkgname} # &>> $fulllogfile
cd $build/${pkgname} cd $build/${pkgname}
+2 -3
View File
@@ -4,10 +4,9 @@
. ./scripts/funcs.sh . ./scripts/funcs.sh
. ./scripts/config.sh . ./scripts/config.sh
pkgname=zlib
pkgver=1.3.1
zlib() { zlib() {
pkgname=zlib
pkgver=1.3.1
printf "$GREEN** Building and installing ${pkgname}\n$RESET" printf "$GREEN** Building and installing ${pkgname}\n$RESET"
mkdir $build/${pkgname} mkdir $build/${pkgname}
cd $build/${pkgname} cd $build/${pkgname}