Skip to content

Commit

Permalink
Merge #375
Browse files Browse the repository at this point in the history
375: Make `linux-image.sh` easier to maintain. r=therealprof a=reitermarkus



Co-authored-by: Markus Reiter <[email protected]>
  • Loading branch information
bors[bot] and reitermarkus authored Feb 20, 2020
2 parents 4249b8b + 43de95b commit 0f1941e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docker/cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -x
set -euo pipefail

main() {
local version=3.16.2
local version=3.16.4

local dependencies=(
curl
Expand Down
17 changes: 7 additions & 10 deletions docker/linux-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ main() {
# there is no stable port
arch=ppc64
# https://packages.debian.org/en/sid/linux-image-powerpc64
kernel=5.4.0-4-powerpc64
kernel='*-powerpc64'
debsource="deb http://ftp.ports.debian.org/debian-ports unstable main"
debsource="$debsource\ndeb http://ftp.ports.debian.org/debian-ports unreleased main"
# sid version of dropbear requires these dependencies
Expand All @@ -71,7 +71,7 @@ main() {
sparc64)
# there is no stable port
# https://packages.debian.org/en/sid/linux-image-sparc64
kernel=5.4.0-4-sparc64
kernel='*-sparc64'
debsource="deb http://ftp.ports.debian.org/debian-ports unstable main"
debsource="$debsource\ndeb http://ftp.ports.debian.org/debian-ports unreleased main"
# sid version of dropbear requires these dependencies
Expand Down Expand Up @@ -111,14 +111,11 @@ main() {
fi
dpkg --add-architecture $arch || echo "foreign-architecture $arch" > /etc/dpkg/dpkg.cfg.d/multiarch

# Add debian keys
apt-key adv --recv-key --keyserver keyserver.ubuntu.com EF0F382A1A7B6500
apt-key adv --recv-key --keyserver keyserver.ubuntu.com 9D6D8F6BC857C906
apt-key adv --recv-key --keyserver keyserver.ubuntu.com 8B48AD6246925553
apt-key adv --recv-key --keyserver keyserver.ubuntu.com 7638D0442B90D010
apt-key adv --recv-key --keyserver keyserver.ubuntu.com CBF8D6FD518E17E1
curl -sL https://www.ports.debian.org/archive_2020.key | apt-key add -
curl -sL https://www.ports.debian.org/archive_2021.key | apt-key add -
# Add Debian keys.
curl -sL https://ftp-master.debian.org/keys/archive-key-{7.0,8,9,10}.asc | apt-key add -
curl -sL https://ftp-master.debian.org/keys/archive-key-{8,9,10}-security.asc | apt-key add -
curl -sL https://ftp-master.debian.org/keys/release-{7,8,9,10}.asc | apt-key add -
curl -sL https://www.ports.debian.org/archive_{2020,2021}.key | apt-key add -
apt-get update

mkdir -p -m 777 /qemu/$arch
Expand Down
6 changes: 3 additions & 3 deletions docker/qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ set -x
set -euo pipefail

main() {
local version=4.1.0
local version=4.2.0

# Qemu versions 3.10.0 and above break 32-bit float conversions
# Qemu versions 3.1.0 and above break 32-bit float conversions
# on powerpc, powerpc64, and powerpc64le. Last known working version
# is 3.0.1.
# Upstream Issue:
Expand All @@ -32,7 +32,7 @@ main() {
make
patch
pkg-config
python
python3
zlib1g-dev
libcap-dev
libattr1-dev
Expand Down

0 comments on commit 0f1941e

Please sign in to comment.