commit:     3a823e5994bbb2db03d3dd0d85f48892d9e2c144
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 30 15:42:36 2022 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Jan 30 15:42:48 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a823e59

sys-apps/edac-utils-0.18-r1: add label for Hawk

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 sys-apps/edac-utils/edac-utils-0.18-r1.ebuild      |  6 +++++-
 .../files/edac-utils-0.18-mitac-hawk.patch         | 25 ++++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletion(-)

diff --git a/sys-apps/edac-utils/edac-utils-0.18-r1.ebuild 
b/sys-apps/edac-utils/edac-utils-0.18-r1.ebuild
index a8f2910a9cbd..b1b73a2138c8 100644
--- a/sys-apps/edac-utils/edac-utils-0.18-r1.ebuild
+++ b/sys-apps/edac-utils/edac-utils-0.18-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -18,6 +18,10 @@ DEPEND="sys-fs/sysfsutils"
 RDEPEND="${DEPEND}
        sys-apps/dmidecode"
 
+PATCHES=(
+       "${FILESDIR}"/${P}-mitac-hawk.patch
+)
+
 src_prepare() {
        default
 

diff --git a/sys-apps/edac-utils/files/edac-utils-0.18-mitac-hawk.patch 
b/sys-apps/edac-utils/files/edac-utils-0.18-mitac-hawk.patch
new file mode 100644
index 000000000000..4472bad2ae43
--- /dev/null
+++ b/sys-apps/edac-utils/files/edac-utils-0.18-mitac-hawk.patch
@@ -0,0 +1,25 @@
+From 1c57818ecee186aa47af0342149577df5302c022 Mon Sep 17 00:00:00 2001
+From: Fabian Groffen <[email protected]>
+Date: Sun, 30 Jan 2022 14:49:58 +0100
+Subject: [PATCH] etc/labels.db: add MiTAC HAWK layout
+
+This is for an Ampere eMag Hawk 32-core ARMv8 board, which features 8
+banks of DDR4 RDIMMs (1DPC).
+
+Signed-off-by: Fabian Groffen <[email protected]>
+---
+ src/etc/labels.db | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/src/etc/labels.db b/src/etc/labels.db
+index f915666..63baf43 100644
+--- a/src/etc/labels.db
++++ b/src/etc/labels.db
+@@ -187,0 +187,7 @@ Vendor: Intel Corporation
++
++Vendor: MiTAC
++  Model: HAWK
++    DIMM 1: 0.0.0; DIMM 8: 0.7.0;
++    DIMM 2: 0.1.0; DIMM 7: 0.6.0;
++    DIMM 3: 0.2.0; DIMM 6: 0.5.0;
++    DIMM 4: 0.3.0; DIMM 5: 0.4.0;

Reply via email to