added tar toolchain build
This commit is contained in:
21
build.sh
21
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_VERSION=4.9
|
||||||
SED_URL=https://mirror.ufs.ac.za/gnu/sed/sed-$SED_VERSION.tar.xz
|
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
|
if [ ! -d "$SYSROOT" ]; then
|
||||||
mkdir -p "$SYSROOT"/{etc,cross,sources,usr,dev,proc,sys,run}
|
mkdir -p "$SYSROOT"/{etc,cross,sources,usr,dev,proc,sys,run}
|
||||||
mkdir -p "$SYSROOT"/usr/{bin,sbin,lib,include}
|
mkdir -p "$SYSROOT"/usr/{bin,sbin,lib,include}
|
||||||
@@ -479,6 +482,21 @@ toolchain_sed() {
|
|||||||
cd "$SOURCES" && rm -rf sed-$SED_VERSION
|
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
|
#bootstrap_binutils
|
||||||
#bootstap_gcc
|
#bootstap_gcc
|
||||||
#bootstap_linux
|
#bootstap_linux
|
||||||
@@ -496,4 +514,5 @@ toolchain_sed() {
|
|||||||
#toolchain_gzip
|
#toolchain_gzip
|
||||||
#toolchain_make
|
#toolchain_make
|
||||||
#toolchain_patch
|
#toolchain_patch
|
||||||
toolchain_sed
|
#toolchain_sed
|
||||||
|
toolchain_tar
|
||||||
Reference in New Issue
Block a user