fixed 09_generate_rootfs

This commit is contained in:
bauen1 2017-07-04 23:28:42 +02:00
parent 9747e61ec9
commit ede7b8d701

View File

@ -4,8 +4,8 @@ echo "*** GENERATE ROOTFS BEGIN ***"
SRC_ROOT=$(pwd) SRC_ROOT=$(pwd)
# Remember the glibc prepared folder. # Remember the sysroot
GLIBC_PREPARED=$(pwd)/work/glibc/glibc_prepared SYSROOT=$(pwd)/work/sysroot
# Remember the BysyBox install folder. # Remember the BysyBox install folder.
BUSYBOX_INSTALLED=$(pwd)/work/busybox/busybox_installed BUSYBOX_INSTALLED=$(pwd)/work/busybox/busybox_installed
@ -44,22 +44,22 @@ fi
BUSYBOX_ARCH=$(file bin/busybox | cut -d' ' -f3) BUSYBOX_ARCH=$(file bin/busybox | cut -d' ' -f3)
if [ "$BUSYBOX_ARCH" = "64-bit" ] ; then if [ "$BUSYBOX_ARCH" = "64-bit" ] ; then
mkdir lib64 mkdir lib64
cp $GLIBC_PREPARED/lib/ld-linux* lib64 cp $SYSROOT/lib/ld-linux* lib64
echo "Dynamic loader is accessed via '/lib64'." echo "Dynamic loader is accessed via '/lib64'."
else else
cp $GLIBC_PREPARED/lib/ld-linux* lib cp $SYSROOT/lib/ld-linux* lib
echo "Dynamic loader is accessed via '/lib'." echo "Dynamic loader is accessed via '/lib'."
fi fi
# Copy all necessary 'glibc' libraries to '/lib' BEGIN. # Copy all necessary 'glibc' libraries to '/lib' BEGIN.
# BusyBox has direct dependencies on these libraries. # BusyBox has direct dependencies on these libraries.
cp $GLIBC_PREPARED/lib/libm.so.6 lib cp $SYSROOT/lib/libm.so.6 lib
cp $GLIBC_PREPARED/lib/libc.so.6 lib cp $SYSROOT/lib/libc.so.6 lib
# These libraries are necessary for the DNS resolving. # These libraries are necessary for the DNS resolving.
cp $GLIBC_PREPARED/lib/libresolv.so.2 lib cp $SYSROOT/lib/libresolv.so.2 lib
cp $GLIBC_PREPARED/lib/libnss_dns.so.2 lib cp $SYSROOT/lib/libnss_dns.so.2 lib
# Copy all necessary 'glibc' libraries to '/lib' END. # Copy all necessary 'glibc' libraries to '/lib' END.