summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2024-04-05 17:11:22 -0700
committerPatrick McLean <chutzpah@gentoo.org>2024-04-05 17:11:56 -0700
commitbe766b5b349fc88b7c91c35074560d162240c3fd (patch)
treea3f68f51baeade0ce9233fb14510064aee4f8d8b /app-laptop
parentapp-admin/sysstat: actually use the results of configure tests (diff)
downloadgentoo-be766b5b349fc88b7c91c35074560d162240c3fd.tar.gz
gentoo-be766b5b349fc88b7c91c35074560d162240c3fd.tar.bz2
gentoo-be766b5b349fc88b7c91c35074560d162240c3fd.zip
app-laptop/framework-laptop-kmod: add 0_pre20240405
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'app-laptop')
-rw-r--r--app-laptop/framework-laptop-kmod/Manifest1
-rw-r--r--app-laptop/framework-laptop-kmod/framework-laptop-kmod-0_pre20240405.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/app-laptop/framework-laptop-kmod/Manifest b/app-laptop/framework-laptop-kmod/Manifest
index 01e2b0eabccc..b6c8461a30ef 100644
--- a/app-laptop/framework-laptop-kmod/Manifest
+++ b/app-laptop/framework-laptop-kmod/Manifest
@@ -1 +1,2 @@
DIST framework-laptop-kmod-0_pre20231204.gh.tar.gz 10728 BLAKE2B 921112a6f895c916a6f1403d405472bbb084a84aa42cc80d938f59f692f49a535a8e5613dc01d07b502a86d2a5e4f9c16999d9edf495b75027dbc81f5845da79 SHA512 e104011e15fad74c5d74050844471aaeb20354304f3e6985b6d3f40fa82169d2c7c893a98cf3c49e7a4138c899b0197b3c538454d4494750ce22b50d169440dc
+DIST framework-laptop-kmod-0_pre20240405.gh.tar.gz 13016 BLAKE2B 10a92fbbb1974213846ca4d4bc3bec5074b192661ea46e178c9786f2fbec63fb0beff9439d1d1ae9cd633d83207d5272549ef0975a5c23cfe77219df6513ba24 SHA512 243a51eb454c68433fb74027c6675da1227907c9fcf546ef4ae624c031ee701dbeef49b4cc6b8077d3c9e5284a524e13277518fae7449dd7142899b4c5bb3e5e
diff --git a/app-laptop/framework-laptop-kmod/framework-laptop-kmod-0_pre20240405.ebuild b/app-laptop/framework-laptop-kmod/framework-laptop-kmod-0_pre20240405.ebuild
new file mode 100644
index 000000000000..681b5a814f8f
--- /dev/null
+++ b/app-laptop/framework-laptop-kmod/framework-laptop-kmod-0_pre20240405.ebuild
@@ -0,0 +1,54 @@
+# Copyright 2023-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-mod-r1
+
+COMMIT_HASH="6ee08ebb558627863236ff00fab98d25f582ac01"
+DESCRIPTION="Kernel module to expose more Framework Laptop stuff"
+HOMEPAGE="https://github.com/DHowett/framework-laptop-kmod"
+SRC_URI="https://github.com/DHowett/framework-laptop-kmod/archive/${COMMIT_HASH}.tar.gz -> ${P}.gh.tar.gz"
+S="${WORKDIR}/${PN}-${COMMIT_HASH}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+CONFIG_CHECK="
+ ~CROS_EC
+ ~CROS_EC_LPC
+"
+
+DOCS=(
+ README.md
+)
+
+pkg_setup() {
+ linux-mod-r1_pkg_setup
+
+ MODULES_MAKEARGS+=(
+ KDIR="${KERNEL_DIR}"
+ )
+}
+
+pkg_pretend() {
+ check_extra_config
+}
+
+src_compile() {
+ local modlist=(
+ framework_laptop
+ )
+ linux-mod-r1_src_compile
+}
+
+pkg_postinst() {
+ linux-mod-r1_pkg_postinst
+
+ #if kernel_is -lt 6 7 0; then
+ ewarn "For the Framework Laptop 13 AMD Ryzen 7040 series and the Framework Laptop 16a,"
+ ewarn "you will need to apply the patch series from this URL:"
+ ewarn "https://lore.kernel.org/chrome-platform/20231005160701.19987-1-dustin@howett.net/"
+ #fi
+}