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:
./scripts/build_image.sh libnl
iw:
./scripts/build_image.sh iw
sdroot_usable:
./scripts/build_image.sh sdroot_usable
+2 -3
View File
@@ -4,10 +4,9 @@
. ./scripts/funcs.sh
. ./scripts/config.sh
pkgname=bash
pkgver=5.2.32
bash() {
pkgname=bash
pkgver=5.2.32
printf "$GREEN** Building and installing bash\n$RESET"
mkdir $build/${pkgname}
cd $build/${pkgname}
+4
View File
@@ -11,6 +11,7 @@
. ./scripts/sdroot.sh
. ./scripts/dropbear.sh
. ./scripts/libnl.sh
. ./scripts/iw.sh
case $1 in
build)
@@ -36,6 +37,9 @@ case $1 in
libnl)
libnl
;;
iw)
iw
;;
sdroot_usable)
if [ ! -d downloads ]; then
download_sources
+1 -1
View File
@@ -30,7 +30,7 @@ export bash_enable="false"
export git_enable="false"
export gitea_enable="false"
export libnl_enable="false"
export iw_enable="false"
export iw_enable="true"
export wireles_tools_enable="false"
export wpa_supplicant_enable="false"
#--------------------------------------
+2 -3
View File
@@ -5,13 +5,12 @@
. ./scripts/config.sh
. ./scripts/zlib.sh
pkgname=curl
pkgver=8.9.1
curl() {
if [ ! -d $build/zlib ]; then
zlib
fi
pkgname=curl
pkgver=8.9.1
printf "$GREEN** Building and installing curl\n$RESET"
mkdir $build/${pkgname}
cd $build/${pkgname}
+2 -3
View File
@@ -5,13 +5,12 @@
. ./scripts/config.sh
. ./scripts/curl.sh
pkgname=git
pkgver=2.46.0
git() {
if [ ! -d $build/curl ]; then
curl
fi
pkgname=git
pkgver=2.46.0
printf "$GREEN** Building and installing ${pkgname}\n$RESET"
mkdir $build/git
cd $build/git
+12 -4
View File
@@ -3,15 +3,23 @@
. ./scripts/colors.sh
. ./scripts/funcs.sh
. ./scripts/config.sh
pkgname=iw
pkgver=6.9
. ./scripts/libnl.sh
iw() {
[ ! -d $build/libnl ] && libnl
pkgname=iw
pkgver=6.9
printf "$GREEN** Building and installing iw\n$RESET"
[ ! -d $build/iw ] && mkdir $build/iw
cd $build/iw
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.xz
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/config.sh
pkgname=libnl
pkgver=3.10.0
libnl() {
pkgname=libnl
pkgver=3.10.0
printf "$GREEN** Building and installing ${pkgname}\n$RESET"
[ ! -d $build/${pkgname} ] && mkdir $build/${pkgname}
cd $build/${pkgname}
+2
View File
@@ -14,6 +14,7 @@
. ./scripts/git.sh
. ./scripts/gitea.sh
. ./scripts/libnl.sh
. ./scripts/iw.sh
#----------- Building rootfs ----------------------
rootfs() {
@@ -69,6 +70,7 @@ rootfs() {
if [ "$libnl_enable" = "true" ]; then
libnl
fi
[ "$iw_enable" = "true" ] && iw
chmod 640 $rootfspath/etc/shadow $rootfspath/etc/inittab
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/config.sh
pkgname=uClibc-ng
pkgver=1.0.50
#------------ glibc ----------------------------------------
uclibc() {
pkgname=uClibc-ng
pkgver=1.0.50
printf "$UGREEN** Building ${pkgname}\n$RESET"
mkdir -p $build/${pkgname} # &>> $fulllogfile
cd $build/${pkgname}
+2 -3
View File
@@ -4,10 +4,9 @@
. ./scripts/funcs.sh
. ./scripts/config.sh
pkgname=zlib
pkgver=1.3.1
zlib() {
pkgname=zlib
pkgver=1.3.1
printf "$GREEN** Building and installing ${pkgname}\n$RESET"
mkdir $build/${pkgname}
cd $build/${pkgname}