Skip to content

Commit

Permalink
Use ADD and git-url fragment to clone qemu repo, use master as defaul…
Browse files Browse the repository at this point in the history
…t qemu version

Signed-off-by: Shaun Thompson <[email protected]>
  • Loading branch information
thompson-shaun committed Oct 18, 2024
1 parent 91b7087 commit 281fd2d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARG GO_VERSION=1.21
ARG ALPINE_VERSION=3.20
ARG XX_VERSION=1.4.0

ARG QEMU_VERSION=HEAD
ARG QEMU_VERSION=master
ARG QEMU_REPO=https://github.com/qemu/qemu

# xx is a helper for cross-compilation
Expand All @@ -16,7 +16,8 @@ RUN apk add --no-cache git patch
WORKDIR /src
ARG QEMU_VERSION
ARG QEMU_REPO
RUN git clone $QEMU_REPO && cd qemu && git checkout $QEMU_VERSION

ADD --keep-git-dir ${QEMU_REPO}.git#${QEMU_VERSION} ./qemu
COPY patches patches
# QEMU_PATCHES defines additional patches to apply before compilation
ARG QEMU_PATCHES=cpu-max-arm
Expand Down

0 comments on commit 281fd2d

Please sign in to comment.