Skip to contentSkip to conversation

ti-test: Add hwspinlocktest

PATCH New Judith Mendez 1 participant 1 message Nov 21, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 ti-test: Add hwspinlocktest

Add hwspinlock recipe to build out of tree module hwspinlock test.

---
Changes since RESEND v2:
- add Upstream-Status tag to patches

---
 .../recipes-core/packagegroups/ti-test.bb     |  1 +
 ...Fix-Makefile-for-to-build-with-yocto.patch | 47 +++++++++++++++++++
 .../0002-Add-support-for-AM62-SoCs.patch      | 32 +++++++++++++
 .../hwspinlocktest/hwspinlocktest_0.1.bb      | 18 +++++++
 4 files changed, 98 insertions(+)
 create mode 100644 meta-arago-test/recipes-kernel/hwspinlocktest/files/0001-Fix-Makefile-for-to-build-with-yocto.patch
 create mode 100644 meta-arago-test/recipes-kernel/hwspinlocktest/files/0002-Add-support-for-AM62-SoCs.patch
 create mode 100644 meta-arago-test/recipes-kernel/hwspinlocktest/hwspinlocktest_0.1.bb
meta-arago-test/recipes-core/packagegroups/ti-test.bb +1 -0
index 695bed5c..91ebec44 100644
@@ -17,6 +17,7 @@ TI_TEST_BASE = "\
     evtest \
     fio \
     git \
+    hwspinlocktest \
     hdparm \
     i2c-tools \
     iozone3 \
meta-arago-test/recipes-kernel/hwspinlocktest/files/0001-Fix-Makefile-for-to-build-with-yocto.patch new file +47 -0

47 lines not on this page · raw message

meta-arago-test/recipes-kernel/hwspinlocktest/files/0002-Add-support-for-AM62-SoCs.patch new file +32 -0
new file mode 100644
index 00000000..bd4cc667
@@ -0,0 +1,32 @@
+From 5ea20dff1aba059cc49e11031f731a422f3fd114 Mon Sep 17 00:00:00 2001
+From: Judith Mendez <[email protected]>
+Date: Mon, 18 Nov 2024 14:57:45 -0600
+Subject: [PATCH 2/2] Add support for AM62* SoCs
+
+The K3 AM62* SoCs have a hwspinlock IP in MAIN domain.
+Extend the test to add the desired SoC compatible so that
+the test can be exercised on these new SoC families.
+
+Upstream-Status: Inactive-Upstream [private repo]
+Signed-off-by: Judith Mendez <[email protected]>
+---
+ omap_hwspinlock_test.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/omap_hwspinlock_test.c b/omap_hwspinlock_test.c
+index b180138..46fcc08 100644
+--- a/omap_hwspinlock_test.c
++++ b/omap_hwspinlock_test.c
+@@ -199,6 +199,9 @@ static const struct hwspinlock_data soc_data[] = {
+ 	{ "ti,j7200",	256, },
+ 	{ "ti,am642",	256, },
+ 	{ "ti,j721s2",	256, },
++	{ "ti,am625",	256, },
++	{ "ti,am62a7",	256, },
++	{ "ti,am62p5",	256, },
+ 	{ /* sentinel */ },
+ };
+ 
+-- 
+2.47.0
+
meta-arago-test/recipes-kernel/hwspinlocktest/hwspinlocktest_0.1.bb new file +18 -0
new file mode 100644
index 00000000..888e3e00
@@ -0,0 +1,18 @@
+SUMMARY = "Build hwspinlock test as an external Linux kernel module"
+DESCRIPTION = "${SUMMARY}"
+LICENSE = "GPL-2.0-only | BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSE;md5=bfa02c83df161e37647ee23a2c7eacd4"
+
+inherit module
+
+SRC_URI = "git://github.com/sumananna/omap-hwspinlock-test;protocol=https;branch=master \
+		   file://0001-Fix-Makefile-for-to-build-with-yocto.patch \
+		   file://0002-Add-support-for-AM62-SoCs.patch "
+SRCREV = "20f15e79a3a0197e06328c252d23aec225de21ed"
+
+S = "${WORKDIR}/git"
+
+# The inherit of module.bbclass will automatically name module packages with
+# "kernel-module-" prefix as required by the oe-core build environment.
+
+RPROVIDES:${PN} += "kernel-module-hwspinlocktest"
Signature · 1 line
2.47.0