update for rootfs_usable

This commit is contained in:
wt
2024-12-05 16:56:58 +07:00
parent 156e149ecb
commit eb538f5ff4
19 changed files with 1536 additions and 25 deletions
+4 -4
View File
@@ -13,17 +13,17 @@ uclibc() {
check $? "Extract uclibc"
cd uClibc-ng-1.0.50
cp -rv $root/uclibc/config-1.0.50 .config
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE oldconfig
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig
check $? "Configure uclibc"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE $makeflags # &>> $fulllogfile
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- $makeflags # &>> $fulllogfile
check $? "Build uclibc"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE DESTDIR=$rootfspath install # &>> $fulllogfile
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- DESTDIR=$rootfspath install # &>> $fulllogfile
check $? "Install uclibc 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
${CROSS_COMPILE}-strip --strip-unneeded $rootfspath/usr/lib/* $rootfspath/usr/bin/* # &>> $fulllogfile
rm -rv $rootfspath/usr/include
cd $root
check $? "Build and install uclibc"