added zlib
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
. ./scripts/busybox.sh
|
||||
. ./scripts/uclibc.sh
|
||||
. ./scripts/kernel.sh
|
||||
. ./scripts/zlib.sh
|
||||
|
||||
#----------- Building rootfs ----------------------
|
||||
rootfs() {
|
||||
@@ -35,6 +36,7 @@ rootfs() {
|
||||
uclibc
|
||||
kernel
|
||||
kernel_modules
|
||||
zlib
|
||||
|
||||
chmod 640 $rootfspath/etc/shadow $rootfspath/etc/inittab
|
||||
chmod 755 $rootfspath/etc/init.d/* $rootfspath/usr/share/udhcpc/default.script $rootfspath/init
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
. ./scripts/colors.sh
|
||||
. ./scripts/funcs.sh
|
||||
. ./scripts/config.sh
|
||||
|
||||
zlib() {
|
||||
printf "$GREEN** Building and installing zlib\n$RESET"
|
||||
mkdir $build/zlib
|
||||
cd $build/zlib
|
||||
tar -xvf $root/downloads/zlib-1.3.1.tar.gz
|
||||
check $? "Extract zlib"
|
||||
cd zlib-1.3.1
|
||||
CC=${CROSS_COMPILE}gcc ./configure --prefix=/usr --shared
|
||||
check $? "Configure zlib"
|
||||
make $makeflags
|
||||
check $? "Build zlib"
|
||||
make DESTDIR=$rootfspath install
|
||||
rm -rv $rootfspath/usr/include $rootfspath/usr/share/man $rootfspath/usr/lib/{pkgconfig,libz.a}
|
||||
${CROSS_COMPILE}strip $rootfspath/usr/lib/libz.so.1.3.1
|
||||
check $? "Installing to rootfs zlib"
|
||||
}
|
||||
+2
-1
@@ -2,4 +2,5 @@ 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://downloads.uclibc-ng.org/releases/1.0.50/uClibc-ng-1.0.50.tar.xz
|
||||
https://github.com/TolaMironcenko/initscripts/archive/refs/tags/0.0.1-orangepi-pc/initscripts-0.0.1-orangepi-pc.tar.gz
|
||||
https://github.com/u-boot/u-boot/archive/refs/tags/v2024.10/u-boot-v2024.10.tar.gz
|
||||
https://github.com/u-boot/u-boot/archive/refs/tags/v2024.10/u-boot-v2024.10.tar.gz
|
||||
https://www.zlib.net/zlib-1.3.1.tar.gz
|
||||
Reference in New Issue
Block a user