diff options
| author | Chen Qi <Qi.Chen@windriver.com> | 2024-05-26 12:43:48 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-30 09:04:14 +0100 |
| commit | b79a8eb7c9d91553529a6e50351390aa6d34744f (patch) | |
| tree | 43bbb0ec9f4a730436c4646fe27bd73ffc98f915 | |
| parent | 071db3ae8ebf4990d3f5371572a7d9873c9c31ed (diff) | |
| download | poky-b79a8eb7c9d91553529a6e50351390aa6d34744f.tar.gz | |
kmod: upgrade from 31 to 32
kmod now installs symlinks in 'make install'.
https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/commit/?
id=e98cef6f3f8cd6f8bfb26d147b2c209297453cca
Changes are made in do_install to ensure that we can to continue to
use sbin. This is because our kernel has: CONFIG_MODPROBE_PATH='/sbin/modprobe'.
We'll need to sync our kmod path settings with our kernel config. Otherwise,
things would fail. For example, libnl's some ptest cases fail.
(From OE-Core rev: 99e0a6ed8a08faa86116fbb8989bbb234bd7fc53)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-kernel/kmod/kmod_32.bb (renamed from meta/recipes-kernel/kmod/kmod_31.bb) | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-kernel/kmod/kmod_31.bb b/meta/recipes-kernel/kmod/kmod_32.bb index 718a5565b4..1c4e5a94db 100644 --- a/meta/recipes-kernel/kmod/kmod_31.bb +++ b/meta/recipes-kernel/kmod/kmod_32.bb | |||
| @@ -15,7 +15,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | |||
| 15 | " | 15 | " |
| 16 | inherit autotools bash-completion gtk-doc pkgconfig manpages update-alternatives | 16 | inherit autotools bash-completion gtk-doc pkgconfig manpages update-alternatives |
| 17 | 17 | ||
| 18 | SRCREV = "aff617ea871d0568cc491bd116c0be1e857463bb" | 18 | SRCREV = "41faa59711742c1476d59985011ee0f27ed91d30" |
| 19 | 19 | ||
| 20 | SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;branch=master;protocol=https \ | 20 | SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;branch=master;protocol=https \ |
| 21 | file://depmod-search.conf \ | 21 | file://depmod-search.conf \ |
| @@ -52,8 +52,9 @@ do_install:append () { | |||
| 52 | install -dm755 ${D}${base_bindir} | 52 | install -dm755 ${D}${base_bindir} |
| 53 | install -dm755 ${D}${base_sbindir} | 53 | install -dm755 ${D}${base_sbindir} |
| 54 | # add symlinks to kmod | 54 | # add symlinks to kmod |
| 55 | ln -rs ${D}${base_bindir}/kmod ${D}${base_bindir}/lsmod | 55 | [ -e ${D}${base_bindir}/lsmod ] || ln -rs ${D}${base_bindir}/kmod ${D}${base_bindir}/lsmod |
| 56 | for tool in insmod rmmod depmod modinfo modprobe; do | 56 | for tool in insmod rmmod depmod modinfo modprobe; do |
| 57 | rm -f ${D}${base_bindir}/${tool} | ||
| 57 | ln -rs ${D}${base_bindir}/kmod ${D}${base_sbindir}/${tool} | 58 | ln -rs ${D}${base_bindir}/kmod ${D}${base_sbindir}/${tool} |
| 58 | done | 59 | done |
| 59 | # configuration directories | 60 | # configuration directories |
