[Buildroot] [PATCH] package/sema-linux-ec: add ADLINK sema drivers package

Thomas Devoogdt
2025-12-23T22:14:13Z

package/sema-linux-ec/Config.in | 13 ++++++++++++
package/sema-linux-ec/sema-linux-ec.hash | 7 ++++++
package/sema-linux-ec/sema-linux-ec.mk | 27 ++++++++++++++++++++++++
4 files changed, 48 insertions(+)
create mode 100644 package/sema-linux-ec/Config.in
create mode 100644 package/sema-linux-ec/sema-linux-ec.hash
create mode 100644 package/sema-linux-ec/sema-linux-ec.mk

diff --git a/package/Config.in b/package/Config.in
index 22970b4d45a..edafe20eefe 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -608,6 +608,7 @@ endmenu
source "package/sane-backends/Config.in"
source "package/sdparm/Config.in"
source "package/sedutil/Config.in"
+ source "package/sema-linux-ec/Config.in"
source "package/setserial/Config.in"
source "package/sg3_utils/Config.in"
source "package/sigrok-cli/Config.in"
diff --git a/package/sema-linux-ec/Config.in b/package/sema-linux-ec/Config.in
new file mode 100644
index 00000000000..664f24ebe55
--- /dev/null
+++ b/package/sema-linux-ec/Config.in
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_SEMA_LINUX_EC
+ bool "sema-linux-ec"
+ depends on !BR2_s390x
+ depends on BR2_LINUX_KERNEL
+ help
+ ADLINK SEMA Linux EC drivers.
+ Provides support for embedded controller functionality on
+ ADLINK embedded computing platforms.
+
+ https://github.com/ADLINK/sema-linux-ec
+
+comment "sema-linux-ec needs a Linux kernel to be built"
+ depends on !BR2_LINUX_KERNEL
diff --git a/package/sema-linux-ec/sema-linux-ec.hash b/package/sema-linux-ec/sema-linux-ec.hash
new file mode 100644
index 00000000000..460edba0a88
--- /dev/null
+++ b/package/sema-linux-ec/sema-linux-ec.hash
@@ -0,0 +1,7 @@
+# sha256 locally computed: https://github.com/ADLINK/sema-linux-ec/archive/v4.3.11/sema-linux-ec-v4.3.11.tar.gz
+sha256 5ea7379f94d21a3f92d97631b7ee28912be4990e4708d47bff44aa4f4ca9784f sema-linux-ec-v4.3.11.tar.gz
+
+# hash for the license files, locally computed:
+sha256 c45298c445058c0f8413c94be71ecedd55f306f3149ed2aea90b0e098ddc8810 LICENSE.BSD3
+sha256 2358eef45f799ab496fe93f4791f509524d3d65ca046e562706e62d72f738f20 LICENSE.dual
+sha256 d8c320ffc0030d1b096ae4732b50d2b811cf95e9a9b7377c1127b2563e0a0388 LICENSE.GPLv2
diff --git a/package/sema-linux-ec/sema-linux-ec.mk b/package/sema-linux-ec/sema-linux-ec.mk
new file mode 100644
index 00000000000..427ee09943d
--- /dev/null
+++ b/package/sema-linux-ec/sema-linux-ec.mk
@@ -0,0 +1,27 @@
+################################################################################
+#
+# sema-linux-ec
+#
+################################################################################
+
+SEMA_LINUX_EC_VERSION = v4.3.11
+SEMA_LINUX_EC_SITE = $(call github,ADLINK,sema-linux-ec,$(SEMA_LINUX_EC_VERSION))
+SEMA_LINUX_EC_LICENSE = GPL-2.0
+SEMA_LINUX_EC_LICENSE_FILES = LICENSE
+
+SEMA_LINUX_EC_MAKE_OPTS = KERNELDIR=$(LINUX_DIR)