Replaced glibc_full with a meta-bundle and updated dependencies
This commit is contained in:
parent
0da731b4d9
commit
62a106ac84
@ -28,14 +28,6 @@ make -j $NUM_JOBS
|
||||
echo "Installing Dropbear..."
|
||||
make -j $NUM_JOBS install DESTDIR="$DESTDIR"
|
||||
|
||||
mkdir -p $DESTDIR/lib
|
||||
|
||||
# Copy all dependent GLIBC libraries.
|
||||
cp $SYSROOT/lib/libnsl.so.1 $DESTDIR/lib
|
||||
cp $SYSROOT/lib/libnss_compat.so.2 $DESTDIR/lib
|
||||
cp $SYSROOT/lib/libutil.so.1 $DESTDIR/lib
|
||||
cp $SYSROOT/lib/libcrypt.so.1 $DESTDIR/lib
|
||||
|
||||
mkdir -p $DESTDIR/etc/dropbear
|
||||
|
||||
# Create Dropbear SSH configuration BEGIN
|
||||
|
@ -1 +1,5 @@
|
||||
glibc_full
|
||||
glibc_libnsl
|
||||
glibc_libnss_compat
|
||||
glibc_libutil
|
||||
glibc_libcrypt
|
||||
|
@ -1,42 +1,2 @@
|
||||
#!/bin/sh
|
||||
|
||||
SRC_DIR=$(pwd)
|
||||
|
||||
. ../../common.sh
|
||||
|
||||
if [ ! -d $SYSROOT ] ; then
|
||||
echo "Cannot continue - GLIBC is missing. Please buld GLIBC first."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Preparing the overlay glibc folder. This may take a while..."
|
||||
rm -rf $WORK_DIR/overlay/$BUNDLE_NAME
|
||||
mkdir -p $WORK_DIR/overlay/$BUNDLE_NAME/lib
|
||||
|
||||
cd $SYSROOT
|
||||
|
||||
find . -type l -exec cp {} $WORK_DIR/overlay/$BUNDLE_NAME/lib \;
|
||||
echo "All libraries have been copied."
|
||||
|
||||
cd $WORK_DIR/overlay/$BUNDLE_NAME/lib
|
||||
|
||||
for FILE_DEL in `ls *.so`
|
||||
do
|
||||
FILE_KEEP=`ls $FILE_DEL.*`
|
||||
|
||||
if [ ! "$FILE_KEEP" = "" ] ; then
|
||||
# We remove the shorter file and replace it with symbolic link.
|
||||
rm $FILE_DEL
|
||||
ln -s $FILE_KEEP $FILE_DEL
|
||||
fi
|
||||
done
|
||||
echo "Duplicate libraries have been replaced with soft links."
|
||||
|
||||
strip -g *
|
||||
echo "All libraries have been optimized for size."
|
||||
|
||||
cp -r $WORK_DIR/overlay/$BUNDLE_NAME/lib $WORK_DIR/src/minimal_overlay/rootfs
|
||||
|
||||
echo "All GNU C libraries have been installed."
|
||||
|
||||
cd $SRC_DIR
|
||||
|
18
src/minimal_overlay/bundles/glibc_full/mll_deps
Normal file
18
src/minimal_overlay/bundles/glibc_full/mll_deps
Normal file
@ -0,0 +1,18 @@
|
||||
glibc_ld-linux
|
||||
glibc_libBrokenLocale
|
||||
glibc_libanl
|
||||
glibc_libc
|
||||
glibc_libcidn
|
||||
glibc_libcrypt
|
||||
glibc_libdl
|
||||
glibc_libm
|
||||
glibc_libnsl
|
||||
glibc_libnss_db
|
||||
glibc_libnss_dns
|
||||
glibc_libnss_files
|
||||
glibc_libnss_hesiod
|
||||
glibc_libpthread
|
||||
glibc_libresolv
|
||||
glibc_librt
|
||||
glibc_libthread_db
|
||||
glibc_libutil
|
Loading…
x
Reference in New Issue
Block a user