diff options
| author | Ryan Eatmon <reatmon@ti.com> | 2026-04-28 11:21:53 -0500 |
|---|---|---|
| committer | Ryan Eatmon <reatmon@ti.com> | 2026-04-29 10:41:53 -0500 |
| commit | 5d91191e8058adce5724f0356e98e4a386e14180 (patch) | |
| tree | 034cf92d0285d16e20180ae6491421f7fe7b769b | |
| parent | 308329b59e421120978f8ada0f2becd977a59b2c (diff) | |
| download | meta-ti-5d91191e8058adce5724f0356e98e4a386e14180.tar.gz | |
meta-ti-test: Import the recipes-kernel recipes
We are moving the meta-arago-test layer to meta-ti-test. This commit
imports all of the recipes under recipes-kernel.
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
5 files changed, 139 insertions, 0 deletions
diff --git a/meta-ti-test/recipes-kernel/hwspinlocktest/files/0001-Fix-Makefile-for-to-build-with-yocto.patch b/meta-ti-test/recipes-kernel/hwspinlocktest/files/0001-Fix-Makefile-for-to-build-with-yocto.patch new file mode 100644 index 00000000..3386337f --- /dev/null +++ b/meta-ti-test/recipes-kernel/hwspinlocktest/files/0001-Fix-Makefile-for-to-build-with-yocto.patch | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | From 0a085bff54c3f02c20412c5f5a4060c2acb20d4c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Judith Mendez <jm@ti.com> | ||
| 3 | Date: Mon, 18 Nov 2024 10:26:55 -0600 | ||
| 4 | Subject: [PATCH 1/2] Fix Makefile for to build with yocto | ||
| 5 | |||
| 6 | Fix Makefile that builds hwspinlocktest out-of-tree-module | ||
| 7 | for yocto recipie to be able to build the module. | ||
| 8 | |||
| 9 | Upstream-Status: Inactive-Upstream [private repo] | ||
| 10 | Signed-off-by: Judith Mendez <jm@ti.com> | ||
| 11 | --- | ||
| 12 | Makefile | 18 ++++++++++-------- | ||
| 13 | 1 file changed, 10 insertions(+), 8 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/Makefile b/Makefile | ||
| 16 | index 23ee629..d8fe76d 100644 | ||
| 17 | --- a/Makefile | ||
| 18 | +++ b/Makefile | ||
| 19 | @@ -3,15 +3,17 @@ | ||
| 20 | # TI OMAP HwSpinlock Unit Test | ||
| 21 | # | ||
| 22 | |||
| 23 | -obj-m = omap_hwspinlock_test.o | ||
| 24 | +obj-m := omap_hwspinlock_test.o | ||
| 25 | + | ||
| 26 | +SRC := $(shell pwd) | ||
| 27 | |||
| 28 | all: | ||
| 29 | -ifeq ($(KERNELDIR),) | ||
| 30 | - @echo "Error: KERNELDIR not set, exiting..." | ||
| 31 | - @echo "Eg: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- KERNELDIR=<linux-kernel rootdir>" | ||
| 32 | - @exit 1 | ||
| 33 | -endif | ||
| 34 | - make ${MAKE_OPTS} -C $(KERNELDIR) M=$(PWD) modules | ||
| 35 | + $(MAKE) -C $(KERNEL_SRC) M=$(SRC) | ||
| 36 | + | ||
| 37 | +modules_install: | ||
| 38 | + $(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules_install | ||
| 39 | |||
| 40 | clean: | ||
| 41 | - $(RM) -r *.o *.ko *.mod* *.dwo .*.dwo .*.cmd *.symvers modules.order | ||
| 42 | + rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c | ||
| 43 | + rm -f Module.markers Module.symvers modules.order | ||
| 44 | + rm -rf .tmp_versions Modules.symvers | ||
| 45 | -- | ||
| 46 | 2.47.0 | ||
diff --git a/meta-ti-test/recipes-kernel/hwspinlocktest/hwspinlocktest_0.1.bb b/meta-ti-test/recipes-kernel/hwspinlocktest/hwspinlocktest_0.1.bb new file mode 100644 index 00000000..cc566b37 --- /dev/null +++ b/meta-ti-test/recipes-kernel/hwspinlocktest/hwspinlocktest_0.1.bb | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | SUMMARY = "Build hwspinlock test as an external Linux kernel module" | ||
| 2 | DESCRIPTION = "${SUMMARY}" | ||
| 3 | LICENSE = "GPL-2.0-only | BSD-3-Clause" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=bfa02c83df161e37647ee23a2c7eacd4" | ||
| 5 | |||
| 6 | inherit module | ||
| 7 | |||
| 8 | SRC_URI = "\ | ||
| 9 | git://github.com/TexasInstruments/omap-hwspinlock-test;protocol=https;branch=master \ | ||
| 10 | file://0001-Fix-Makefile-for-to-build-with-yocto.patch \ | ||
| 11 | " | ||
| 12 | |||
| 13 | SRCREV = "1d154fbe5b56ef81045763f574c2098a35d6a8b8" | ||
| 14 | |||
| 15 | # The inherit of module.bbclass will automatically name module packages with | ||
| 16 | # "kernel-module-" prefix as required by the oe-core build environment. | ||
| 17 | |||
| 18 | RPROVIDES:${PN} += "kernel-module-hwspinlocktest" | ||
diff --git a/meta-ti-test/recipes-kernel/kernel-selftest/kernel-selftest-ti.inc b/meta-ti-test/recipes-kernel/kernel-selftest/kernel-selftest-ti.inc new file mode 100644 index 00000000..bae5b7ab --- /dev/null +++ b/meta-ti-test/recipes-kernel/kernel-selftest/kernel-selftest-ti.inc | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | # Tests not enabled: | ||
| 2 | # openat2 has buildpath errors | ||
| 3 | |||
| 4 | TEST_LIST += "\ | ||
| 5 | arm64 \ | ||
| 6 | breakpoints \ | ||
| 7 | capabilities \ | ||
| 8 | cgroup \ | ||
| 9 | clone3 \ | ||
| 10 | core \ | ||
| 11 | cpu-hotplug \ | ||
| 12 | cpufreq \ | ||
| 13 | efivarfs \ | ||
| 14 | exec \ | ||
| 15 | filesystems \ | ||
| 16 | filesystems/binderfs \ | ||
| 17 | filesystems/epoll \ | ||
| 18 | firmware \ | ||
| 19 | fpu \ | ||
| 20 | ftrace \ | ||
| 21 | futex \ | ||
| 22 | gpio \ | ||
| 23 | intel_pstate \ | ||
| 24 | ipc \ | ||
| 25 | kcmp \ | ||
| 26 | kvm \ | ||
| 27 | livepatch \ | ||
| 28 | membarrier \ | ||
| 29 | memfd \ | ||
| 30 | mqueue \ | ||
| 31 | mincore \ | ||
| 32 | net \ | ||
| 33 | net/mptcp \ | ||
| 34 | ptrace \ | ||
| 35 | resq \ | ||
| 36 | rtc \ | ||
| 37 | seccomp \ | ||
| 38 | sigaltstack \ | ||
| 39 | size \ | ||
| 40 | tc-testing \ | ||
| 41 | timers \ | ||
| 42 | tmpfs \ | ||
| 43 | tpm2 \ | ||
| 44 | user_events \ | ||
| 45 | vDSO \ | ||
| 46 | watchdog \ | ||
| 47 | " | ||
| 48 | |||
| 49 | TEST_LIST:append:bsp-ti-6_18 = " \ | ||
| 50 | pci_endpoint \ | ||
| 51 | " | ||
| 52 | |||
| 53 | INSANE_SKIP:${PN} += "staticdev textrel" | ||
diff --git a/meta-ti-test/recipes-kernel/kernel-selftest/kernel-selftest.bbappend b/meta-ti-test/recipes-kernel/kernel-selftest/kernel-selftest.bbappend new file mode 100644 index 00000000..163a074d --- /dev/null +++ b/meta-ti-test/recipes-kernel/kernel-selftest/kernel-selftest.bbappend | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | KERNEL_SELFTEST_TI = "" | ||
| 2 | KERNEL_SELFTEST_TI:ti-soc = "kernel-selftest-ti.inc" | ||
| 3 | |||
| 4 | require ${KERNEL_SELFTEST_TI} | ||
diff --git a/meta-ti-test/recipes-kernel/pcitest/pcitest_5.10.bb b/meta-ti-test/recipes-kernel/pcitest/pcitest_5.10.bb new file mode 100644 index 00000000..9ab0dbed --- /dev/null +++ b/meta-ti-test/recipes-kernel/pcitest/pcitest_5.10.bb | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | SUMMARY = "Linux Kernel PCI test" | ||
| 2 | LICENSE = "GPL-2.0-only" | ||
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
| 4 | |||
| 5 | BRANCH = "ti-linux-5.10.y" | ||
| 6 | SRCREV = "73aa709ca10103b61fba3a07471dbb4dcb56db45" | ||
| 7 | SRC_URI = "git://git.ti.com/git/ti-linux-kernel/ti-linux-kernel.git;protocol=https;branch=${BRANCH}" | ||
| 8 | |||
| 9 | do_compile () { | ||
| 10 | cd ${S}/tools/pci | ||
| 11 | ${CC} ${CFLAGS} ${LDFLAGS} -o pcitest pcitest.c | ||
| 12 | } | ||
| 13 | |||
| 14 | do_install () { | ||
| 15 | install -d ${D}${bindir} | ||
| 16 | install -m 0755 ${S}/tools/pci/pcitest ${D}${bindir} | ||
| 17 | install -m 0755 ${S}/tools/pci/pcitest.sh ${D}${bindir} | ||
| 18 | } | ||
