updated for build orangepi_zero_2w

This commit is contained in:
wt
2025-04-03 17:39:16 +07:00
parent 0210af212d
commit 641ab89367
11 changed files with 458 additions and 6560 deletions
+2 -2
View File
@@ -18,14 +18,14 @@ dropbear() {
./configure \
--prefix=/usr \
--host=$CROSS_COMPILE \
--with-zlib=$build/rootfs
--with-zlib=$build/rootfs/usr
# 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"
rm -rv $rootfspath/usr/include $rootfspath/usr/share/man $rootfspath/usr/lib/{pkgconfig,libz.a}
[ "$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"