added libnl and some iw

This commit is contained in:
wt committed 2025-03-01 04:11:08 +07:00
1 parent 7a8a4fc984
commit 91b7d9341d
7 files changed
+74 -2

No files matched your search

+3
View File
@@ -21,5 +21,8 @@ distclean:
dropbear: dropbear:
./scripts/build_image.sh dropbear ./scripts/build_image.sh dropbear
libnl:
./scripts/build_image.sh libnl
sdroot_usable: sdroot_usable:
./scripts/build_image.sh sdroot_usable ./scripts/build_image.sh sdroot_usable
+4
View File
@@ -10,6 +10,7 @@
. ./scripts/uboot.sh . ./scripts/uboot.sh
. ./scripts/sdroot.sh . ./scripts/sdroot.sh
. ./scripts/dropbear.sh . ./scripts/dropbear.sh
. ./scripts/libnl.sh
case $1 in case $1 in
build) build)
@@ -32,6 +33,9 @@ case $1 in
download) download)
download_sources download_sources
;; ;;
libnl)
libnl
;;
sdroot_usable) sdroot_usable)
if [ ! -d downloads ]; then if [ ! -d downloads ]; then
download_sources download_sources
+4
View File
@@ -29,4 +29,8 @@ export curl_enable="false"
export bash_enable="false" export bash_enable="false"
export git_enable="false" export git_enable="false"
export gitea_enable="false" export gitea_enable="false"
export libnl_enable="false"
export iw_enable="false"
export wireles_tools_enable="false"
export wpa_supplicant_enable="false"
#-------------------------------------- #--------------------------------------
+17
View File
@@ -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}
}
+38
View File
@@ -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 -
}
+4
View File
@@ -13,6 +13,7 @@
. ./scripts/bash.sh . ./scripts/bash.sh
. ./scripts/git.sh . ./scripts/git.sh
. ./scripts/gitea.sh . ./scripts/gitea.sh
. ./scripts/libnl.sh
#----------- Building rootfs ---------------------- #----------- Building rootfs ----------------------
rootfs() { rootfs() {
@@ -65,6 +66,9 @@ rootfs() {
if [ "$gitea_enable" = "true" ]; then if [ "$gitea_enable" = "true" ]; then
gitea gitea
fi fi
if [ "$libnl_enable" = "true" ]; then
libnl
fi
chmod 640 $rootfspath/etc/shadow $rootfspath/etc/inittab chmod 640 $rootfspath/etc/shadow $rootfspath/etc/inittab
chmod 755 $rootfspath/etc/init.d/* $rootfspath/usr/share/udhcpc/default.script $rootfspath/init chmod 755 $rootfspath/etc/init.d/* $rootfspath/usr/share/udhcpc/default.script $rootfspath/init
+4 -2
View File
@@ -2,7 +2,7 @@ https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.13.3.tar.xz
# https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.1.91.tar.xz # https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.1.91.tar.xz
https://busybox.net/downloads/busybox-1.36.1.tar.bz2 https://busybox.net/downloads/busybox-1.36.1.tar.bz2
https://downloads.uclibc-ng.org/releases/1.0.50/uClibc-ng-1.0.50.tar.xz https://downloads.uclibc-ng.org/releases/1.0.50/uClibc-ng-1.0.50.tar.xz
http://gitea.home.com:3000/TolaMironcenko/initscripts/archive/0.0.1-x86_64.tar.gz https://gitea.home.com:3000/TolaMironcenko/initscripts/archive/20250110-1.tar.gz
https://github.com/u-boot/u-boot/archive/refs/tags/v2025.01.tar.gz https://github.com/u-boot/u-boot/archive/refs/tags/v2025.01.tar.gz
https://www.zlib.net/zlib-1.3.1.tar.gz https://www.zlib.net/zlib-1.3.1.tar.gz
https://github.com/mkj/dropbear/archive/refs/tags/DROPBEAR_2024.86.tar.gz https://github.com/mkj/dropbear/archive/refs/tags/DROPBEAR_2024.86.tar.gz
@@ -10,4 +10,6 @@ https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.9p1.tar.gz
https://curl.se/download/curl-8.9.1.tar.xz https://curl.se/download/curl-8.9.1.tar.xz
https://ftp.gnu.org/gnu/bash/bash-5.2.32.tar.gz https://ftp.gnu.org/gnu/bash/bash-5.2.32.tar.gz
https://www.kernel.org/pub/software/scm/git/git-2.46.0.tar.xz https://www.kernel.org/pub/software/scm/git/git-2.46.0.tar.xz
https://dl.gitea.com/gitea/1.22.4/gitea-1.22.4-linux-arm-5 https://dl.gitea.com/gitea/1.22.4/gitea-1.22.4-linux-arm-5
# https://www.kernel.org/pub/software/network/iw/iw-6.9.tar.xz
# https://github.com/thom311/libnl/releases/download/libnl3_10_0/libnl-3.10.0.tar.gz