Skip to content

Commit

Permalink
build loong64
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Dec 24, 2023
1 parent d85f31d commit 82f3ca7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ target "all-arch" {
"linux/s390x",
"linux/riscv64",
"linux/386",
"linux/loong64",
]
}

Expand Down
9 changes: 9 additions & 0 deletions hack/install-and-test
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,31 @@ echo $status | jq .supported | grep linux/riscv64
echo $status | jq .supported | grep linux/ppc64le
echo $status | jq .supported | grep linux/386

# TODO: needs https://github.com/moby/buildkit/pull/4392
#echo $status | jq .supported | grep linux/loong64

echo $status | jq .emulators | grep qemu-riscv64
echo $status | jq .emulators | grep qemu-arm
echo $status | jq .emulators | grep qemu-loongarch64

docker run --rm arm64v8/alpine uname -a
docker run --rm arm32v7/alpine uname -a
docker run --rm ppc64le/alpine uname -a
docker run --rm s390x/alpine uname -a
docker run --rm i386/alpine uname -a
docker run --rm tonistiigi/debian:riscv uname -a
docker run --rm yangzewei2023/debian:loongarch64 uname -a

if [ "$(uname -m)" != "x86_64" ]; then exit 0; fi

status=$(docker run --rm --privileged tonistiigi/binfmt:${TAG:-test} --uninstall aarch64,riscv64)

if echo $status | jq .supported | grep linux/arm64; then exit 1; fi
if echo $status | jq .supported | grep linux/riscv64; then exit 1; fi

# TODO: needs https://github.com/moby/buildkit/pull/4392
#if echo $status | jq .supported | grep linux/loong64; then exit 1; fi

echo $status | jq .supported | grep linux/ppc64le
echo $status | jq .supported | grep linux/arm/v7

Expand Down
2 changes: 1 addition & 1 deletion scripts/configure_qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if [ -z "$QEMU_TARGETS" ]; then
if [ "$arch" != "mips64" ] ; then
QEMU_TARGETS="$QEMU_TARGETS mips64-linux-user"
fi
if [ "$arch" != "loongarch64" ] ; then
if [ "$arch" != "loong64" ] ; then
QEMU_TARGETS="$QEMU_TARGETS loongarch64-linux-user"
fi
fi
Expand Down

0 comments on commit 82f3ca7

Please sign in to comment.