Bug 13613 - KERNEL_IMAGEDEST variable not taken into account
Summary: KERNEL_IMAGEDEST variable not taken into account
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: kernel (show other bugs)
Version: 3.0
Hardware: All Multiple
: Medium+ normal
Target Milestone: 6.1 M3
Assignee: Bruce Ashfield
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-10-30 12:58 UTC by rreignier
Modified: 2026-10-27 22:21 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rreignier 2019-10-30 12:58:52 UTC
To change the kernel install directory (something other than /boot), from meta/classes/kernel.bbclass it seems that the variable KERNEL_IMAGEDEST needs to be modified.

But setting 'KERNEL_IMAGEDEST="kernel"' does not change anything and the kernel is still placed in /boot while I was expecting bzImage to be in /kernel.

Setting 'KERNEL_IMAGEDEST=""' (empty string to get /bzImage) causes QA errors:

WARNING: linux-yocto-5.2.17+gitAUTOINC+b867b78b50_255a750d28-r0 do_package: QA Issue: FILES variable for package kernel-devicetree contains '//' which is invalid. Attempting to fix this but you should correct the metadata.
 [files-invalid]
WARNING: linux-yocto-5.2.17+gitAUTOINC+b867b78b50_255a750d28-r0 do_package: QA Issue: FILES variable for package kernel-image-bzimage contains '//' which is invalid. Attempting to fix this but you should correct the metadata.
 [files-invalid]
ERROR: linux-yocto-5.2.17+gitAUTOINC+b867b78b50_255a750d28-r0 do_package: QA Issue: linux-yocto: Files/directories were installed but not shipped in any package:
  /bzImage
  /bzImage-5.2.17-yocto-standard
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
linux-yocto: 2 installed and not shipped files. [installed-vs-shipped]
ERROR: linux-yocto-5.2.17+gitAUTOINC+b867b78b50_255a750d28-r0 do_package: Fatal QA errors found, failing task.
ERROR: Logfile of failure stored in: /mnt/data/pheno/yocto/poky-master/build/tmp/work/qemux86_64-poky-linux/linux-yocto/5.2.17+gitAUTOINC+b867b78b50_255a750d28-r0/temp/log.do_package.1974
ERROR: Task (/mnt/data/pheno/yocto/poky-master/meta/recipes-kernel/linux/linux-yocto_5.2.bb:do_package) failed with exit code '1'
Comment 1 Randy MacLeod 2025-04-24 18:54:44 UTC
Bulk move as requesting during YP BB meeting.
Comment 2 Bruce Ashfield 2026-10-27 22:21:34 UTC
This was fixed by oe-core commit b9c3db4953 ("kernel.bbclass: Use KERNEL_IMAGEDEST instead of hardcoded boot path"); the install, packaging (FILES) and postinst paths all honour KERNEL_IMAGEDEST now. Note that an empty KERNEL_IMAGEDEST (installing directly to /) is not a supported value. Closing as fixed.