1 |
commit: 3a823e5994bbb2db03d3dd0d85f48892d9e2c144 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 30 15:42:36 2022 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 30 15:42:48 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a823e59 |
7 |
|
8 |
sys-apps/edac-utils-0.18-r1: add label for Hawk |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
12 |
|
13 |
sys-apps/edac-utils/edac-utils-0.18-r1.ebuild | 6 +++++- |
14 |
.../files/edac-utils-0.18-mitac-hawk.patch | 25 ++++++++++++++++++++++ |
15 |
2 files changed, 30 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/sys-apps/edac-utils/edac-utils-0.18-r1.ebuild b/sys-apps/edac-utils/edac-utils-0.18-r1.ebuild |
18 |
index a8f2910a9cbd..b1b73a2138c8 100644 |
19 |
--- a/sys-apps/edac-utils/edac-utils-0.18-r1.ebuild |
20 |
+++ b/sys-apps/edac-utils/edac-utils-0.18-r1.ebuild |
21 |
@@ -1,4 +1,4 @@ |
22 |
-# Copyright 1999-2021 Gentoo Authors |
23 |
+# Copyright 1999-2022 Gentoo Authors |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
|
26 |
EAPI=7 |
27 |
@@ -18,6 +18,10 @@ DEPEND="sys-fs/sysfsutils" |
28 |
RDEPEND="${DEPEND} |
29 |
sys-apps/dmidecode" |
30 |
|
31 |
+PATCHES=( |
32 |
+ "${FILESDIR}"/${P}-mitac-hawk.patch |
33 |
+) |
34 |
+ |
35 |
src_prepare() { |
36 |
default |
37 |
|
38 |
|
39 |
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 |
40 |
new file mode 100644 |
41 |
index 000000000000..4472bad2ae43 |
42 |
--- /dev/null |
43 |
+++ b/sys-apps/edac-utils/files/edac-utils-0.18-mitac-hawk.patch |
44 |
@@ -0,0 +1,25 @@ |
45 |
+From 1c57818ecee186aa47af0342149577df5302c022 Mon Sep 17 00:00:00 2001 |
46 |
+From: Fabian Groffen <grobian@g.o> |
47 |
+Date: Sun, 30 Jan 2022 14:49:58 +0100 |
48 |
+Subject: [PATCH] etc/labels.db: add MiTAC HAWK layout |
49 |
+ |
50 |
+This is for an Ampere eMag Hawk 32-core ARMv8 board, which features 8 |
51 |
+banks of DDR4 RDIMMs (1DPC). |
52 |
+ |
53 |
+Signed-off-by: Fabian Groffen <grobian@g.o> |
54 |
+--- |
55 |
+ src/etc/labels.db | 7 +++++++ |
56 |
+ 1 file changed, 7 insertions(+) |
57 |
+ |
58 |
+diff --git a/src/etc/labels.db b/src/etc/labels.db |
59 |
+index f915666..63baf43 100644 |
60 |
+--- a/src/etc/labels.db |
61 |
++++ b/src/etc/labels.db |
62 |
+@@ -187,0 +187,7 @@ Vendor: Intel Corporation |
63 |
++ |
64 |
++Vendor: MiTAC |
65 |
++ Model: HAWK |
66 |
++ DIMM 1: 0.0.0; DIMM 8: 0.7.0; |
67 |
++ DIMM 2: 0.1.0; DIMM 7: 0.6.0; |
68 |
++ DIMM 3: 0.2.0; DIMM 6: 0.5.0; |
69 |
++ DIMM 4: 0.3.0; DIMM 5: 0.4.0; |