From 3a823e5994bbb2db03d3dd0d85f48892d9e2c144 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sun, 30 Jan 2022 16:42:36 +0100 Subject: [PATCH] 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 --- 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(-) create mode 100644 sys-apps/edac-utils/files/edac-utils-0.18-mitac-hawk.patch 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 a8f2910a9cbd8..b1b73a2138c8a 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 0000000000000..4472bad2ae43c --- /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 +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 +--- + 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;