added iw for ap
This commit is contained in:
+12
-4
@@ -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}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user