From 446ae0277560e12e9ece4368854a77767fd10f4b Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Thu, 26 Feb 2026 13:40:18 +0700 Subject: [PATCH] update --- .../etc/finit.d/available/hostname.conf | 1 - .../etc/finit.d/enabled/hostname.conf | 1 - .../uclibc-1.0.56-byteswap-common.h.patch | 15 +++++++++ .../etc/finit.d/available/hostname.conf | 1 - .../etc/finit.d/enabled/hostname.conf | 1 - scripts/build_image.sh | 4 +++ scripts/busybox.sh | 3 ++ scripts/cleanup_rootfs.sh | 23 +++++++++++++ scripts/curl.sh | 18 +++++------ scripts/dnsmasq.sh | 6 ++-- scripts/dropbear.sh | 14 ++++---- scripts/finit_init.sh | 32 +++++++++---------- scripts/git.sh | 2 +- scripts/iptables.sh | 12 +++---- scripts/iw.sh | 4 +-- scripts/kernel.sh | 4 ++- scripts/libnl.sh | 4 +-- scripts/libsqlite3.sh | 10 +++--- scripts/lm_sensors.sh | 6 ++-- scripts/lrzsz.sh | 2 +- scripts/openssl.sh | 4 +-- scripts/rootfs.sh | 20 +++++++++--- scripts/sftp_server.sh | 4 +-- scripts/tcc.sh | 8 ++--- scripts/uclibc.sh | 14 ++++---- scripts/wpa_supplicant.sh | 4 +-- scripts/zlib.sh | 8 ++--- sources.txt | 1 + 28 files changed, 140 insertions(+), 86 deletions(-) delete mode 100644 board/orangepi_pc/rootfs_overlay/etc/finit.d/available/hostname.conf delete mode 120000 board/orangepi_pc/rootfs_overlay/etc/finit.d/enabled/hostname.conf create mode 100644 board/orangepi_pc/uclibc-1.0.56-byteswap-common.h.patch delete mode 100644 board/orangepi_zero_2w/rootfs_overlay/etc/finit.d/available/hostname.conf delete mode 120000 board/orangepi_zero_2w/rootfs_overlay/etc/finit.d/enabled/hostname.conf create mode 100755 scripts/cleanup_rootfs.sh diff --git a/board/orangepi_pc/rootfs_overlay/etc/finit.d/available/hostname.conf b/board/orangepi_pc/rootfs_overlay/etc/finit.d/available/hostname.conf deleted file mode 100644 index 7fde3c0..0000000 --- a/board/orangepi_pc/rootfs_overlay/etc/finit.d/available/hostname.conf +++ /dev/null @@ -1 +0,0 @@ -task [S] hostname -F /etc/hostname diff --git a/board/orangepi_pc/rootfs_overlay/etc/finit.d/enabled/hostname.conf b/board/orangepi_pc/rootfs_overlay/etc/finit.d/enabled/hostname.conf deleted file mode 120000 index 095bdf7..0000000 --- a/board/orangepi_pc/rootfs_overlay/etc/finit.d/enabled/hostname.conf +++ /dev/null @@ -1 +0,0 @@ -../available/hostname.conf \ No newline at end of file diff --git a/board/orangepi_pc/uclibc-1.0.56-byteswap-common.h.patch b/board/orangepi_pc/uclibc-1.0.56-byteswap-common.h.patch new file mode 100644 index 0000000..4837703 --- /dev/null +++ b/board/orangepi_pc/uclibc-1.0.56-byteswap-common.h.patch @@ -0,0 +1,15 @@ +--- a/usr/include/bits/byteswap-common.h 2026-02-26 13:00:22.122847479 +0700 ++++ b/usr/include/bits/byteswap-common.h 2026-02-26 13:13:45.742263491 +0700 +@@ -102,11 +102,7 @@ + | (((x) & 0x000000000000ff00ull) << 40) \ + | (((x) & 0x00000000000000ffull) << 56)) + +-static __inline __uint64_t +-__bswap_64 (__uint64_t __bsx) +-{ +- return __bswap_constant_64 (__bsx); +-} ++#define __bswap_64 (__uint64_t __bsx) return __bswap_constant_64 (__bsx) + #endif + + #endif /* _BITS_BYTESWAP_H */ \ No newline at end of file diff --git a/board/orangepi_zero_2w/rootfs_overlay/etc/finit.d/available/hostname.conf b/board/orangepi_zero_2w/rootfs_overlay/etc/finit.d/available/hostname.conf deleted file mode 100644 index 7fde3c0..0000000 --- a/board/orangepi_zero_2w/rootfs_overlay/etc/finit.d/available/hostname.conf +++ /dev/null @@ -1 +0,0 @@ -task [S] hostname -F /etc/hostname diff --git a/board/orangepi_zero_2w/rootfs_overlay/etc/finit.d/enabled/hostname.conf b/board/orangepi_zero_2w/rootfs_overlay/etc/finit.d/enabled/hostname.conf deleted file mode 120000 index 095bdf7..0000000 --- a/board/orangepi_zero_2w/rootfs_overlay/etc/finit.d/enabled/hostname.conf +++ /dev/null @@ -1 +0,0 @@ -../available/hostname.conf \ No newline at end of file diff --git a/scripts/build_image.sh b/scripts/build_image.sh index f452b0d..8024c1f 100755 --- a/scripts/build_image.sh +++ b/scripts/build_image.sh @@ -22,6 +22,7 @@ . ./scripts/wpa_supplicant.sh . ./scripts/lrzsz.sh . ./scripts/tcc.sh +. ./scripts/zlib.sh case $1 in build) @@ -88,6 +89,9 @@ case $1 in tcc) tcc_build ;; + zlib) + zlib + ;; *) printf "$UYELLOW** $0 script using: $0 {clean|build|download|rootfs}\n$RESET" exit 1 diff --git a/scripts/busybox.sh b/scripts/busybox.sh index bb3e3cb..a7e6025 100755 --- a/scripts/busybox.sh +++ b/scripts/busybox.sh @@ -24,6 +24,9 @@ busybox_rootfs() { printf "$UGREEN** Building busybox\n$RESET" make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- $makeflags # &>> $fulllogfile check $? "Build busybox all logs in .log" + cp -v busybox $rootfspath/usr/bin # &>> $fulllogfile + cd $rootfspath/usr/bin + for i in $(cat $BUSYBOX_LIST_FILE); do ln -sv busybox $i; done } #-------------------------------------------------- diff --git a/scripts/cleanup_rootfs.sh b/scripts/cleanup_rootfs.sh new file mode 100755 index 0000000..16a5ab6 --- /dev/null +++ b/scripts/cleanup_rootfs.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +set -x + +. ./scripts/colors.sh +. ./scripts/funcs.sh +. ./scripts/config.sh + +cleanup_rootfs() { + if [ "${TCC_C_COMPILER_ENABLE}" = "n" ]; then + find $rootfspath -type f -name "*.a" -delete + find $rootfspath -type f -name "*.la" -delete + rm -rv $rootfspath/usr/include + rm -rv $rootfspath/usr/share/man + rm -rv $rootfspath/usr/lib/pkgconfig + fi + STRIP_FILES=$(file --mime-type $(find $rootfspath -type f) | grep "application/x-executable\|application/x-sharedlib\|application/x-pie-executable" | sed 's/:.*$//') + # echo $STRIP_FILES + for i in $STRIP_FILES; do + ${CROSS_COMPILE}-strip $i + echo $i + done +} diff --git a/scripts/curl.sh b/scripts/curl.sh index 43331c7..cd4cdbd 100644 --- a/scripts/curl.sh +++ b/scripts/curl.sh @@ -28,14 +28,14 @@ curl() { make $makeflags check $? "Build ${pkgname}" make DESTDIR=$rootfspath install - rm \ - -rv \ - $rootfspath/usr/include \ - $rootfspath/usr/share/aclocal \ - $rootfspath/usr/share/man \ - $rootfspath/usr/lib/*.a \ - $rootfspath/usr/lib/*.la \ - $rootfspath/usr/lib/pkgconfig - $CROSS_COMPILE-strip --strip-unneeded $rootfspath/usr/bin/curl $rootfspath/usr/lib/libcurl.so.4.8.0 + # rm \ + # -rv \ + # $rootfspath/usr/include \ + # $rootfspath/usr/share/aclocal \ + # $rootfspath/usr/share/man \ + # $rootfspath/usr/lib/*.a \ + # $rootfspath/usr/lib/*.la \ + # $rootfspath/usr/lib/pkgconfig + # $CROSS_COMPILE-strip --strip-unneeded $rootfspath/usr/bin/curl $rootfspath/usr/lib/libcurl.so.4.8.0 check $? "Installing to rootfs ${pkgname}" } diff --git a/scripts/dnsmasq.sh b/scripts/dnsmasq.sh index 563cd82..5a0470b 100644 --- a/scripts/dnsmasq.sh +++ b/scripts/dnsmasq.sh @@ -14,8 +14,8 @@ dnsmasq() { cd ${pkgname}-${pkgver} make CC=${CROSS_COMPILE}-gcc ${makeflags} check $? "Build ${pkgname}" - ${CROSS_COMPILE}-strip src/$pkgname - check $? "Stripping ${pkgname} binary" + # ${CROSS_COMPILE}-strip src/$pkgname + # check $? "Stripping ${pkgname} binary" cp -v src/$pkgname $rootfspath/usr/bin/$pkgname check $? "Install to rootfs ${pkgname}" -} \ No newline at end of file +} diff --git a/scripts/dropbear.sh b/scripts/dropbear.sh index 8140028..8b0b328 100644 --- a/scripts/dropbear.sh +++ b/scripts/dropbear.sh @@ -10,25 +10,25 @@ dropbear() { zlib fi printf "$GREEN** Building and installing dropbear\n$RESET" - [ -d $build/dropbear ] && return 0 + # [ -d $build/dropbear ] && return 0 mkdir $build/dropbear cd $build/dropbear - tar -xvf $root/downloads/DROPBEAR_2024.86.tar.gz + tar -xvf $root/downloads/DROPBEAR_2025.89.tar.gz check $? "Extract dropbear" - cd dropbear-DROPBEAR_2024.86 + cd dropbear-DROPBEAR_2025.89 ./configure \ --prefix=/usr \ --host=$CROSS_COMPILE \ - --with-zlib=$build/rootfs/usr + --with-zlib=$build/rootfs/usr/include # CC=${CROSS_COMPILE}gcc ./configure --prefix=/usr --shared check $? "Configure dropbear" make $makeflags check $? "Build dropbear" make DESTDIR=$rootfspath install check $? "Installing to rootfs dropbear" - [ "$SFTP_SERVER_ENABLE" = "n" ] && rm -rv $rootfspath/usr/include $rootfspath/usr/share/man $rootfspath/usr/lib/{pkgconfig,libz.a} - ${CROSS_COMPILE}-strip --strip-unneeded $rootfspath/usr/bin/* + # [ "$SFTP_SERVER_ENABLE" = "n" ] && rm -rv $rootfspath/usr/include $rootfspath/usr/share/man $rootfspath/usr/lib/{pkgconfig,libz.a} + # ${CROSS_COMPILE}-strip --strip-unneeded $rootfspath/usr/bin/* mkdir -pv $build/rootfs/etc/dropbear # check $? "Installing to rootfs zlib" - rm -rvf $rootfspath/usr/share/man + # rm -rvf $rootfspath/usr/share/man } diff --git a/scripts/finit_init.sh b/scripts/finit_init.sh index 86a1b54..3f0d6aa 100644 --- a/scripts/finit_init.sh +++ b/scripts/finit_init.sh @@ -69,20 +69,20 @@ finit_init() { make DESTDIR=$rootfspath install check $? "Installing to rootfs finit" - find $rootfspath -name "*.la" -delete - find $rootfspath -name "*.a" -delete - rm -rv \ - $rootfspath/usr/lib/pkgconfig \ - $rootfspath/lib/pkgconfig \ - $rootfspath/usr/include \ - $rootfspath/usr/share/man \ - $rootfspath/usr/share/doc - $CROSS_COMPILE-strip --strip-unneeded \ - $rootfspath/usr/lib/libite.so.5.4.0 \ - $rootfspath/usr/lib/libuev.so.3.0.0 \ - $rootfspath/sbin/finit \ - $rootfspath/sbin/initctl \ - $rootfspath/libexec/finit/* \ - $rootfspath/lib/libsystemd.so.0.0.0 \ - $rootfspath/lib/finit/plugins/* + # find $rootfspath -name "*.la" -delete + # find $rootfspath -name "*.a" -delete + # rm -rv \ + # $rootfspath/usr/lib/pkgconfig \ + # $rootfspath/lib/pkgconfig \ + # $rootfspath/usr/include \ + # $rootfspath/usr/share/man \ + # $rootfspath/usr/share/doc + # $CROSS_COMPILE-strip --strip-unneeded \ + # $rootfspath/usr/lib/libite.so.5.4.0 \ + # $rootfspath/usr/lib/libuev.so.3.0.0 \ + # $rootfspath/sbin/finit \ + # $rootfspath/sbin/initctl \ + # $rootfspath/libexec/finit/* \ + # $rootfspath/lib/libsystemd.so.0.0.0 \ + # $rootfspath/lib/finit/plugins/* } diff --git a/scripts/git.sh b/scripts/git.sh index 9534e54..f54f84e 100644 --- a/scripts/git.sh +++ b/scripts/git.sh @@ -27,6 +27,6 @@ git_build() { make $makeflags check $? "Build ${pkgname}" make DESTDIR=$rootfspath install - $CROSS_COMPILE-strip --strip-unneeded $rootfspath/usr/bin/* $rootfspath/libexec/git-core/* + # $CROSS_COMPILE-strip --strip-unneeded $rootfspath/usr/bin/* $rootfspath/libexec/git-core/* printf "$GREEN** SUCCESS: Building and installing ${pkgname}\n$RESET" } diff --git a/scripts/iptables.sh b/scripts/iptables.sh index 1aae2b7..b6d8ff3 100644 --- a/scripts/iptables.sh +++ b/scripts/iptables.sh @@ -24,11 +24,11 @@ iptables() { check $? "Build ${pkgname}" make install DESTDIR=$rootfspath check $? "Install to rootfs ${pkgname}" - ${CROSS_COMPILE}-strip \ - $rootfspath/usr/bin/* \ - $rootfspath/usr/sbin/* \ - $rootfspath/usr/lib/* \ - $rootfspath/usr/lib/xtables/* - rm -rv $rootfspath/usr/share/man + # ${CROSS_COMPILE}-strip \ + # $rootfspath/usr/bin/* \ + # $rootfspath/usr/sbin/* \ + # $rootfspath/usr/lib/* \ + # $rootfspath/usr/lib/xtables/* + # rm -rv $rootfspath/usr/share/man printf "$GREEN** SUCCESS: Building and installing ${pkgname}\n$RESET" } diff --git a/scripts/iw.sh b/scripts/iw.sh index d4800bc..65f8671 100644 --- a/scripts/iw.sh +++ b/scripts/iw.sh @@ -18,8 +18,8 @@ iw() { 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" + # ${CROSS_COMPILE}-strip iw + # check $? "Stripping ${pkgname} binary" cp -v iw $rootfspath/usr/bin/iw check $? "Install to rootfs ${pkgname}" } diff --git a/scripts/kernel.sh b/scripts/kernel.sh index 13d5331..9ddfb40 100755 --- a/scripts/kernel.sh +++ b/scripts/kernel.sh @@ -41,7 +41,7 @@ kernel_modules() { gzip -9 $i; done check $? "Install Linux Kernel modules" - rm -v $rootfspath/usr/lib/modules/$KERNEL_VERSION/{source,build} + # rm -v $rootfspath/usr/lib/modules/$KERNEL_VERSION/{source,build} } # kernel_modules #----------------------------------------------------------- @@ -74,4 +74,6 @@ kernel_headers() { cd linux-$KERNEL_VERSION make ARCH=$ARCH headers check $? "Build kernel headers" + make INSTALL_HDR_PATH=$rootfspath/usr headers_install + check $? "Install kernel headers to rootfs" } diff --git a/scripts/libnl.sh b/scripts/libnl.sh index 5bb482f..46fb890 100644 --- a/scripts/libnl.sh +++ b/scripts/libnl.sh @@ -24,8 +24,8 @@ libnl() { make $makeflags check $? "Build ${pkgname}" make DESTDIR=$(pwd)/bin install - rm -rv $(pwd)/bin/opt/toolchains/$CROSS_COMPILE/$CROSS_COMPILE/sysroot/usr/lib/{pkgconfig,*.la} - ${CROSS_COMPILE}-strip $(pwd)/bin/opt/toolchains/$CROSS_COMPILE/$CROSS_COMPILE/sysroot/usr/lib/* + # rm -rv $(pwd)/bin/opt/toolchains/$CROSS_COMPILE/$CROSS_COMPILE/sysroot/usr/lib/{pkgconfig,*.la} + # ${CROSS_COMPILE}-strip $(pwd)/bin/opt/toolchains/$CROSS_COMPILE/$CROSS_COMPILE/sysroot/usr/lib/* cd $(pwd)/bin/opt/toolchains/$CROSS_COMPILE/$CROSS_COMPILE/sysroot/usr/lib tar -czvf /tmp/${pkgname}.tar.gz . check $? "Archived libs" diff --git a/scripts/libsqlite3.sh b/scripts/libsqlite3.sh index 10a5337..de4b7bf 100644 --- a/scripts/libsqlite3.sh +++ b/scripts/libsqlite3.sh @@ -21,9 +21,9 @@ libsqlite3() { check $? "Build ${pkgname}" make DESTDIR=$rootfspath install check $? "Installing to rootfs ${pkgname}" - ${CROSS_COMPILE}-strip --strip-unneeded $rootfspath/usr/lib/* - rm -rvf $rootfspath/usr/lib/pkgconfig - find $rootfspath -type f -name "*.a" -delete - find $rootfspath -type f -name "*.la" -delete - rm -rvf $rootfspath/usr/include $rootfspath/usr/share/man $rootfspath/usr/share/doc + # ${CROSS_COMPILE}-strip --strip-unneeded $rootfspath/usr/lib/* + # rm -rvf $rootfspath/usr/lib/pkgconfig + # find $rootfspath -type f -name "*.a" -delete + # find $rootfspath -type f -name "*.la" -delete + # rm -rvf $rootfspath/usr/include $rootfspath/usr/share/man $rootfspath/usr/share/doc } diff --git a/scripts/lm_sensors.sh b/scripts/lm_sensors.sh index 0b2a1aa..72d5c99 100644 --- a/scripts/lm_sensors.sh +++ b/scripts/lm_sensors.sh @@ -12,7 +12,7 @@ lm_sensors() { git clone https://github.com/lm-sensors/lm-sensors.git cd lm-sensors make CC=$CROSS_COMPILE-gcc PREFIX=/usr DESTDIR=$rootfspath install -j$(nproc) - rm -rf $rootfspath/usr/man $rootfspath/usr/include - find $rootfspath -type f -name "*.a" -delete - ${CROSS_COMPILE}-strip $rootfspath/usr/bin/* $rootfspath/usr/lib/* $rootfspath/usr/sbin/* + # rm -rf $rootfspath/usr/man $rootfspath/usr/include + # find $rootfspath -type f -name "*.a" -delete + # ${CROSS_COMPILE}-strip $rootfspath/usr/bin/* $rootfspath/usr/lib/* $rootfspath/usr/sbin/* } diff --git a/scripts/lrzsz.sh b/scripts/lrzsz.sh index b644851..79d1e96 100644 --- a/scripts/lrzsz.sh +++ b/scripts/lrzsz.sh @@ -20,6 +20,6 @@ lrzsz-build() { check $? "Build ${pkgname}" make DESTDIR=$rootfspath install # rm -rv $rootfspath/usr/include $rootfspath/usr/share/man $rootfspath/usr/lib/{pkgconfig,libz.a} - ${CROSS_COMPILE}-strip --strip-unneeded $rootfspath/usr/bin/{lsx,lrb,lrx,lrz,lsz,lsb} + # ${CROSS_COMPILE}-strip --strip-unneeded $rootfspath/usr/bin/{lsx,lrb,lrx,lrz,lsz,lsb} check $? "Installing to rootfs ${pkgname}" } diff --git a/scripts/openssl.sh b/scripts/openssl.sh index ed1462e..2392d6d 100644 --- a/scripts/openssl.sh +++ b/scripts/openssl.sh @@ -25,8 +25,8 @@ openssl() { check $? "Configure ${pkgname}" make ${makeflags} check $? "Build ${pkgname}" - ${CROSS_COMPILE}-strip libcrypto.so.3 libssl.so.3 - check $? "Stripping ${pkgname} binary" + # ${CROSS_COMPILE}-strip libcrypto.so.3 libssl.so.3 + # check $? "Stripping ${pkgname} binary" cp -v libcrypto.so.3 libssl.so.3 $rootfspath/usr/lib/ ln -sv libcrypto.so.3 $rootfspath/usr/lib/libcrypto.so ln -sv libssl.so.3 $rootfspath/usr/lib/libssl.so diff --git a/scripts/rootfs.sh b/scripts/rootfs.sh index 4ff2668..052ec79 100755 --- a/scripts/rootfs.sh +++ b/scripts/rootfs.sh @@ -26,6 +26,7 @@ . ./scripts/wpa_supplicant.sh . ./scripts/lrzsz.sh . ./scripts/tcc.sh +. ./scripts/cleanup_rootfs.sh #----------- Building rootfs ---------------------- rootfs() { @@ -59,14 +60,14 @@ BUILD_ID="$distro_build_id" EOF busybox_rootfs - cp -v $build/busybox/busybox-${BUSYBOX_VERSION}/busybox $rootfspath/usr/bin # &>> $fulllogfile - cd $rootfspath/usr/bin - for i in $(cat $BUSYBOX_LIST_FILE); do ln -sv busybox $i; done + # cp -v $build/busybox/busybox-${BUSYBOX_VERSION}/busybox $rootfspath/usr/bin # &>> $fulllogfile + # cd $rootfspath/usr/bin + # for i in $(cat $BUSYBOX_LIST_FILE); do ln -sv busybox $i; done # cp -v $root/rootfs/init.in $rootfspath/init kernel_headers uclibc - kernel - kernel_modules + # kernel + # kernel_modules if [ "$FINIT_INIT_ENABLE" = "y" ]; then finit_init # cp -rv $root/rootfs/overlay/* $rootfspath @@ -112,5 +113,14 @@ EOF chmod 644 $rootfspath/etc/{passwd,group,hostname,hosts,fstab,shells,issue} $rootfspath/etc/network/interfaces check $? "Build rootfs" + cleanup_rootfs + kernel + kernel_modules + if [ "${board}" = "orangepi_pc" ] && [ "${TCC_C_COMPILER_ENABLE}" = "y" ] + then + cd $rootfspath + patch -p1 < $root/board/board/uclibc-1.0.56-byteswap-common.h.patch + cd - + fi } # rootfs #-------------------------------------------------- diff --git a/scripts/sftp_server.sh b/scripts/sftp_server.sh index 60eb8fb..7d04594 100644 --- a/scripts/sftp_server.sh +++ b/scripts/sftp_server.sh @@ -23,12 +23,12 @@ sftp_server() { --prefix=/usr \ --host=$CROSS_COMPILE \ --without-openssl \ - --with-zlib=$rootfspath/usr + --with-zlib=$rootfspath/usr/include check $? "Configure openssh" make sftp-server $makeflags # &>> $fulllogfile check $? "Build sftp-server" cp -v sftp-server $rootfspath/usr/bin/ - $CROSS_COMPILE-strip $rootfspath/usr/bin/sftp-server + # $CROSS_COMPILE-strip $rootfspath/usr/bin/sftp-server check $? "Install sftp-server to rootfs directory" check $? "Build and install sftp-server to rootfs directory" } diff --git a/scripts/tcc.sh b/scripts/tcc.sh index d161f31..13f0aa4 100644 --- a/scripts/tcc.sh +++ b/scripts/tcc.sh @@ -25,9 +25,9 @@ tcc_build() { make $makeflags check $? "Build ${pkgname}" make DESTDIR=$rootfspath install - ${CROSS_COMPILE}-strip --strip-unneeded $rootfspath/usr/bin/tcc $rootfspath/usr/lib/libtcc.so + # ${CROSS_COMPILE}-strip --strip-unneeded $rootfspath/usr/bin/tcc $rootfspath/usr/lib/libtcc.so check $? "Installing to rootfs ${pkgname}" - find $rootfspath -type f -name "*.a" -delete - find $rootfspath -type f -name "*.la" -delete - rm -rvf $rootfspath/usr/share/{info,man,doc} + # find $rootfspath -type f -name "*.a" -delete + # find $rootfspath -type f -name "*.la" -delete + # rm -rvf $rootfspath/usr/share/{info,man,doc} } diff --git a/scripts/uclibc.sh b/scripts/uclibc.sh index 7299717..3368f15 100755 --- a/scripts/uclibc.sh +++ b/scripts/uclibc.sh @@ -24,13 +24,13 @@ uclibc() { sed -i 's/constexpr/is_constant/g' extra/scripts/unifdef.c make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- DESTDIR=$rootfspath install # &>> $fulllogfile check $? "Install ${pkgname} to rootfs" - cd $rootfspath - find -name \*.a -delete # &>> $fulllogfile - find -name \*.o -delete - rm -v $rootfspath/usr/lib/libc.so - ${CROSS_COMPILE}-strip --strip-unneeded $rootfspath/usr/lib/* $rootfspath/usr/bin/* # &>> $fulllogfile $rootfspath/usr/lib/* - rm -rv $rootfspath/usr/include - cd $root + # cd $rootfspath + # find -name \*.a -delete # &>> $fulllogfile + # find -name \*.o -delete + # rm -v $rootfspath/usr/lib/libc.so + # ${CROSS_COMPILE}-strip --strip-unneeded $rootfspath/usr/lib/* $rootfspath/usr/bin/* # &>> $fulllogfile $rootfspath/usr/lib/* + # rm -rv $rootfspath/usr/include + # cd $root check $? "Build and install ${pkgname}" } #----------------------------------------------------------- diff --git a/scripts/wpa_supplicant.sh b/scripts/wpa_supplicant.sh index 623b5aa..da9b3a2 100755 --- a/scripts/wpa_supplicant.sh +++ b/scripts/wpa_supplicant.sh @@ -22,8 +22,8 @@ build_wpa_supplicant() { PKG_CONFIG_PATH=/opt/toolchains/$CROSS_COMPILE/$CROSS_COMPILE/sysroot/usr/lib/pkgconfig \ make ${makeflags} BINDIR=/usr/bin LIBDIR=/usr/lib check $? "Build ${pkgname}" - ${CROSS_COMPILE}-strip wpa_cli wpa_passphrase wpa_supplicant - check $? "Stripping ${pkgname} binary" + # ${CROSS_COMPILE}-strip wpa_cli wpa_passphrase wpa_supplicant + # check $? "Stripping ${pkgname} binary" cp -v wpa_cli wpa_passphrase wpa_supplicant $rootfspath/usr/bin/ check $? "Install to rootfs ${pkgname}" } diff --git a/scripts/zlib.sh b/scripts/zlib.sh index 94d47c6..432ea4e 100644 --- a/scripts/zlib.sh +++ b/scripts/zlib.sh @@ -19,9 +19,9 @@ zlib() { check $? "Build ${pkgname}" make DESTDIR=$rootfspath install # rm -rv $rootfspath/usr/include $rootfspath/usr/share/man $rootfspath/usr/lib/{pkgconfig,libz.a} - ${CROSS_COMPILE}-strip --strip-unneeded $rootfspath/usr/lib/libz.so.${pkgver} + # ${CROSS_COMPILE}-strip --strip-unneeded $rootfspath/usr/lib/libz.so.${pkgver} check $? "Installing to rootfs ${pkgname}" - rm -rvf $rootfspath/usr/lib/pkgconfig - find $rootfspath -type f -name "*.a" -delete - find $rootfspath -type f -name "*.la" -delete + # rm -rvf $rootfspath/usr/lib/pkgconfig + # find $rootfspath -type f -name "*.a" -delete + # find $rootfspath -type f -name "*.la" -delete } diff --git a/sources.txt b/sources.txt index bf808bf..8912989 100644 --- a/sources.txt +++ b/sources.txt @@ -8,6 +8,7 @@ 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://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_2025.89.tar.gz https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.9p1.tar.gz https://curl.se/download/curl-8.9.1.tar.xz https://ftp.gnu.org/gnu/bash/bash-5.2.32.tar.gz