Skip to content

Commit aaa954e

Browse files
committed
Merge branch 'master' into deploy
2 parents 0fe1414 + 32d6630 commit aaa954e

44 files changed

Lines changed: 775 additions & 380 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

build/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ ifeq ($(shell uname -m),ppc64le)
1313
endif
1414

1515
FEDORA_DISTROS := fedora@${FEDORA_LATEST} fedora@35 fedora@34 fedora@33 fedora@31 fedora
16-
# Sort is to elimiate duplicates if UBUNTU_LATEST == 21.10
17-
UBUNTU_DISTROS := $(sort ubuntu@${UBUNTU_LATEST} ubuntu@21.10 ubuntu@21.04 ubuntu@20.04 ubuntu@18.04 ubuntu@16.04 ubuntu)
16+
UBUNTU_DISTROS := ubuntu@${UBUNTU_LATEST} ubuntu@20.04 ubuntu@18.04 ubuntu@16.04 ubuntu
1817
KORG_DISTROS := korg@12.1.0 korg@11.3.0 korg@11.1.0 korg@10.3.0 korg@9.4.0 korg@9.3.0 korg@8.5.0 korg@8.1.0 korg@5.5.0
1918
ALL_DISTROS := ${UBUNTU_DISTROS} ${KORG_DISTROS} ${FEDORA_DISTROS}
2019
DOCS_DISTRO := docs@${UBUNTU_LATEST}

build/scripts/build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ if [[ "$task" == "kernel" ]]; then
142142
if [[ -n "$CLANG" ]]; then
143143
cmd+="-e CLANG=1 "
144144
fi
145+
146+
if [[ -n "$LLVM_IAS" ]]; then
147+
cmd+="-e LLVM_IAS=$LLVM_IAS "
148+
fi
145149
fi
146150

147151
if [[ "$task" == "ppctests" ]]; then

build/ubuntu/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ ARG apt_mirror
77
ENV apt_mirror=${apt_mirror}
88
RUN [ -n "$apt_mirror" ] && sed -i -e "s|ports.ubuntu.com|$apt_mirror|" /etc/apt/sources.list || true
99

10+
# Deal with Ubuntu 21.10 repos moving to old-releases (ppc64le only)
11+
RUN [ "$from" = "ubuntu:21.10" ] && sed -i -e "s|ports.ubuntu.com/ubuntu-ports|old-releases.ubuntu.com/ubuntu|" /etc/apt/sources.list || true
12+
1013
RUN apt-get -q -y update && \
1114
DEBIAN_FRONTEND=noninteractive \
1215
apt-get -q -y install --no-install-recommends \

external/korg-toolchains/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ ARCHES := alpha \
5050
x86_64 \
5151
xtensa
5252

53-
VERSIONS := 12.1.0 \
53+
VERSIONS := 12.2.0 \
54+
12.1.0 \
5455
11.3.0 \
5556
11.1.0 \
5657
10.3.0 \
@@ -86,8 +87,8 @@ download-all: $(ALL_TARGETS)
8687

8788
CLEAN_DIRS := $(patsubst %,gcc-%-nolibc,$(VERSIONS))
8889

89-
# Only download powerpc 11.1.0 & 5.5.0 by default
90-
download: gcc-11.1.0-nolibc/powerpc64-linux gcc-5.5.0-nolibc/powerpc64-linux
90+
# Only download powerpc 12.2.0 & 5.5.0 by default
91+
download: gcc-12.2.0-nolibc/powerpc64-linux gcc-5.5.0-nolibc/powerpc64-linux
9192

9293
prepare: download
9394

external/qemu-7.1.0/Makefile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version=$(shell cat VERSION)
2+
3+
help:
4+
@echo "qemu-$(version)"
5+
@echo "Available targets:"
6+
@echo " download # download required sources"
7+
@echo " prepare # download and install dependencies"
8+
@echo " build # build it"
9+
10+
qemu.tar.xz:
11+
wget --no-verbose -O $@.tmp https://download.qemu.org/qemu-$(version).tar.xz
12+
mv $@.tmp $@
13+
14+
download: qemu.tar.xz
15+
16+
prepare: download
17+
@./install-deps.sh
18+
19+
build: download
20+
+@./build.sh
21+
22+
clean:
23+
rm -rf build src install log
24+
25+
distclean: clean
26+
rm -f qemu.tar.xz
27+
28+
.PHONY: download prepare build clean distclean help

external/qemu-7.1.0/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.1.0

external/qemu-7.1.0/build.sh

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
if [[ -n ${MAKEFLAGS:-} ]]; then
6+
# Don't override existing make flags
7+
jflags=
8+
else
9+
jflags="-j $(nproc)"
10+
fi
11+
12+
echo "Sending output to $PWD/log."
13+
rm -f log
14+
15+
{
16+
rm -rf src
17+
tar -xf qemu.tar.xz
18+
mv qemu-* src
19+
20+
rm -rf install
21+
mkdir install
22+
install="$PWD/install"
23+
24+
rm -rf build
25+
mkdir build
26+
cd build
27+
28+
set -x
29+
30+
../src/configure --prefix=$install --target-list=ppc-softmmu,ppc64-softmmu --disable-gtk
31+
make $jflags -s
32+
make $jflags -s install
33+
cd ..
34+
35+
rm -rf src build
36+
37+
set +x
38+
echo "success: qemu build" >&2
39+
40+
} 2>&1 >> log | tee -a log
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
. /etc/os-release
6+
7+
sudo=""
8+
if [[ $(id -u) != 0 ]]; then
9+
sudo="sudo"
10+
fi
11+
12+
if [[ "$ID" == "fedora" ]]; then
13+
(set -x; $sudo dnf -y install \
14+
bison \
15+
bzip2 \
16+
flex \
17+
glib2-devel \
18+
libcap-ng-devel \
19+
libpmem-devel \
20+
libseccomp-devel \
21+
libudev-devel \
22+
meson \
23+
ninja-build \
24+
pixman-devel
25+
)
26+
elif [[ "$ID_LIKE" == "debian" ]]; then
27+
(set -x; $sudo apt-get -y install \
28+
bison \
29+
bzip2 \
30+
flex \
31+
libcap-ng-dev \
32+
libglib2.0-dev \
33+
libpixman-1-dev \
34+
libseccomp-dev \
35+
meson \
36+
ninja-build
37+
)
38+
else
39+
echo "Unsupported distro!" >&2
40+
exit 1
41+
fi

lib/pexpect_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __init__(self):
2323
self.bug_patterns = self.default_bug_patterns
2424

2525
def spawn(self, *args, **kwargs):
26-
logging.info("Spawning '%s'" % args)
26+
logging.debug("Spawning '%s'" % args)
2727
self.child = pexpect.spawn(*args, encoding='utf-8', echo=False, **kwargs)
2828
if '--quiet' not in sys.argv:
2929
self.log_to(sys.stdout)

0 commit comments

Comments
 (0)