blob: 3748fcd03787b3022c050676e72a1cfc3ec39a48 (
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
|
#!/bin/sh
# configure chroot for architecture being built
# currently that means install arm64 repo and buildflags, for other arches leave as-is.
filestore=/etc/sbuild/files
if [ "$1" = "" ]; then
echo "$0 needs a parameter <architecture> e.g. arm64"
exit 1
fi
case $1 in
(arm64)
cp ${filestore}/buildflags.conf /etc/dpkg/
cp ${filestore}/arm64-repo.list /etc/apt/sources.list.d/
;;
(*)
rm -f /etc/dpkg/buildflags.conf /etc/apt/sources.list.d/arm64-repo.list
;;
esac
|