added tar toolchain build

This commit is contained in:
ag-tsotetsi
2026-02-20 12:54:03 +02:00
parent 0d19582f7d
commit 7678b28659

View File

@@ -86,6 +86,9 @@ PATCH_URL=https://mirror.ufs.ac.za/gnu/patch/patch-$PATCH_VERSION.tar.xz
SED_VERSION=4.9
SED_URL=https://mirror.ufs.ac.za/gnu/sed/sed-$SED_VERSION.tar.xz
TAR_VERSION=1.35
TAR_URL=https://mirror.ufs.ac.za/gnu/tar/tar-$TAR_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}
@@ -479,6 +482,21 @@ toolchain_sed() {
cd "$SOURCES" && rm -rf sed-$SED_VERSION
}
toolchain_tar() {
fetch $TAR_URL
cd "$SOURCES" && tar xf tar-$TAR_VERSION.tar.xz && cd tar-$TAR_VERSION
./configure \
--prefix=/usr \
--host=$TARGET \
--build=$(build-aux/config.guess)
make && make DESTDIR="$SYSROOT" install
cd "$SOURCES" && rm -rf tar-$TAR_VERSION
}
#bootstrap_binutils
#bootstap_gcc
#bootstap_linux
@@ -496,4 +514,5 @@ toolchain_sed() {
#toolchain_gzip
#toolchain_make
#toolchain_patch
toolchain_sed
#toolchain_sed
toolchain_tar