git: ecf09fe34600 - main - graphics/gpu-firmware*-kmod: disable amdgpu on powerpc64

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Wed, 04 May 2022 12:57:26 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ecf09fe3460067b442ba41a6adb85897c99442b5

commit ecf09fe3460067b442ba41a6adb85897c99442b5
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-05-04 12:54:19 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-05-04 12:54:19 +0000

    graphics/gpu-firmware*-kmod: disable amdgpu on powerpc64
    
    amdgpu has known endianness issues and doesn't work on powerpc64.
    radeonkms works, while amdgpu works on powerpc64le.
---
 graphics/gpu-firmware-amd-kmod/Makefile |  4 +-
 graphics/gpu-firmware-kmod/Makefile     | 67 +++++++++++++++++----------------
 2 files changed, 37 insertions(+), 34 deletions(-)

diff --git a/graphics/gpu-firmware-amd-kmod/Makefile b/graphics/gpu-firmware-amd-kmod/Makefile
index 8136d115997d..4f644e1a2fa3 100644
--- a/graphics/gpu-firmware-amd-kmod/Makefile
+++ b/graphics/gpu-firmware-amd-kmod/Makefile
@@ -12,8 +12,8 @@ LICENSE_NAME=	AMD firmware license (amdgpu/radeon)
 LICENSE_FILE=	${WRKSRC}/LICENSE.radeon
 LICENSE_PERMS=	dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept
 
-ONLY_FOR_ARCHS=		aarch64 amd64 i386 powerpc64 powerpc64le
-ONLY_FOR_ARCHS_REASON=	AMD GPUs are only available on aarch64, x86 and powerpc64
+ONLY_FOR_ARCHS=		aarch64 amd64 i386 powerpc64le
+ONLY_FOR_ARCHS_REASON=	AMD GPUs are only available on aarch64, x86 and powerpc64le
 
 PKGNAMESUFFIX=	-${FLAVOR:C/_/-/g}
 FLAVORS=	banks \
diff --git a/graphics/gpu-firmware-kmod/Makefile b/graphics/gpu-firmware-kmod/Makefile
index b85d9c7f505c..2fa9b308d0f2 100644
--- a/graphics/gpu-firmware-kmod/Makefile
+++ b/graphics/gpu-firmware-kmod/Makefile
@@ -10,38 +10,7 @@ COMMENT=	Firmware modules for the drm-kmod drivers
 
 USES=		metaport
 
-RUN_DEPENDS=	gpu-firmware-amd-kmod-banks>0:graphics/gpu-firmware-amd-kmod@banks \
-		gpu-firmware-amd-kmod-bonaire>0:graphics/gpu-firmware-amd-kmod@bonaire \
-		gpu-firmware-amd-kmod-carrizo>0:graphics/gpu-firmware-amd-kmod@carrizo \
-		gpu-firmware-amd-kmod-fiji>0:graphics/gpu-firmware-amd-kmod@fiji \
-		gpu-firmware-amd-kmod-hainan>0:graphics/gpu-firmware-amd-kmod@hainan \
-		gpu-firmware-amd-kmod-hawaii>0:graphics/gpu-firmware-amd-kmod@hawaii \
-		gpu-firmware-amd-kmod-kabini>0:graphics/gpu-firmware-amd-kmod@kabini \
-		gpu-firmware-amd-kmod-kaveri>0:graphics/gpu-firmware-amd-kmod@kaveri \
-		gpu-firmware-amd-kmod-mullins>0:graphics/gpu-firmware-amd-kmod@mullins \
-		gpu-firmware-amd-kmod-navi10>0:graphics/gpu-firmware-amd-kmod@navi10 \
-		gpu-firmware-amd-kmod-navi12>0:graphics/gpu-firmware-amd-kmod@navi12 \
-		gpu-firmware-amd-kmod-navi14>0:graphics/gpu-firmware-amd-kmod@navi14 \
-		gpu-firmware-amd-kmod-oland>0:graphics/gpu-firmware-amd-kmod@oland \
-		gpu-firmware-amd-kmod-picasso>0:graphics/gpu-firmware-amd-kmod@picasso \
-		gpu-firmware-amd-kmod-pitcairn>0:graphics/gpu-firmware-amd-kmod@pitcairn \
-		gpu-firmware-amd-kmod-polaris10>0:graphics/gpu-firmware-amd-kmod@polaris10 \
-		gpu-firmware-amd-kmod-polaris11>0:graphics/gpu-firmware-amd-kmod@polaris11 \
-		gpu-firmware-amd-kmod-polaris12>0:graphics/gpu-firmware-amd-kmod@polaris12 \
-		gpu-firmware-amd-kmod-raven>0:graphics/gpu-firmware-amd-kmod@raven \
-		gpu-firmware-amd-kmod-raven2>0:graphics/gpu-firmware-amd-kmod@raven2 \
-		gpu-firmware-amd-kmod-renoir>0:graphics/gpu-firmware-amd-kmod@renoir \
-		gpu-firmware-amd-kmod-si58>0:graphics/gpu-firmware-amd-kmod@si58 \
-		gpu-firmware-amd-kmod-stoney>0:graphics/gpu-firmware-amd-kmod@stoney \
-		gpu-firmware-amd-kmod-tahiti>0:graphics/gpu-firmware-amd-kmod@tahiti \
-		gpu-firmware-amd-kmod-tonga>0:graphics/gpu-firmware-amd-kmod@tonga \
-		gpu-firmware-amd-kmod-topaz>0:graphics/gpu-firmware-amd-kmod@topaz \
-		gpu-firmware-amd-kmod-vega10>0:graphics/gpu-firmware-amd-kmod@vega10 \
-		gpu-firmware-amd-kmod-vega12>0:graphics/gpu-firmware-amd-kmod@vega12 \
-		gpu-firmware-amd-kmod-vega20>0:graphics/gpu-firmware-amd-kmod@vega20 \
-		gpu-firmware-amd-kmod-vegam>0:graphics/gpu-firmware-amd-kmod@vegam \
-		gpu-firmware-amd-kmod-verde>0:graphics/gpu-firmware-amd-kmod@verde \
-		gpu-firmware-radeon-kmod-aruba>0:graphics/gpu-firmware-radeon-kmod@aruba \
+RUN_DEPENDS=	gpu-firmware-radeon-kmod-aruba>0:graphics/gpu-firmware-radeon-kmod@aruba \
 		gpu-firmware-radeon-kmod-barts>0:graphics/gpu-firmware-radeon-kmod@barts \
 		gpu-firmware-radeon-kmod-bonaire>0:graphics/gpu-firmware-radeon-kmod@bonaire \
 		gpu-firmware-radeon-kmod-btc>0:graphics/gpu-firmware-radeon-kmod@btc \
