summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass26
1 files changed, 11 insertions, 15 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 29498b4faf..125ed88406 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -231,16 +231,20 @@ kernel_do_install() {
231 [ -e Module.symvers ] && install -m 0644 Module.symvers ${D}/boot/Module.symvers-${KERNEL_VERSION} 231 [ -e Module.symvers ] && install -m 0644 Module.symvers ${D}/boot/Module.symvers-${KERNEL_VERSION}
232 install -d ${D}${sysconfdir}/modules-load.d 232 install -d ${D}${sysconfdir}/modules-load.d
233 install -d ${D}${sysconfdir}/modprobe.d 233 install -d ${D}${sysconfdir}/modprobe.d
234
235 # Stash data for depmod
236 install -d ${D}${datadir}/kernel-depmod/
237 echo "${KERNEL_VERSION}" > ${D}${datadir}/kernel-depmod/kernel-abiversion
238 cp System.map ${D}${datadir}/kernel-depmod/System.map-${KERNEL_VERSION}
239} 234}
240do_install[prefuncs] += "package_get_auto_pr" 235do_install[prefuncs] += "package_get_auto_pr"
241 236
242addtask shared_workdir after do_compile before do_install 237addtask shared_workdir after do_compile before do_install
243 238
239emit_depmod_pkgdata() {
240 # Stash data for depmod
241 install -d ${PKGDESTWORK}/kernel-depmod/
242 echo "${KERNEL_VERSION}" > ${PKGDESTWORK}/kernel-depmod/kernel-abiversion
243 cp System.map ${PKGDESTWORK}/kernel-depmod/System.map-${KERNEL_VERSION}
244}
245
246PACKAGEFUNCS += "emit_depmod_pkgdata"
247
244do_shared_workdir () { 248do_shared_workdir () {
245 cd ${B} 249 cd ${B}
246 250
@@ -285,21 +289,13 @@ do_shared_workdir () {
285 fi 289 fi
286} 290}
287 291
288# Only stage the files we need for depmod, not the modules/firmware 292# We don't need to stage anything, not the modules/firmware since those would clash with linux-firmware
289sysroot_stage_all () { 293sysroot_stage_all () {
290 sysroot_stage_dir ${D}${datadir}/kernel-depmod ${SYSROOT_DESTDIR}${datadir}/kernel-depmod 294 :
291} 295}
292 296
293KERNEL_CONFIG_COMMAND ?= "oe_runmake_call -C ${S} O=${B} oldnoconfig || yes '' | oe_runmake -C ${S} O=${B} oldconfig" 297KERNEL_CONFIG_COMMAND ?= "oe_runmake_call -C ${S} O=${B} oldnoconfig || yes '' | oe_runmake -C ${S} O=${B} oldconfig"
294 298
295PACKAGE_PREPROCESS_FUNCS += "kernel_package_preprocess"
296
297kernel_package_preprocess () {
298 rm -rf ${PKGD}${datadir}/kernel-depmod
299 rmdir ${PKGD}${datadir}
300 rmdir ${PKGD}${exec_prefix}
301}
302
303kernel_do_configure() { 299kernel_do_configure() {
304 # fixes extra + in /lib/modules/2.6.37+ 300 # fixes extra + in /lib/modules/2.6.37+
305 # $ scripts/setlocalversion . => + 301 # $ scripts/setlocalversion . => +