Files
SimpleLinux/scripts/iw.sh
T
2025-03-05 17:52:04 +07:00

26 lines
748 B
Bash

#!/bin/bash
. ./scripts/colors.sh
. ./scripts/funcs.sh
. ./scripts/config.sh
. ./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=${CROSS_COMPILE}-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}"
}