diff options
author | CyberLeo <cyberleo@cyberleo.net> | 2021-07-22 21:02:46 -0500 |
---|---|---|
committer | CyberLeo <cyberleo@cyberleo.net> | 2021-07-22 21:02:46 -0500 |
commit | 59068642667b2748b2f24d18c58b1d2fdfed7619 (patch) | |
tree | deca4d721637676253ed1270f252f8d389286151 /user/mach64-drm | |
parent | 4a177049e3d486da3f54d346d63ea80699c08b5b (diff) | |
parent | 50e523c03bbcb6be1298e3dedb0441b7e47ab2eb (diff) | |
download | packages-59068642667b2748b2f24d18c58b1d2fdfed7619.tar.gz packages-59068642667b2748b2f24d18c58b1d2fdfed7619.tar.bz2 packages-59068642667b2748b2f24d18c58b1d2fdfed7619.tar.xz packages-59068642667b2748b2f24d18c58b1d2fdfed7619.zip |
Merge branch 'master' into kpartx
Diffstat (limited to 'user/mach64-drm')
-rw-r--r-- | user/mach64-drm/APKBUILD | 33 | ||||
-rw-r--r-- | user/mach64-drm/header-fix.patch | 10 |
2 files changed, 43 insertions, 0 deletions
diff --git a/user/mach64-drm/APKBUILD b/user/mach64-drm/APKBUILD new file mode 100644 index 000000000..96fe34b04 --- /dev/null +++ b/user/mach64-drm/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +_kver="5.4.66-mc1" +pkgname=mach64-drm +pkgver=5.6 +pkgrel=0 +pkgdesc="Kernel driver for Mach64 GPUs" +url=" " +arch="pmmx ppc" +options="!check !dbg !strip" # No test suite. +license="MIT" +depends="easy-kernel-modules-$_kver" +makedepends="easy-kernel-src-$_kver" +subpackages="" +source="mach64-drm-$pkgver.tar.gz::https://github.com/trya/mach64-drm/archive/v$pkgver.tar.gz + header-fix.patch + " + +build() { + make -C /usr/src/linux-$_kver M="$builddir" modules +} + +package() { + if [ -f $HOME/kernel_key.pem ]; then + /usr/src/linux-$_kver/scripts/sign-file sha512 \ + $HOME/kernel_key.pem $HOME/kernel_key.pem \ + "$builddir"/mach64.ko + fi + make -C /usr/src/linux-$_kver DEPMOD=true INSTALL_MOD_PATH="$pkgdir" M="$builddir" modules_install +} + +sha512sums="c130a93e9a578943dbdfeb31040165cba3534014bf32fb6670b688ec464d6e83e781556d4b320127e0d95ad0c30c573f667cd8e9d6cd210d0edad14faedba75f mach64-drm-5.6.tar.gz +2262aedb693fcba9110ad07775b4524313d16032e5afdb23bfb610ce7ee242293c282abf6d11d528b7a0d226439a08877f432f1bde04df7cb5ce503ced02ffa6 header-fix.patch" diff --git a/user/mach64-drm/header-fix.patch b/user/mach64-drm/header-fix.patch new file mode 100644 index 000000000..797bf8194 --- /dev/null +++ b/user/mach64-drm/header-fix.patch @@ -0,0 +1,10 @@ +--- mach64-drm-5.6/mach64_drv.c.old 2020-04-24 00:36:27.000000000 +0000 ++++ mach64-drm-5.6/mach64_drv.c 2020-08-09 20:03:14.816701578 +0000 +@@ -32,6 +32,7 @@ + + #include <drm/drm_drv.h> + #include <drm/drm_file.h> ++#include <drm/drm_pci.h> + + #include "mach64_drm.h" + #include "mach64_drv.h" |