diff --git a/build.sh b/build.sh index 20097bb..a43411b 100755 --- a/build.sh +++ b/build.sh @@ -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 \ No newline at end of file +#toolchain_sed +toolchain_tar \ No newline at end of file