summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-kernel/kmod/kmod/avoid_parallel_tests.patch30
-rw-r--r--meta/recipes-kernel/kmod/kmod/gtkdocdir.patch30
-rwxr-xr-xmeta/recipes-kernel/kmod/kmod/run-ptest5
-rw-r--r--meta/recipes-kernel/kmod/kmod_34.1.bb (renamed from meta/recipes-kernel/kmod/kmod_33.bb)58
4 files changed, 23 insertions, 100 deletions
diff --git a/meta/recipes-kernel/kmod/kmod/avoid_parallel_tests.patch b/meta/recipes-kernel/kmod/kmod/avoid_parallel_tests.patch
deleted file mode 100644
index 6db4fa7e97..0000000000
--- a/meta/recipes-kernel/kmod/kmod/avoid_parallel_tests.patch
+++ /dev/null
@@ -1,30 +0,0 @@
1From 7a22abf188e5b688080bb1321a77588474114339 Mon Sep 17 00:00:00 2001
2From: Tudor Florea <tudor.florea@enea.com>
3Date: Fri, 6 Sep 2013 21:11:57 +0000
4Subject: [PATCH] kmod: avoid parallel-tests
5
6Avoid parallel-tests as it remove
7buildtest-TESTS and runtest-TESTS targets required by ptest.
8In automake 1.13.4 parallel-tests is assumed by defauls.
9In order to have buildtest-TESTS and runtest-TESTS targets
10serial-tests is now required
11
12Signed-off-by: Tudor Florea <tudor.florea@enea.com>
13Upstream-Status: Inappropriate (disable feature incompatible with ptest)
14---
15 configure.ac | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/configure.ac b/configure.ac
19index 2f1c525..7056aae 100644
20--- a/configure.ac
21+++ b/configure.ac
22@@ -14,7 +14,7 @@ AC_USE_SYSTEM_EXTENSIONS
23 AC_SYS_LARGEFILE
24 AC_PREFIX_DEFAULT([/usr])
25 AM_MAINTAINER_MODE([enable])
26-AM_INIT_AUTOMAKE([check-news foreign 1.11 silent-rules tar-pax no-dist-gzip dist-xz subdir-objects color-tests parallel-tests])
27+AM_INIT_AUTOMAKE([check-news foreign 1.11 silent-rules tar-pax no-dist-gzip dist-xz subdir-objects color-tests serial-tests])
28 AM_SILENT_RULES([yes])
29 LT_INIT([disable-static pic-only])
30
diff --git a/meta/recipes-kernel/kmod/kmod/gtkdocdir.patch b/meta/recipes-kernel/kmod/kmod/gtkdocdir.patch
deleted file mode 100644
index 91d622b8c7..0000000000
--- a/meta/recipes-kernel/kmod/kmod/gtkdocdir.patch
+++ /dev/null
@@ -1,30 +0,0 @@
1From 90fb7bb85002cde39de3b3d2e2481933390832af Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@arm.com>
3Date: Fri, 8 Dec 2023 22:35:45 +0000
4Subject: [PATCH] configure: set docdir in GTK_DOC_CHECK
5
6By passing --docdir in the GTK_DOC_CHECK arguments (to match
7autogen.sh) autoreconf will work out of the box.
8
9Without this autoreconf fails due to the documentation not being in
10./docs, the default location.
11
12Upstream-Status: Submitted [https://lore.kernel.org/linux-modules/20231208224511.1363066-1-ross.burton@arm.com/T/#u]
13Signed-off-by: Ross Burton <ross.burton@arm.com>
14---
15 configure.ac | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/configure.ac b/configure.ac
19index 7056aae..d53a20c 100644
20--- a/configure.ac
21+++ b/configure.ac
22@@ -236,7 +236,7 @@ AS_IF([test "x$enable_coverage" = "xyes"], [
23 AM_CONDITIONAL([ENABLE_COVERAGE], [test "x$enable_coverage" = "xyes"])
24
25 m4_ifdef([GTK_DOC_CHECK], [
26-GTK_DOC_CHECK([1.14],[--flavour no-tmpl-flat])
27+GTK_DOC_CHECK([1.14],[--flavour no-tmpl-flat --docdir libkmod/docs])
28 ], [
29 AM_CONDITIONAL([ENABLE_GTK_DOC], false)])
30
diff --git a/meta/recipes-kernel/kmod/kmod/run-ptest b/meta/recipes-kernel/kmod/kmod/run-ptest
deleted file mode 100755
index 598dd2cb5f..0000000000
--- a/meta/recipes-kernel/kmod/kmod/run-ptest
+++ /dev/null
@@ -1,5 +0,0 @@
1#!/bin/sh
2touch testsuite/stamp-rootfs
3tar xf testmodule.tar
4make -k runtest-TESTS 2>/dev/null| grep -e ^PASS -e ^FAIL
5find testsuite -name *.ko -exec rm -f {} \;
diff --git a/meta/recipes-kernel/kmod/kmod_33.bb b/meta/recipes-kernel/kmod/kmod_34.1.bb
index 15f42766f3..8154e6ec57 100644
--- a/meta/recipes-kernel/kmod/kmod_33.bb
+++ b/meta/recipes-kernel/kmod/kmod_34.1.bb
@@ -13,28 +13,28 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
13 file://libkmod/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ 13 file://libkmod/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
14 file://tools/COPYING;md5=751419260aa954499f7abaabaa882bbe \ 14 file://tools/COPYING;md5=751419260aa954499f7abaabaa882bbe \
15 " 15 "
16inherit autotools bash-completion gtk-doc pkgconfig update-alternatives 16inherit bash-completion gtk-doc manpages meson pkgconfig update-alternatives
17 17
18SRCREV = "e193aeb99a04fb4b63ce47eb2c7f119db59446a0" 18SRC_URI = "https://www.kernel.org/pub/linux/utils/kernel/${BPN}/${BP}.tar.xz \
19
20SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;branch=master;protocol=https \
21 file://depmod-search.conf \ 19 file://depmod-search.conf \
22 file://avoid_parallel_tests.patch \
23 file://gtkdocdir.patch \
24 " 20 "
21SRC_URI[sha256sum] = "125957c9125fc5db1bd6a2641a1c9a6a0b500882fb8ccf7fb6483fcae5309b17"
25 22
26S = "${WORKDIR}/git" 23EXTRA_OEMESON += "\
27 24 -Ddistconfdir=${nonarch_base_libdir} \
28EXTRA_OECONF += "--enable-tools" 25 --bindir=${base_bindir} \
26 --sbindir=${base_sbindir} \
27 -Dtools=true \
28"
29 29
30PACKAGECONFIG ??= "zlib xz openssl" 30PACKAGECONFIG ??= "zlib xz openssl"
31PACKAGECONFIG[debug] = "--enable-debug,--disable-debug" 31PACKAGECONFIG[debug] = "-Ddebug-messages=true,-Ddebug-messages=false"
32PACKAGECONFIG[logging] = " --enable-logging,--disable-logging" 32PACKAGECONFIG[logging] = " -Dlogging=true,-Dlogging=false"
33PACKAGECONFIG[manpages] = "--enable-manpages, --disable-manpages, scdoc-native" 33PACKAGECONFIG[manpages] = "-Dmanpages=true,-Dmanpages=false,scdoc-native"
34PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl" 34PACKAGECONFIG[openssl] = "-Dopenssl=enabled,-Dopenssl=disabled,openssl"
35PACKAGECONFIG[xz] = "--with-xz,--without-xz,xz" 35PACKAGECONFIG[xz] = "-Dxz=enabled,-Dxz=disabled,xz"
36PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib" 36PACKAGECONFIG[zlib] = "-Dzlib=enabled,-Dzlib=disabled,zlib"
37PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd" 37PACKAGECONFIG[zstd] = "-Dzstd=enabled,-Dzstd=disabled,zstd"
38 38
39PROVIDES += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools" 39PROVIDES += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools"
40RPROVIDES:${PN} += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools" 40RPROVIDES:${PN} += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools"
@@ -44,24 +44,7 @@ RREPLACES:${PN} += "module-init-tools-insmod-static module-init-tools-depmod mod
44# to force user to remove old module-init-tools and replace them with kmod variants 44# to force user to remove old module-init-tools and replace them with kmod variants
45RCONFLICTS:libkmod2 += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools" 45RCONFLICTS:libkmod2 += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools"
46 46
47# autotools set prefix to /usr, however we want them in /bin and /sbin
48EXTRA_OECONF += "--bindir=${base_bindir} --sbindir=${base_sbindir}"
49
50do_install:append () { 47do_install:append () {
51 install -dm755 ${D}${base_bindir}
52 install -dm755 ${D}${base_sbindir}
53 # add symlinks to kmod
54 [ -e ${D}${base_bindir}/lsmod ] || ln -rs ${D}${base_bindir}/kmod ${D}${base_bindir}/lsmod
55 for tool in insmod rmmod depmod modinfo modprobe; do
56 rm -f ${D}${base_bindir}/${tool}
57 ln -rs ${D}${base_bindir}/kmod ${D}${base_sbindir}/${tool}
58 done
59 # configuration directories
60 install -dm755 ${D}${nonarch_base_libdir}/depmod.d
61 install -dm755 ${D}${nonarch_base_libdir}/modprobe.d
62 install -dm755 ${D}${sysconfdir}/depmod.d
63 install -dm755 ${D}${sysconfdir}/modprobe.d
64
65 # install depmod.d file for search/ dir 48 # install depmod.d file for search/ dir
66 install -Dm644 "${UNPACKDIR}/depmod-search.conf" "${D}${nonarch_base_libdir}/depmod.d/search.conf" 49 install -Dm644 "${UNPACKDIR}/depmod-search.conf" "${D}${nonarch_base_libdir}/depmod.d/search.conf"
67 50
@@ -69,6 +52,11 @@ do_install:append () {
69 echo "exclude .debug" > ${D}${nonarch_base_libdir}/depmod.d/exclude.conf 52 echo "exclude .debug" > ${D}${nonarch_base_libdir}/depmod.d/exclude.conf
70} 53}
71 54
55PACKAGES += "${PN}-fish-completion ${PN}-zsh-completion"
56
57FILES:${PN}-fish-completion = "${datadir}/fish"
58FILES:${PN}-zsh-completion = "${datadir}/zsh"
59
72ALTERNATIVE_PRIORITY = "70" 60ALTERNATIVE_PRIORITY = "70"
73 61
74ALTERNATIVE:kmod = "insmod modprobe rmmod modinfo bin-lsmod lsmod depmod" 62ALTERNATIVE:kmod = "insmod modprobe rmmod modinfo bin-lsmod lsmod depmod"
@@ -78,9 +66,9 @@ ALTERNATIVE_LINK_NAME[insmod] = "${base_sbindir}/insmod"
78ALTERNATIVE_LINK_NAME[modprobe] = "${base_sbindir}/modprobe" 66ALTERNATIVE_LINK_NAME[modprobe] = "${base_sbindir}/modprobe"
79ALTERNATIVE_LINK_NAME[rmmod] = "${base_sbindir}/rmmod" 67ALTERNATIVE_LINK_NAME[rmmod] = "${base_sbindir}/rmmod"
80ALTERNATIVE_LINK_NAME[modinfo] = "${base_sbindir}/modinfo" 68ALTERNATIVE_LINK_NAME[modinfo] = "${base_sbindir}/modinfo"
81ALTERNATIVE_LINK_NAME[bin-lsmod] = "${base_bindir}/lsmod" 69ALTERNATIVE_LINK_NAME[bin-lsmod] = "${base_sbindir}/lsmod"
82ALTERNATIVE_LINK_NAME[lsmod] = "${base_sbindir}/lsmod" 70ALTERNATIVE_LINK_NAME[lsmod] = "${base_sbindir}/lsmod"
83ALTERNATIVE_TARGET[lsmod] = "${base_bindir}/lsmod.${BPN}" 71ALTERNATIVE_TARGET[lsmod] = "${base_sbindir}/lsmod.${BPN}"
84 72
85PACKAGES =+ "libkmod" 73PACKAGES =+ "libkmod"
86FILES:libkmod = "${base_libdir}/libkmod*${SOLIBS} ${libdir}/libkmod*${SOLIBS}" 74FILES:libkmod = "${base_libdir}/libkmod*${SOLIBS} ${libdir}/libkmod*${SOLIBS}"