added xz toolchain build
This commit is contained in:
24
build.sh
24
build.sh
@@ -89,6 +89,9 @@ SED_URL=https://mirror.ufs.ac.za/gnu/sed/sed-$SED_VERSION.tar.xz
|
|||||||
TAR_VERSION=1.35
|
TAR_VERSION=1.35
|
||||||
TAR_URL=https://mirror.ufs.ac.za/gnu/tar/tar-$TAR_VERSION.tar.xz
|
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
|
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}
|
||||||
@@ -497,6 +500,24 @@ toolchain_tar() {
|
|||||||
cd "$SOURCES" && rm -rf tar-$TAR_VERSION
|
cd "$SOURCES" && rm -rf tar-$TAR_VERSION
|
||||||
}
|
}
|
||||||
|
|
||||||
|
toolchain_xz() {
|
||||||
|
fetch $XZ_URL
|
||||||
|
|
||||||
|
cd "$SOURCES" && tar xf xz-$XZ_VERSION.tar.xz && cd xz-$XZ_VERSION
|
||||||
|
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--host=$TARGET \
|
||||||
|
--build=$(build-aux/config.guess) \
|
||||||
|
--disable-static
|
||||||
|
|
||||||
|
make && make DESTDIR="$SYSROOT" install
|
||||||
|
|
||||||
|
rm "$SYSROOT"/usr/lib/liblzma.la
|
||||||
|
|
||||||
|
cd "$SOURCES" && rm -rf xz-$XZ_VERSION
|
||||||
|
}
|
||||||
|
|
||||||
#bootstrap_binutils
|
#bootstrap_binutils
|
||||||
#bootstap_gcc
|
#bootstap_gcc
|
||||||
#bootstap_linux
|
#bootstap_linux
|
||||||
@@ -515,4 +536,5 @@ toolchain_tar() {
|
|||||||
#toolchain_make
|
#toolchain_make
|
||||||
#toolchain_patch
|
#toolchain_patch
|
||||||
#toolchain_sed
|
#toolchain_sed
|
||||||
toolchain_tar
|
#toolchain_tar
|
||||||
|
toolchain_xz
|
||||||
Reference in New Issue
Block a user