26 lines
706 B
Bash
26 lines
706 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/$CROSS_COMPILE/$CROSS_COMPILE/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}"
|
|
}
|