From 3e703af4080eaa3666f83aea7f61e9b96869702d Mon Sep 17 00:00:00 2001 From: DRC Date: Wed, 18 Dec 2024 09:39:53 -0500 Subject: [PATCH] Build: Generate 32-bit supplementary ppc64 .deb As with x86-64, the Power ISA basically implements 64-bit instructions as extensions of their 32-bit counterparts. Thus, 64-bit Power ISA CPUs can natively execute legacy 32-bit PowerPC instructions when running in big-endian mode. Most Power ISA support has shifted (pun intended) to little-endian mode, so there are few remaining operating systems that support big-endian mode. Debian is one of them, however (albeit unofficially.) --- release/makedpkg.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/release/makedpkg.in b/release/makedpkg.in index 0b7b7e73..bd1d194c 100755 --- a/release/makedpkg.in +++ b/release/makedpkg.in @@ -56,6 +56,8 @@ makedeb() PKGNAME=$PKGNAME\32 if [ "$DEBARCH" = "i386" ]; then DEBARCH=amd64 + elif [ "$DEBARCH" = "ppc" ]; then + DEBARCH=ppc64 else DEBARCH=arm64 fi @@ -114,7 +116,8 @@ if [ ! `uid` -eq 0 ]; then fi makedeb 0 -if [ "$DEBARCH" = "i386" -o "$DEBARCH" = "armel" -o "$DEBARCH" = "armhf" ]; then +if [ "$DEBARCH" = "i386" -o "$DEBARCH" = "armel" -o "$DEBARCH" = "armhf" -o \ + "$DEBARCH" = "ppc" ]; then makedeb 1 fi