added utilities and create symlink for lib64 to usr/lib
This commit is contained in:
25
build.sh
25
build.sh
@@ -92,14 +92,22 @@ TAR_URL=https://mirror.ufs.ac.za/gnu/tar/tar-$TAR_VERSION.tar.xz
|
||||
XZ_VERSION=5.8.2
|
||||
XZ_URL=https://github.com//tukaani-project/xz/releases/download/v$XZ_VERSION/xz-$XZ_VERSION.tar.xz
|
||||
|
||||
if [ ! -d "$SYSROOT" ]; then
|
||||
mkdir -p "$SYSROOT"/{etc,cross,sources,usr,dev,proc,sys,run}
|
||||
mkdir -p "$SYSROOT"/usr/{bin,sbin,lib,include}
|
||||
create_sysroot() {
|
||||
if [ ! -d "$SYSROOT" ]; then
|
||||
mkdir -p "$SYSROOT"/{etc,cross,sources,usr,dev,proc,sys,run}
|
||||
mkdir -p "$SYSROOT"/usr/{bin,sbin,lib,include}
|
||||
|
||||
for directory in bin sbin lib; do
|
||||
ln -fs "usr/$directory" "$SYSROOT/$directory"
|
||||
done
|
||||
fi
|
||||
for directory in bin sbin lib; do
|
||||
ln -fs "usr/$directory" "$SYSROOT/$directory"
|
||||
done
|
||||
|
||||
ln -s usr/lib "$SYSROOT"/lib64
|
||||
fi
|
||||
}
|
||||
|
||||
change_owner() {
|
||||
sudo chown -R root:root "$SYSROOT"/{etc,cross,usr,dev,proc,sys,run,var}
|
||||
}
|
||||
|
||||
fetch() {
|
||||
wget -N -c --show-progress -q -P "$SOURCES" $1
|
||||
@@ -605,4 +613,5 @@ toolchain_gcc() {
|
||||
#toolchain_tar
|
||||
#toolchain_xz
|
||||
#toolchain_binutils
|
||||
toolchain_gcc
|
||||
#toolchain_gcc
|
||||
change_owner
|
||||
Reference in New Issue
Block a user