@@ -97,4 +66,38 @@ RUN_DEPENDS+=	gpu-firmware-intel-kmod-skylake>0:graphics/gpu-firmware-intel-kmod
 		gpu-firmware-intel-kmod-tigerlake>0:graphics/gpu-firmware-intel-kmod@tigerlake
 .endif
 
+.if ${ARCH} != powerpc64
+RUN_DEPENDS+=	gpu-firmware-amd-kmod-banks>0:graphics/gpu-firmware-amd-kmod@banks \
+		gpu-firmware-amd-kmod-bonaire>0:graphics/gpu-firmware-amd-kmod@bonaire \
+		gpu-firmware-amd-kmod-carrizo>0:graphics/gpu-firmware-amd-kmod@carrizo \
+		gpu-firmware-amd-kmod-fiji>0:graphics/gpu-firmware-amd-kmod@fiji \
+		gpu-firmware-amd-kmod-hainan>0:graphics/gpu-firmware-amd-kmod@hainan \
+		gpu-firmware-amd-kmod-hawaii>0:graphics/gpu-firmware-amd-kmod@hawaii \
+		gpu-firmware-amd-kmod-kabini>0:graphics/gpu-firmware-amd-kmod@kabini \
+		gpu-firmware-amd-kmod-kaveri>0:graphics/gpu-firmware-amd-kmod@kaveri \
+		gpu-firmware-amd-kmod-mullins>0:graphics/gpu-firmware-amd-kmod@mullins \
+		gpu-firmware-amd-kmod-navi10>0:graphics/gpu-firmware-amd-kmod@navi10 \
+		gpu-firmware-amd-kmod-navi12>0:graphics/gpu-firmware-amd-kmod@navi12 \
+		gpu-firmware-amd-kmod-navi14>0:graphics/gpu-firmware-amd-kmod@navi14 \
+		gpu-firmware-amd-kmod-oland>0:graphics/gpu-firmware-amd-kmod@oland \
+		gpu-firmware-amd-kmod-picasso>0:graphics/gpu-firmware-amd-kmod@picasso \
+		gpu-firmware-amd-kmod-pitcairn>0:graphics/gpu-firmware-amd-kmod@pitcairn \
+		gpu-firmware-amd-kmod-polaris10>0:graphics/gpu-firmware-amd-kmod@polaris10 \
+		gpu-firmware-amd-kmod-polaris11>0:graphics/gpu-firmware-amd-kmod@polaris11 \
+		gpu-firmware-amd-kmod-polaris12>0:graphics/gpu-firmware-amd-kmod@polaris12 \
+		gpu-firmware-amd-kmod-raven>0:graphics/gpu-firmware-amd-kmod@raven \
+		gpu-firmware-amd-kmod-raven2>0:graphics/gpu-firmware-amd-kmod@raven2 \
+		gpu-firmware-amd-kmod-renoir>0:graphics/gpu-firmware-amd-kmod@renoir \
+		gpu-firmware-amd-kmod-si58>0:graphics/gpu-firmware-amd-kmod@si58 \
+		gpu-firmware-amd-kmod-stoney>0:graphics/gpu-firmware-amd-kmod@stoney \
+		gpu-firmware-amd-kmod-tahiti>0:graphics/gpu-firmware-amd-kmod@tahiti \
+		gpu-firmware-amd-kmod-tonga>0:graphics/gpu-firmware-amd-kmod@tonga \
+		gpu-firmware-amd-kmod-topaz>0:graphics/gpu-firmware-amd-kmod@topaz \
+		gpu-firmware-amd-kmod-vega10>0:graphics/gpu-firmware-amd-kmod@vega10 \
+		gpu-firmware-amd-kmod-vega12>0:graphics/gpu-firmware-amd-kmod@vega12 \
+		gpu-firmware-amd-kmod-vega20>0:graphics/gpu-firmware-amd-kmod@vega20 \
+		gpu-firmware-amd-kmod-vegam>0:graphics/gpu-firmware-amd-kmod@vegam \
+		gpu-firmware-amd-kmod-verde>0:graphics/gpu-firmware-amd-kmod@verde
+.endif
+
 .include <bsd.port.post.mk>