diff options
author | Javier Martinez Canillas <javier@dowhile0.org> | 2012-08-05 21:48:44 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-06 15:18:51 +0100 |
commit | 5b8a4798ea2ea7df66bb53c26448251ea7da3dd9 (patch) | |
tree | 828a0e37f1afaf222a1293330c9de3aea9fee9d3 /meta | |
parent | 226ec65c5dad96e39d0076e27f3685dd689ddd4d (diff) | |
download | poky-5b8a4798ea2ea7df66bb53c26448251ea7da3dd9.tar.gz |
kernel.bbclass: use ${base_libdir} and ${sysconfdir} instead of /lib and /etc
It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.
(From OE-Core rev: c859717f522098e7c68df578d59011f68122dc2c)
Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/kernel.bbclass | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 1d8dff9ada..b434093561 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -109,10 +109,10 @@ kernel_do_install() { | |||
109 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE | 109 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE |
110 | if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then | 110 | if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then |
111 | oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" modules_install | 111 | oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" modules_install |
112 | rm -f "${D}/lib/modules/${KERNEL_VERSION}/modules.order" | 112 | rm -f "${D}${base_libdir}/modules/${KERNEL_VERSION}/modules.order" |
113 | rm -f "${D}/lib/modules/${KERNEL_VERSION}/modules.builtin" | 113 | rm -f "${D}${base_libdir}/modules/${KERNEL_VERSION}/modules.builtin" |
114 | rm "${D}/lib/modules/${KERNEL_VERSION}/build" | 114 | rm "${D}${base_libdir}/modules/${KERNEL_VERSION}/build" |
115 | rm "${D}/lib/modules/${KERNEL_VERSION}/source" | 115 | rm "${D}${base_libdir}/modules/${KERNEL_VERSION}/source" |
116 | else | 116 | else |
117 | bbnote "no modules to install" | 117 | bbnote "no modules to install" |
118 | fi | 118 | fi |
@@ -127,8 +127,8 @@ kernel_do_install() { | |||
127 | install -m 0644 .config ${D}/boot/config-${KERNEL_VERSION} | 127 | install -m 0644 .config ${D}/boot/config-${KERNEL_VERSION} |
128 | install -m 0644 vmlinux ${D}/boot/vmlinux-${KERNEL_VERSION} | 128 | install -m 0644 vmlinux ${D}/boot/vmlinux-${KERNEL_VERSION} |
129 | [ -e Module.symvers ] && install -m 0644 Module.symvers ${D}/boot/Module.symvers-${KERNEL_VERSION} | 129 | [ -e Module.symvers ] && install -m 0644 Module.symvers ${D}/boot/Module.symvers-${KERNEL_VERSION} |
130 | install -d ${D}/etc/modules-load.d | 130 | install -d ${D}${sysconfdir}/modules-load.d |
131 | install -d ${D}/etc/modprobe.d | 131 | install -d ${D}${sysconfdir}/modprobe.d |
132 | 132 | ||
133 | # | 133 | # |
134 | # Support for external module building - create a minimal copy of the | 134 | # Support for external module building - create a minimal copy of the |