blob: 1f5152c9e2ed5897343bf63753b2246731ea13fb (
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
|
set -e
if ! dpkg -s trusty-crosschroot
then
wget -nc --progress=dot -e dotbytes=1M http://repo.linaro.org/ubuntu/linaro-overlay/pool/main/t/trusty-crosschroot/trusty-crosschroot_0.7.3-2_all.deb
sudo dpkg -i trusty-crosschroot_0.7.3-2_all.deb
fi
sudo tar --directory / -xzvf sbuild-keys.tar||echo sorry no sbuild keys!
dsc=$1
arch=$2
commonargs="--nolog -d trusty -c trusty-amd64-sbuild -j5"
case $arch in
armhf)
sbuild --host armhf '--chroot-system-setup-commands=configchrootforarch armhf' $commonargs $dsc
;;
amd64)
# use amd64 as the arch got All and source package
sbuild -A -s --force-orig-source $commonargs $dsc
;;
arm64)
sbuild --host arm64 '--chroot-system-setup-commands=configchrootforarch arm64' $commonargs $dsc
;;
*)
echo "sorry we have no $arch schroot"
;;
esac
|