mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 09:16:29 +00:00
ARM64: Multi-arch support in qemu Dockerfile
Update the qemu Dockerfile to support both amd64 and arm64. Signed-off-by: Dennis Chen <dennis.chen@arm.com>
This commit is contained in:
parent
6ed2cec4cb
commit
6791ad986c
@ -4,11 +4,24 @@ RUN apk add --no-cache --initdb -p /out \
|
||||
alpine-baselayout \
|
||||
busybox \
|
||||
libarchive-tools \
|
||||
qemu-img \
|
||||
qemu-system-x86_64
|
||||
qemu-img && \
|
||||
case $(uname -m) in \
|
||||
x86_64) \
|
||||
apk add --no-cache --initdb -p /out qemu-system-x86_64; \
|
||||
;; \
|
||||
aarch64) \
|
||||
apk add --no-cache --initdb -p /out qemu-system-aarch64; \
|
||||
;; \
|
||||
esac
|
||||
|
||||
RUN mkdir -p /out/usr/share/ovmf \
|
||||
&& cp /usr/share/ovmf/bios.bin /out/usr/share/ovmf/bios.bin
|
||||
RUN case $(uname -m) in \
|
||||
x86_64) \
|
||||
mkdir -p /out/usr/share/ovmf \
|
||||
&& cp /usr/share/ovmf/bios.bin /out/usr/share/ovmf/bios.bin; \
|
||||
;; \
|
||||
aarch64) \
|
||||
;; \
|
||||
esac
|
||||
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
|
||||
|
||||
FROM scratch
|
||||
|
Loading…
Reference in New Issue
Block a user