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
+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}"
}