'glibc_full' is now built in directory with the same name.
This commit is contained in:
parent
5fd607b630
commit
299b2aebfa
@ -10,19 +10,19 @@ if [ ! -d $SYSROOT ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Preparing the overlay glibc folder. This may take a while..."
|
echo "Preparing the overlay glibc folder. This may take a while..."
|
||||||
rm -rf $WORK_DIR/overlay/glibc
|
rm -rf $WORK_DIR/overlay/$BUNDLE_NAME
|
||||||
mkdir -p $WORK_DIR/overlay/glibc/lib
|
mkdir -p $WORK_DIR/overlay/$BUNDLE_NAME/lib
|
||||||
|
|
||||||
cd $SYSROOT
|
cd $SYSROOT
|
||||||
|
|
||||||
find . -type l -exec cp {} $WORK_DIR/overlay/glibc/lib \;
|
find . -type l -exec cp {} $WORK_DIR/overlay/$BUNDLE_NAME/lib \;
|
||||||
echo "All libraries have been copied."
|
echo "All libraries have been copied."
|
||||||
|
|
||||||
cd $WORK_DIR/overlay/glibc/lib
|
cd $WORK_DIR/overlay/$BUNDLE_NAME/lib
|
||||||
|
|
||||||
for FILE_DEL in $(ls *.so)
|
for FILE_DEL in `ls *.so`
|
||||||
do
|
do
|
||||||
FILE_KEEP=$(ls $FILE_DEL.*)
|
FILE_KEEP=`ls $FILE_DEL.*`
|
||||||
|
|
||||||
if [ ! "$FILE_KEEP" = "" ] ; then
|
if [ ! "$FILE_KEEP" = "" ] ; then
|
||||||
# We remove the shorter file and replace it with symbolic link.
|
# We remove the shorter file and replace it with symbolic link.
|
||||||
@ -35,7 +35,7 @@ echo "Duplicate libraries have been replaced with soft links."
|
|||||||
strip -g *
|
strip -g *
|
||||||
echo "All libraries have been optimized for size."
|
echo "All libraries have been optimized for size."
|
||||||
|
|
||||||
cp -r $WORK_DIR/overlay/glibc/lib $WORK_DIR/src/minimal_overlay/rootfs
|
cp -r $WORK_DIR/overlay/$BUNDLE_NAME/lib $WORK_DIR/src/minimal_overlay/rootfs
|
||||||
|
|
||||||
echo "All GNU C libraries have been installed."
|
echo "All GNU C libraries have been installed."
|
||||||
|
|
||||||
|
@ -2,9 +2,10 @@
|
|||||||
# common code used by all bundles
|
# common code used by all bundles
|
||||||
# should be included at the top of every *.sh file of each bundle
|
# should be included at the top of every *.sh file of each bundle
|
||||||
|
|
||||||
export MAIN_SRC_DIR=$(realpath --no-symlinks $PWD/../../../)
|
export MAIN_SRC_DIR=`realpath --no-symlinks $PWD/../../../`
|
||||||
export WORK_DIR="$MAIN_SRC_DIR/work"
|
export WORK_DIR="$MAIN_SRC_DIR/work"
|
||||||
export SRC_DIR=$(pwd)
|
export SRC_DIR=`pwd`
|
||||||
|
export BUNDLE_NAME=`basename $SRC_DIR`
|
||||||
export CONFIG="$MAIN_SRC_DIR/.config"
|
export CONFIG="$MAIN_SRC_DIR/.config"
|
||||||
export SYSROOT="$WORK_DIR/sysroot"
|
export SYSROOT="$WORK_DIR/sysroot"
|
||||||
export SYSROOT_SPECS="$WORK_DIR/sysroot.specs"
|
export SYSROOT_SPECS="$WORK_DIR/sysroot.specs"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user