Skip to content

Commit

Permalink
Change to Debian buster as QEMU needs python3.6 or higher
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Trong Nghia Nguyen <[email protected]>
  • Loading branch information
nghiant2710 committed Jan 25, 2021
1 parent 2f70462 commit e2591c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
FROM debian:stretch
FROM debian:buster

RUN apt-get -q update \
&& apt-get -qqy install \
build-essential \
zlib1g-dev \
libpixman-1-dev \
python \
python3 \
libglib2.0-dev \
pkg-config \
ninja-build \
curl \
jq \
git \
Expand Down
5 changes: 3 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

set -x
set -o errexit

git checkout "$RELEASE_COMMIT"
Expand All @@ -12,9 +13,9 @@ for TARGET in $TARGETS; do

./configure --target-list="$TARGET-linux-user" --static --extra-cflags="-DCONFIG_RTNETLINK" \
&& make -j $(nproc) \
&& strip "$TARGET-linux-user/qemu-$TARGET" \
&& strip "build/$TARGET-linux-user/qemu-$TARGET" \
&& mkdir -p "$PACKAGE_NAME" \
&& cp "$TARGET-linux-user/qemu-$TARGET" "$PACKAGE_NAME/$BINARY_NAME"
&& cp "build/$TARGET-linux-user/qemu-$TARGET" "$PACKAGE_NAME/$BINARY_NAME"

tar -cvzf "$PACKAGE_NAME.tar.gz" "$PACKAGE_NAME"
done
Expand Down

0 comments on commit e2591c3

Please sign in to comment.