diff options
author | Amarnath Valluri <amarnath.valluri@intel.com> | 2017-01-04 13:58:23 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-22 11:35:20 +0000 |
commit | 0decf1cc1c35dd70f3b822e3b4291a810a319ba0 (patch) | |
tree | da5df167d83a345a57a81ddce9346e0aff33c474 /meta/classes/kernel.bbclass | |
parent | 6a2e06e5d4b1d3288de4542a0929426b43fbab12 (diff) | |
download | poky-0decf1cc1c35dd70f3b822e3b4291a810a319ba0.tar.gz |
kernel: use ${nonarch_base_libdir} for kernel modules installation.
Replace hardcoded '/lib' in kernel modules installation path with
${nonarch_base_libdir}, which is meant exactly for this.
(From OE-Core rev: 22f5ba7154fcbe826d0a3283740903312b2aab46)
Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r-- | meta/classes/kernel.bbclass | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 1e0646a437..244087a59d 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -299,11 +299,11 @@ kernel_do_install() { | |||
299 | # | 299 | # |
300 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE | 300 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE |
301 | if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then | 301 | if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then |
302 | oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" modules_install | 302 | oe_runmake DEPMOD=echo MODLIB=${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION} INSTALL_FW_PATH=${D}${nonarch_base_libdir}/firmware modules_install |
303 | rm "${D}/lib/modules/${KERNEL_VERSION}/build" | 303 | rm "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/build" |
304 | rm "${D}/lib/modules/${KERNEL_VERSION}/source" | 304 | rm "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/source" |
305 | # If the kernel/ directory is empty remove it to prevent QA issues | 305 | # If the kernel/ directory is empty remove it to prevent QA issues |
306 | rmdir --ignore-fail-on-non-empty "${D}/lib/modules/${KERNEL_VERSION}/kernel" | 306 | rmdir --ignore-fail-on-non-empty "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel" |
307 | else | 307 | else |
308 | bbnote "no modules to install" | 308 | bbnote "no modules to install" |
309 | fi | 309 | fi |
@@ -485,9 +485,9 @@ EXPORT_FUNCTIONS do_compile do_install do_configure | |||
485 | # kernel-image becomes kernel-image-${KERNEL_VERSION} | 485 | # kernel-image becomes kernel-image-${KERNEL_VERSION} |
486 | PACKAGES = "kernel kernel-base kernel-vmlinux kernel-image kernel-dev kernel-modules" | 486 | PACKAGES = "kernel kernel-base kernel-vmlinux kernel-image kernel-dev kernel-modules" |
487 | FILES_${PN} = "" | 487 | FILES_${PN} = "" |
488 | FILES_kernel-base = "/lib/modules/${KERNEL_VERSION}/modules.order /lib/modules/${KERNEL_VERSION}/modules.builtin" | 488 | FILES_kernel-base = "${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.order ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin" |
489 | FILES_kernel-image = "" | 489 | FILES_kernel-image = "" |
490 | FILES_kernel-dev = "/boot/System.map* /boot/Module.symvers* /boot/config* ${KERNEL_SRC_PATH} /lib/modules/${KERNEL_VERSION}/build" | 490 | FILES_kernel-dev = "/boot/System.map* /boot/Module.symvers* /boot/config* ${KERNEL_SRC_PATH} ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/build" |
491 | FILES_kernel-vmlinux = "/boot/vmlinux-${KERNEL_VERSION_NAME}" | 491 | FILES_kernel-vmlinux = "/boot/vmlinux-${KERNEL_VERSION_NAME}" |
492 | FILES_kernel-modules = "" | 492 | FILES_kernel-modules = "" |
493 | RDEPENDS_kernel = "kernel-base" | 493 | RDEPENDS_kernel = "kernel-base" |
@@ -518,7 +518,7 @@ pkg_postinst_kernel-base () { | |||
518 | PACKAGESPLITFUNCS_prepend = "split_kernel_packages " | 518 | PACKAGESPLITFUNCS_prepend = "split_kernel_packages " |
519 | 519 | ||
520 | python split_kernel_packages () { | 520 | python split_kernel_packages () { |
521 | do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.(bin|fw|cis|csp|dsp)$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='') | 521 | do_split_packages(d, root='${nonarch_base_libdir}/firmware', file_regex='^(.*)\.(bin|fw|cis|csp|dsp)$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='') |
522 | } | 522 | } |
523 | 523 | ||
524 | # Many scripts want to look in arch/$arch/boot for the bootable | 524 | # Many scripts want to look in arch/$arch/boot for the bootable |