From 4217042116e4b7cea8084785366399cbe8fad4fc Mon Sep 17 00:00:00 2001 From: Abhishek Dubey Date: Wed, 13 Dec 2023 17:58:57 +0530 Subject: [PATCH] Debian-Gnu name lookup issue for ppc64el The usr/share/dpkg/cputable contains mapping ppc64el->powerpc64le, so mkrootfs_debian.sh does lookup with qemu-powerpc64le-static, which is incorrect. Signed-off-by: Abhishek Dubey --- rootfs/Makefile | 2 +- rootfs/mkrootfs_debian.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rootfs/Makefile b/rootfs/Makefile index 736d24f..9c15146 100644 --- a/rootfs/Makefile +++ b/rootfs/Makefile @@ -1,4 +1,4 @@ -ARCHS = amd64 arm64 s390x +ARCHS = amd64 arm64 s390x ppc64el DISTROS = bullseye .PHONY: all diff --git a/rootfs/mkrootfs_debian.sh b/rootfs/mkrootfs_debian.sh index 2b0a461..ba240ac 100755 --- a/rootfs/mkrootfs_debian.sh +++ b/rootfs/mkrootfs_debian.sh @@ -44,6 +44,9 @@ function qemu_static() { # Given a Debian architecture find the location of the matching # qemu-${gnu_arch}-static binary. gnu_arch=$(debian_to_gnu "${1}") + if [ "$deb_arch" == "ppc64el" ]; then + gnu_arch="ppc64le" + fi echo "qemu-${gnu_arch}-static" }