Bug 15310

Summary: Build installer image failed
Product: [Build System, Metadata & Runtime] BSPs Reporter: lucio.liu <lucio.liux>
Component: bsps-meta-intelAssignee: Anuj Mittal <anuj.mittal>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: chee.yang.lee, randy.macleod
Version: unspecified   
Target Milestone: 5.0 M2   
Hardware: x86   
OS: x86_64   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
Error message none

Description lucio.liu 2023-12-07 02:33:15 UTC
Created attachment 4998 [details]
Error message

I want to use the meta-intel layer to generate an installer image of core-image-base following README guide. During the compilation process, an error occurred with the error message stating that core-image-base-intel-corei7-64.ext4 does not exist in the path/to/build/tmp/work/intel_corei7_64-poky-linux/core-image-base/1.0/deploy-core-image-base-image-complete directory. However, I found that there is core-image-base-intel-corei7-64.rootfs.ext4 in this directory. Did I overlook something?

My local.conf

MACHINE ??= "qemux86-64"
MACHINE ?= "intel-corei7-64"

PREFERRED_PROVIDER_virtual/kernel ?= "linux-intel-rt"

IMAGE_INSTALL:append = " \
    vim \
    "

WKS_FILE = "image-installer.wks.in"
IMAGE_FSTYPES:append = " ext4"
IMAGE_TYPEDEP_wic = "ext4"
INITRD_IMAGE_LIVE="core-image-minimal-initramfs"
do_image_wic[depends] += "${INITRD_IMAGE_LIVE}:do_image_complete"
do_rootfs[depends] += "virtual/kernel:do_deploy"
IMAGE_BOOT_FILES:append = "\
    ${KERNEL_IMAGETYPE} \
    microcode.cpio \
    ${IMGDEPLOYDIR}/${IMAGE_BASENAME}-${MACHINE}.ext4;rootfs.img \
    ${@bb.utils.contains('EFI_PROVIDER', 'grub-efi', 'grub-efi-bootx64.efi;EFI/BOOT/bootx64.efi', '', d)} \
    ${@bb.utils.contains('EFI_PROVIDER', 'grub-efi', '${IMAGE_ROOTFS}/boot/EFI/BOOT/grub.cfg;EFI/BOOT/grub.cfg', '', d)} \
    ${@bb.utils.contains('EFI_PROVIDER', 'systemd-boot', 'systemd-bootx64.efi;EFI/BOOT/bootx64.efi', '', d)} \
    ${@bb.utils.contains('EFI_PROVIDER', 'systemd-boot', '${IMAGE_ROOTFS}/boot/loader/loader.conf;loader/loader.conf ', '', d)} \
    ${@bb.utils.contains('EFI_PROVIDER', 'systemd-boot', '${IMAGE_ROOTFS}/boot/loader/entries/boot.conf;loader/entries/boot.conf', '', d)} "

My bblayers.conf

POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
  /home/remote/workspace/poky/meta \
  /home/remote/workspace/poky/meta-poky \
  /home/remote/workspace/poky/meta-yocto-bsp \
  /home/remote/workspace/poky/meta-intel \
  "
Comment 1 Chee Yang 2023-12-08 05:39:13 UTC
The README were not up to date. 
add changes in this patch should work.

https://lists.yoctoproject.org/g/meta-intel/message/8188
Comment 2 lucio.liu 2023-12-08 06:27:18 UTC
OK,it works now!