blob: e4a041b62138048cbc4806cd2fba74970f3a1f04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#!/bin/sh
toolchaindest="$xib_dir/chroot-toolchain"
toolchainpackages="
musl
linux-headers
llvm
clang
clang-tools-extra
libcxx
libcxxabi
libunwind
lld
libexecinfo
ncurses
tcl
expect
dejagnu
m4
dash
bison
bzip2
sbase
sort
findutils
diffutils
gettext
gzip
grep
make
patch
perl
sed
tar
texinfo
cmake-toolchain
ninja
"
bootstrap () {
mkdir -p $toolchaindest
rm -rf $stage
mkdir -p $stage
xi -nyl -r $toolchaindest bootstrap
for pkg in $toolchainpackages; do
pkg_build=$(get_package_build $pkg)
parent=$(basename $pkg_build)
[ ! -d "$stage/$parent" ] && mkdir -p $stage/$parent
[ ! -f $stage/$parent/$pkg.xipkg ] && {
xibuild -nv -k $keychain/$priv_key -C $pkg_build -d $stage/$parent -r $chroot || return 1
}
echo "Installing $pkg"
xi -nyl -r $toolchaindest install $stage/$parent/$pkg.xipkg
done
printf "creating tarball..."
output="xib-chroot-tools-$(date +%y%m%d).tar.xz"
tar -C $toolchaindest -cJf $output ./
printf "Complete!\n"
}
|