added libnl and some iw
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
. ./scripts/uboot.sh
|
||||
. ./scripts/sdroot.sh
|
||||
. ./scripts/dropbear.sh
|
||||
. ./scripts/libnl.sh
|
||||
|
||||
case $1 in
|
||||
build)
|
||||
@@ -32,6 +33,9 @@ case $1 in
|
||||
download)
|
||||
download_sources
|
||||
;;
|
||||
libnl)
|
||||
libnl
|
||||
;;
|
||||
sdroot_usable)
|
||||
if [ ! -d downloads ]; then
|
||||
download_sources
|
||||
|
||||
@@ -29,4 +29,8 @@ export curl_enable="false"
|
||||
export bash_enable="false"
|
||||
export git_enable="false"
|
||||
export gitea_enable="false"
|
||||
export libnl_enable="false"
|
||||
export iw_enable="false"
|
||||
export wireles_tools_enable="false"
|
||||
export wpa_supplicant_enable="false"
|
||||
#--------------------------------------
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
. ./scripts/colors.sh
|
||||
. ./scripts/funcs.sh
|
||||
. ./scripts/config.sh
|
||||
|
||||
pkgname=iw
|
||||
pkgver=6.9
|
||||
|
||||
iw() {
|
||||
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}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
#!/bin/sh
|
||||
|
||||
. ./scripts/colors.sh
|
||||
. ./scripts/funcs.sh
|
||||
. ./scripts/config.sh
|
||||
|
||||
pkgname=libnl
|
||||
pkgver=3.10.0
|
||||
|
||||
libnl() {
|
||||
printf "$GREEN** Building and installing libnl\n$RESET"
|
||||
[ ! -d $build/libnl ] && mkdir $build/libnl
|
||||
cd $build/libnl
|
||||
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.gz
|
||||
check $? "Extract $pkgname"
|
||||
cd ${pkgname}-${pkgver}
|
||||
./configure \
|
||||
--host=${CROSS_COMPILE} \
|
||||
--disable-debug \
|
||||
--disable-static \
|
||||
--disable-cli \
|
||||
--build=x86_64-pc-linux-gnu \
|
||||
--prefix=/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr
|
||||
check $? "Configure $pkgname"
|
||||
make $makeflags
|
||||
check $? "Build $pkgname"
|
||||
make DESTDIR=$(pwd)/bin install
|
||||
rm -rv $(pwd)/bin/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/lib/{pkgconfig,*.la}
|
||||
${CROSS_COMPILE}-strip $(pwd)/bin/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/lib/*
|
||||
cd $(pwd)/bin/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/lib
|
||||
tar -czvf /tmp/libnl.tar.gz .
|
||||
check $? "Archived libs"
|
||||
cd -
|
||||
cd $rootfspath/usr/lib
|
||||
tar -xvf /tmp/libnl.tar.gz
|
||||
check $? "Unrchived libs"
|
||||
cd -
|
||||
}
|
||||
@@ -13,6 +13,7 @@
|
||||
. ./scripts/bash.sh
|
||||
. ./scripts/git.sh
|
||||
. ./scripts/gitea.sh
|
||||
. ./scripts/libnl.sh
|
||||
|
||||
#----------- Building rootfs ----------------------
|
||||
rootfs() {
|
||||
@@ -65,6 +66,9 @@ rootfs() {
|
||||
if [ "$gitea_enable" = "true" ]; then
|
||||
gitea
|
||||
fi
|
||||
if [ "$libnl_enable" = "true" ]; then
|
||||
libnl
|
||||
fi
|
||||
|
||||
chmod 640 $rootfspath/etc/shadow $rootfspath/etc/inittab
|
||||
chmod 755 $rootfspath/etc/init.d/* $rootfspath/usr/share/udhcpc/default.script $rootfspath/init
|
||||
|
||||
Reference in New Issue
Block a user