Skip to content

Commit

Permalink
Debian-Gnu name lookup issue for ppc64el
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Abhishek Dubey committed Dec 13, 2023
1 parent acc372f commit 4217042
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARCHS = amd64 arm64 s390x
ARCHS = amd64 arm64 s390x ppc64el
DISTROS = bullseye

.PHONY: all
Expand Down
3 changes: 3 additions & 0 deletions rootfs/mkrootfs_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down

0 comments on commit 4217042

Please sign in to comment.