diff options
| author | Ross Burton <ross@burtonini.com> | 2021-12-20 18:26:34 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-12-21 12:01:41 +0000 |
| commit | c6afe999228b642fe15fe031d7fbb2544e284db4 (patch) | |
| tree | 3f897c8c0bc37c8ceaac03904b0a6701b7ae0e74 /meta | |
| parent | 70341cdbd8d271b5f16d25e3cd95ce1e74b0f962 (diff) | |
| download | poky-c6afe999228b642fe15fe031d7fbb2544e284db4.tar.gz | |
kmod: merge target/native recipes
There's no good reason to keep separate target and native recipes for
kmod, so merge them into a single kmod_29.bb which uses class extension.
The symlinks are not created differently for target vs native builds, as
the native sbindir is in PATH.
(From OE-Core rev: 9abbf481438fba10a7512fb1ad1bff5d48e6fbdc)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/conf/distro/include/maintainers.inc | 1 | ||||
| -rw-r--r-- | meta/recipes-kernel/kmod/kmod-native_git.bb | 15 | ||||
| -rw-r--r-- | meta/recipes-kernel/kmod/kmod.inc | 37 | ||||
| -rw-r--r-- | meta/recipes-kernel/kmod/kmod_29.bb (renamed from meta/recipes-kernel/kmod/kmod_git.bb) | 44 |
4 files changed, 35 insertions, 62 deletions
diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 4fe655fdcd..70d185cab4 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc | |||
| @@ -294,7 +294,6 @@ RECIPE_MAINTAINER:pn-kernel-devsrc = "Bruce Ashfield <bruce.ashfield@gmail.com>" | |||
| 294 | RECIPE_MAINTAINER:pn-kexec-tools = "Unassigned <unassigned@yoctoproject.org>" | 294 | RECIPE_MAINTAINER:pn-kexec-tools = "Unassigned <unassigned@yoctoproject.org>" |
| 295 | RECIPE_MAINTAINER:pn-keymaps = "Alexander Kanavin <alex.kanavin@gmail.com>" | 295 | RECIPE_MAINTAINER:pn-keymaps = "Alexander Kanavin <alex.kanavin@gmail.com>" |
| 296 | RECIPE_MAINTAINER:pn-kmod = "Chen Qi <Qi.Chen@windriver.com>" | 296 | RECIPE_MAINTAINER:pn-kmod = "Chen Qi <Qi.Chen@windriver.com>" |
| 297 | RECIPE_MAINTAINER:pn-kmod-native = "Chen Qi <Qi.Chen@windriver.com>" | ||
| 298 | RECIPE_MAINTAINER:pn-kmscube = "Carlos Rafael Giani <dv@pseudoterminal.org>" | 297 | RECIPE_MAINTAINER:pn-kmscube = "Carlos Rafael Giani <dv@pseudoterminal.org>" |
| 299 | RECIPE_MAINTAINER:pn-l3afpad = "Anuj Mittal <anuj.mittal@intel.com>" | 298 | RECIPE_MAINTAINER:pn-l3afpad = "Anuj Mittal <anuj.mittal@intel.com>" |
| 300 | RECIPE_MAINTAINER:pn-lame = "Michael Opdenacker <michael.opdenacker@bootlin.com>" | 299 | RECIPE_MAINTAINER:pn-lame = "Michael Opdenacker <michael.opdenacker@bootlin.com>" |
diff --git a/meta/recipes-kernel/kmod/kmod-native_git.bb b/meta/recipes-kernel/kmod/kmod-native_git.bb deleted file mode 100644 index 4dd34b1c82..0000000000 --- a/meta/recipes-kernel/kmod/kmod-native_git.bb +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 1 | # Copyright (C) 2012 Khem Raj <raj.khem@gmail.com> | ||
| 2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
| 3 | |||
| 4 | require kmod.inc | ||
| 5 | |||
| 6 | DEPENDS += "zlib-native" | ||
| 7 | |||
| 8 | inherit native | ||
| 9 | |||
| 10 | do_install:append (){ | ||
| 11 | for tool in depmod insmod lsmod modinfo modprobe rmmod | ||
| 12 | do | ||
| 13 | ln -s kmod ${D}${bindir}/$tool | ||
| 14 | done | ||
| 15 | } | ||
diff --git a/meta/recipes-kernel/kmod/kmod.inc b/meta/recipes-kernel/kmod/kmod.inc deleted file mode 100644 index d527887b78..0000000000 --- a/meta/recipes-kernel/kmod/kmod.inc +++ /dev/null | |||
| @@ -1,37 +0,0 @@ | |||
| 1 | # Copyright (C) 2012 Khem Raj <raj.khem@gmail.com> | ||
| 2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
| 3 | |||
| 4 | SUMMARY = "Tools for managing Linux kernel modules" | ||
| 5 | DESCRIPTION = "kmod is a set of tools to handle common tasks with Linux kernel modules like \ | ||
| 6 | insert, remove, list, check properties, resolve dependencies and aliases." | ||
| 7 | HOMEPAGE = "http://kernel.org/pub/linux/utils/kernel/kmod/" | ||
| 8 | LICENSE = "GPL-2.0+ & LGPL-2.1+" | ||
| 9 | LICENSE:libkmod = "LGPL-2.1+" | ||
| 10 | SECTION = "base" | ||
| 11 | |||
| 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | ||
| 13 | file://libkmod/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | ||
| 14 | file://tools/COPYING;md5=751419260aa954499f7abaabaa882bbe \ | ||
| 15 | " | ||
| 16 | inherit autotools gtk-doc pkgconfig manpages | ||
| 17 | |||
| 18 | SRCREV = "b6ecfc916a17eab8f93be5b09f4e4f845aabd3d1" | ||
| 19 | # Lookout for PV bump too when SRCREV is changed | ||
| 20 | PV = "29" | ||
| 21 | |||
| 22 | SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;branch=master \ | ||
| 23 | file://depmod-search.conf \ | ||
| 24 | file://avoid_parallel_tests.patch \ | ||
| 25 | " | ||
| 26 | |||
| 27 | S = "${WORKDIR}/git" | ||
| 28 | |||
| 29 | EXTRA_OECONF +=" --enable-tools --with-zlib" | ||
| 30 | |||
| 31 | PACKAGECONFIG[debug] = "--enable-debug,--disable-debug" | ||
| 32 | PACKAGECONFIG[logging] = " --enable-logging,--disable-logging" | ||
| 33 | PACKAGECONFIG[manpages] = "--enable-manpages, --disable-manpages, libxslt-native xmlto-native" | ||
| 34 | PACKAGECONFIG[xz] = "--with-xz,--without-xz,xz" | ||
| 35 | PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl" | ||
| 36 | |||
| 37 | GTKDOC_DOCDIR = "${S}/libkmod/docs" | ||
diff --git a/meta/recipes-kernel/kmod/kmod_git.bb b/meta/recipes-kernel/kmod/kmod_29.bb index 234f072fb6..904a17d9d0 100644 --- a/meta/recipes-kernel/kmod/kmod_git.bb +++ b/meta/recipes-kernel/kmod/kmod_29.bb | |||
| @@ -1,7 +1,38 @@ | |||
| 1 | # Copyright (C) 2012 Khem Raj <raj.khem@gmail.com> | 1 | # Copyright (C) 2012 Khem Raj <raj.khem@gmail.com> |
| 2 | # Released under the MIT license (see COPYING.MIT for the terms) | 2 | # Released under the MIT license (see COPYING.MIT for the terms) |
| 3 | 3 | ||
| 4 | require kmod.inc | 4 | SUMMARY = "Tools for managing Linux kernel modules" |
| 5 | DESCRIPTION = "kmod is a set of tools to handle common tasks with Linux kernel modules like \ | ||
| 6 | insert, remove, list, check properties, resolve dependencies and aliases." | ||
| 7 | HOMEPAGE = "http://kernel.org/pub/linux/utils/kernel/kmod/" | ||
| 8 | LICENSE = "GPL-2.0+ & LGPL-2.1+" | ||
| 9 | LICENSE:libkmod = "LGPL-2.1+" | ||
| 10 | SECTION = "base" | ||
| 11 | |||
| 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | ||
| 13 | file://libkmod/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | ||
| 14 | file://tools/COPYING;md5=751419260aa954499f7abaabaa882bbe \ | ||
| 15 | " | ||
| 16 | inherit autotools bash-completion gtk-doc pkgconfig manpages update-alternatives | ||
| 17 | |||
| 18 | SRCREV = "b6ecfc916a17eab8f93be5b09f4e4f845aabd3d1" | ||
| 19 | |||
| 20 | SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;branch=master \ | ||
| 21 | file://depmod-search.conf \ | ||
| 22 | file://avoid_parallel_tests.patch \ | ||
| 23 | " | ||
| 24 | |||
| 25 | S = "${WORKDIR}/git" | ||
| 26 | |||
| 27 | EXTRA_OECONF += "--enable-tools --with-zlib" | ||
| 28 | |||
| 29 | PACKAGECONFIG[debug] = "--enable-debug,--disable-debug" | ||
| 30 | PACKAGECONFIG[logging] = " --enable-logging,--disable-logging" | ||
| 31 | PACKAGECONFIG[manpages] = "--enable-manpages, --disable-manpages, libxslt-native xmlto-native" | ||
| 32 | PACKAGECONFIG[xz] = "--with-xz,--without-xz,xz" | ||
| 33 | PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl" | ||
| 34 | |||
| 35 | GTKDOC_DOCDIR = "${S}/libkmod/docs" | ||
| 5 | 36 | ||
| 6 | DEPENDS += "zlib" | 37 | DEPENDS += "zlib" |
| 7 | PROVIDES += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools" | 38 | PROVIDES += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools" |
| @@ -13,7 +44,7 @@ RREPLACES:${PN} += "module-init-tools-insmod-static module-init-tools-depmod mod | |||
| 13 | RCONFLICTS:libkmod2 += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools" | 44 | RCONFLICTS:libkmod2 += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools" |
| 14 | 45 | ||
| 15 | # autotools set prefix to /usr, however we want them in /bin and /sbin | 46 | # autotools set prefix to /usr, however we want them in /bin and /sbin |
| 16 | EXTRA_OECONF += " --bindir=${base_bindir} --sbindir=${base_sbindir}" | 47 | EXTRA_OECONF += "--bindir=${base_bindir} --sbindir=${base_sbindir}" |
| 17 | 48 | ||
| 18 | do_install:append () { | 49 | do_install:append () { |
| 19 | install -dm755 ${D}${base_bindir} | 50 | install -dm755 ${D}${base_bindir} |
| @@ -33,26 +64,21 @@ do_install:append () { | |||
| 33 | install -Dm644 "${WORKDIR}/depmod-search.conf" "${D}${nonarch_base_libdir}/depmod.d/search.conf" | 64 | install -Dm644 "${WORKDIR}/depmod-search.conf" "${D}${nonarch_base_libdir}/depmod.d/search.conf" |
| 34 | } | 65 | } |
| 35 | 66 | ||
| 36 | inherit update-alternatives bash-completion | ||
| 37 | |||
| 38 | ALTERNATIVE_PRIORITY = "70" | 67 | ALTERNATIVE_PRIORITY = "70" |
| 39 | 68 | ||
| 40 | ALTERNATIVE:kmod = "insmod modprobe rmmod modinfo bin-lsmod lsmod depmod" | 69 | ALTERNATIVE:kmod = "insmod modprobe rmmod modinfo bin-lsmod lsmod depmod" |
| 41 | 70 | ||
| 71 | ALTERNATIVE_LINK_NAME[depmod] = "${base_sbindir}/depmod" | ||
| 42 | ALTERNATIVE_LINK_NAME[insmod] = "${base_sbindir}/insmod" | 72 | ALTERNATIVE_LINK_NAME[insmod] = "${base_sbindir}/insmod" |
| 43 | ALTERNATIVE_LINK_NAME[modprobe] = "${base_sbindir}/modprobe" | 73 | ALTERNATIVE_LINK_NAME[modprobe] = "${base_sbindir}/modprobe" |
| 44 | ALTERNATIVE_LINK_NAME[rmmod] = "${base_sbindir}/rmmod" | 74 | ALTERNATIVE_LINK_NAME[rmmod] = "${base_sbindir}/rmmod" |
| 45 | ALTERNATIVE_LINK_NAME[modinfo] = "${base_sbindir}/modinfo" | 75 | ALTERNATIVE_LINK_NAME[modinfo] = "${base_sbindir}/modinfo" |
| 46 | ALTERNATIVE_LINK_NAME[bin-lsmod] = "${base_bindir}/lsmod" | 76 | ALTERNATIVE_LINK_NAME[bin-lsmod] = "${base_bindir}/lsmod" |
| 47 | |||
| 48 | ALTERNATIVE_LINK_NAME[lsmod] = "${base_sbindir}/lsmod" | 77 | ALTERNATIVE_LINK_NAME[lsmod] = "${base_sbindir}/lsmod" |
| 49 | ALTERNATIVE_TARGET[lsmod] = "${base_bindir}/lsmod.${BPN}" | 78 | ALTERNATIVE_TARGET[lsmod] = "${base_bindir}/lsmod.${BPN}" |
| 50 | 79 | ||
| 51 | ALTERNATIVE_LINK_NAME[depmod] = "${base_sbindir}/depmod" | ||
| 52 | |||
| 53 | PACKAGES =+ "libkmod" | 80 | PACKAGES =+ "libkmod" |
| 54 | |||
| 55 | FILES:libkmod = "${base_libdir}/libkmod*${SOLIBS} ${libdir}/libkmod*${SOLIBS}" | 81 | FILES:libkmod = "${base_libdir}/libkmod*${SOLIBS} ${libdir}/libkmod*${SOLIBS}" |
| 56 | FILES:${PN} += "${nonarch_base_libdir}/depmod.d ${nonarch_base_libdir}/modprobe.d" | 82 | FILES:${PN} += "${nonarch_base_libdir}/depmod.d ${nonarch_base_libdir}/modprobe.d" |
| 57 | 83 | ||
| 58 | BBCLASSEXTEND = "nativesdk" | 84 | BBCLASSEXTEND = "native nativesdk" |
