added tar toolchain step
This commit is contained in:
47
build/tar/build.bash
Normal file
47
build/tar/build.bash
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
. "$PROJECTDIR/build/tar/package.env"
|
||||||
|
|
||||||
|
fetch $TAR_URL
|
||||||
|
|
||||||
|
|
||||||
|
cd "$SOURCES" && tar xf tar-$TAR_VERSION.tar.xz && cd tar-$TAR_VERSION
|
||||||
|
|
||||||
|
|
||||||
|
bootstrap() {
|
||||||
|
echo bootstrap
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
toolchain() {
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--host=$TARGET \
|
||||||
|
--build=$(build-aux/config.guess) > /dev/null
|
||||||
|
|
||||||
|
make > /dev/null && make DESTDIR="$SYSROOT" install > /dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
setup() {
|
||||||
|
echo setup
|
||||||
|
}
|
||||||
|
|
||||||
|
final() {
|
||||||
|
echo final
|
||||||
|
}
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
bootstrap)
|
||||||
|
bootstrap
|
||||||
|
;;
|
||||||
|
toolchain)
|
||||||
|
toolchain
|
||||||
|
;;
|
||||||
|
setup)
|
||||||
|
setup
|
||||||
|
;;
|
||||||
|
final)
|
||||||
|
final
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
rm -rf "$SOURCES/tar-$TAR_VERSION"
|
||||||
7
build/tar/package.env
Normal file
7
build/tar/package.env
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
export TAR_VERSION=1.35
|
||||||
|
|
||||||
|
IFS='.' read -r TAR_VERSION_MAJOR TAR_VERSION_MINOR <<< $TAR_VERSION
|
||||||
|
export TAR_VERSION_MAJOR TAR_VERSION_MINOR
|
||||||
|
|
||||||
|
export TAR_URL=https://mirror.ufs.ac.za/gnu/tar/tar-$TAR_VERSION.tar.xz
|
||||||
|
|
||||||
Reference in New Issue
Block a user