diff options
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-kernel/kmod/kmod/avoid_parallel_tests.patch | 30 | ||||
| -rw-r--r-- | meta/recipes-kernel/kmod/kmod/gtkdocdir.patch | 30 | ||||
| -rwxr-xr-x | meta/recipes-kernel/kmod/kmod/run-ptest | 5 | ||||
| -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 @@ | |||
| 1 | From 7a22abf188e5b688080bb1321a77588474114339 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Tudor Florea <tudor.florea@enea.com> | ||
| 3 | Date: Fri, 6 Sep 2013 21:11:57 +0000 | ||
| 4 | Subject: [PATCH] kmod: avoid parallel-tests | ||
| 5 | |||
| 6 | Avoid parallel-tests as it remove | ||
| 7 | buildtest-TESTS and runtest-TESTS targets required by ptest. | ||
| 8 | In automake 1.13.4 parallel-tests is assumed by defauls. | ||
| 9 | In order to have buildtest-TESTS and runtest-TESTS targets | ||
| 10 | serial-tests is now required | ||
| 11 | |||
| 12 | Signed-off-by: Tudor Florea <tudor.florea@enea.com> | ||
| 13 | Upstream-Status: Inappropriate (disable feature incompatible with ptest) | ||
| 14 | --- | ||
| 15 | configure.ac | 2 +- | ||
| 16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 17 | |||
| 18 | diff --git a/configure.ac b/configure.ac | ||
| 19 | index 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 @@ | |||
| 1 | From 90fb7bb85002cde39de3b3d2e2481933390832af Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ross Burton <ross.burton@arm.com> | ||
| 3 | Date: Fri, 8 Dec 2023 22:35:45 +0000 | ||
| 4 | Subject: [PATCH] configure: set docdir in GTK_DOC_CHECK | ||
| 5 | |||
| 6 | By passing --docdir in the GTK_DOC_CHECK arguments (to match | ||
| 7 | autogen.sh) autoreconf will work out of the box. | ||
| 8 | |||
| 9 | Without this autoreconf fails due to the documentation not being in | ||
| 10 | ./docs, the default location. | ||
| 11 | |||
| 12 | Upstream-Status: Submitted [https://lore.kernel.org/linux-modules/20231208224511.1363066-1-ross.burton@arm.com/T/#u] | ||
| 13 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
| 14 | --- | ||
| 15 | configure.ac | 2 +- | ||
| 16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 17 | |||
| 18 | diff --git a/configure.ac b/configure.ac | ||
| 19 | index 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 | ||
| 2 | touch testsuite/stamp-rootfs | ||
| 3 | tar xf testmodule.tar | ||
| 4 | make -k runtest-TESTS 2>/dev/null| grep -e ^PASS -e ^FAIL | ||
| 5 | find 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 | " |
| 16 | inherit autotools bash-completion gtk-doc pkgconfig update-alternatives | 16 | inherit bash-completion gtk-doc manpages meson pkgconfig update-alternatives |
| 17 | 17 | ||
| 18 | SRCREV = "e193aeb99a04fb4b63ce47eb2c7f119db59446a0" | 18 | SRC_URI = "https://www.kernel.org/pub/linux/utils/kernel/${BPN}/${BP}.tar.xz \ |
| 19 | |||
| 20 | SRC_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 | " |
| 21 | SRC_URI[sha256sum] = "125957c9125fc5db1bd6a2641a1c9a6a0b500882fb8ccf7fb6483fcae5309b17" | ||
| 25 | 22 | ||
| 26 | S = "${WORKDIR}/git" | 23 | EXTRA_OEMESON += "\ |
| 27 | 24 | -Ddistconfdir=${nonarch_base_libdir} \ | |
| 28 | EXTRA_OECONF += "--enable-tools" | 25 | --bindir=${base_bindir} \ |
| 26 | --sbindir=${base_sbindir} \ | ||
| 27 | -Dtools=true \ | ||
| 28 | " | ||
| 29 | 29 | ||
| 30 | PACKAGECONFIG ??= "zlib xz openssl" | 30 | PACKAGECONFIG ??= "zlib xz openssl" |
| 31 | PACKAGECONFIG[debug] = "--enable-debug,--disable-debug" | 31 | PACKAGECONFIG[debug] = "-Ddebug-messages=true,-Ddebug-messages=false" |
| 32 | PACKAGECONFIG[logging] = " --enable-logging,--disable-logging" | 32 | PACKAGECONFIG[logging] = " -Dlogging=true,-Dlogging=false" |
| 33 | PACKAGECONFIG[manpages] = "--enable-manpages, --disable-manpages, scdoc-native" | 33 | PACKAGECONFIG[manpages] = "-Dmanpages=true,-Dmanpages=false,scdoc-native" |
| 34 | PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl" | 34 | PACKAGECONFIG[openssl] = "-Dopenssl=enabled,-Dopenssl=disabled,openssl" |
| 35 | PACKAGECONFIG[xz] = "--with-xz,--without-xz,xz" | 35 | PACKAGECONFIG[xz] = "-Dxz=enabled,-Dxz=disabled,xz" |
| 36 | PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib" | 36 | PACKAGECONFIG[zlib] = "-Dzlib=enabled,-Dzlib=disabled,zlib" |
| 37 | PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd" | 37 | PACKAGECONFIG[zstd] = "-Dzstd=enabled,-Dzstd=disabled,zstd" |
| 38 | 38 | ||
| 39 | PROVIDES += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools" | 39 | PROVIDES += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools" |
| 40 | RPROVIDES:${PN} += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools" | 40 | RPROVIDES:${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 |
| 45 | RCONFLICTS:libkmod2 += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools" | 45 | RCONFLICTS: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 | ||
| 48 | EXTRA_OECONF += "--bindir=${base_bindir} --sbindir=${base_sbindir}" | ||
| 49 | |||
| 50 | do_install:append () { | 47 | do_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 | ||
| 55 | PACKAGES += "${PN}-fish-completion ${PN}-zsh-completion" | ||
| 56 | |||
| 57 | FILES:${PN}-fish-completion = "${datadir}/fish" | ||
| 58 | FILES:${PN}-zsh-completion = "${datadir}/zsh" | ||
| 59 | |||
| 72 | ALTERNATIVE_PRIORITY = "70" | 60 | ALTERNATIVE_PRIORITY = "70" |
| 73 | 61 | ||
| 74 | ALTERNATIVE:kmod = "insmod modprobe rmmod modinfo bin-lsmod lsmod depmod" | 62 | ALTERNATIVE:kmod = "insmod modprobe rmmod modinfo bin-lsmod lsmod depmod" |
| @@ -78,9 +66,9 @@ ALTERNATIVE_LINK_NAME[insmod] = "${base_sbindir}/insmod" | |||
| 78 | ALTERNATIVE_LINK_NAME[modprobe] = "${base_sbindir}/modprobe" | 66 | ALTERNATIVE_LINK_NAME[modprobe] = "${base_sbindir}/modprobe" |
| 79 | ALTERNATIVE_LINK_NAME[rmmod] = "${base_sbindir}/rmmod" | 67 | ALTERNATIVE_LINK_NAME[rmmod] = "${base_sbindir}/rmmod" |
| 80 | ALTERNATIVE_LINK_NAME[modinfo] = "${base_sbindir}/modinfo" | 68 | ALTERNATIVE_LINK_NAME[modinfo] = "${base_sbindir}/modinfo" |
| 81 | ALTERNATIVE_LINK_NAME[bin-lsmod] = "${base_bindir}/lsmod" | 69 | ALTERNATIVE_LINK_NAME[bin-lsmod] = "${base_sbindir}/lsmod" |
| 82 | ALTERNATIVE_LINK_NAME[lsmod] = "${base_sbindir}/lsmod" | 70 | ALTERNATIVE_LINK_NAME[lsmod] = "${base_sbindir}/lsmod" |
| 83 | ALTERNATIVE_TARGET[lsmod] = "${base_bindir}/lsmod.${BPN}" | 71 | ALTERNATIVE_TARGET[lsmod] = "${base_sbindir}/lsmod.${BPN}" |
| 84 | 72 | ||
| 85 | PACKAGES =+ "libkmod" | 73 | PACKAGES =+ "libkmod" |
| 86 | FILES:libkmod = "${base_libdir}/libkmod*${SOLIBS} ${libdir}/libkmod*${SOLIBS}" | 74 | FILES:libkmod = "${base_libdir}/libkmod*${SOLIBS} ${libdir}/libkmod*${SOLIBS}" |
