Forgot to add the new script for the GLIBC overlay bundle. This is related to the previous commit.
This commit is contained in:
parent
69fb870da0
commit
75d8b27cc4
41
src/overlay_glibc_full.sh
Executable file
41
src/overlay_glibc_full.sh
Executable file
@ -0,0 +1,41 @@
|
||||
#!/bin/sh
|
||||
|
||||
SRC_DIR=$(pwd)
|
||||
|
||||
if [ ! -d $SRC_DIR/work/glibc/glibc_prepared ] ; then
|
||||
echo "Cannot continue - GLIBC is missing. Please buld GLIBC first."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Preparing the overlay glibc folder. Tis may take a while..."
|
||||
rm -rf work/overlay/glibc
|
||||
mkdir -p work/overlay/glibc/lib
|
||||
|
||||
cd work/glibc/glibc_prepared/lib
|
||||
|
||||
find . -type l -exec cp {} $SRC_DIR/work/overlay/glibc/lib \;
|
||||
|
||||
echo "All libraries have been copied."
|
||||
|
||||
cd $SRC_DIR/work/overlay/glibc/lib
|
||||
|
||||
for FILE_DEL in $(ls *.so)
|
||||
do
|
||||
FILE_KEEP=$(ls $FILE_DEL.*)
|
||||
|
||||
if [ ! "$FILE_KEEP" = "" ] ; then
|
||||
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 $SRC_DIR/work/overlay/glibc/lib $SRC_DIR/work/src/minimal_overlay
|
||||
|
||||
echo "All libraries have been installed."
|
||||
|
||||
cd $SRC_DIR
|
Loading…
x
Reference in New Issue
Block a user