Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 272EFC4332F for ; Mon, 14 Nov 2022 13:50:50 +0000 (UTC) Subject: #kirkstone: boot script section not added in the fitimage To: yocto@lists.yoctoproject.org From: sebastien.fabre31@gmail.com X-Originating-Location: FR (185.146.41.250) X-Originating-Platform: Windows Chrome 107 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Mon, 14 Nov 2022 05:50:42 -0800 Message-ID: Content-Type: multipart/alternative; boundary="gNn6qxXo3MnnNhAPv7yW" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 14 Nov 2022 13:50:50 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/58554 --gNn6qxXo3MnnNhAPv7yW Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, I am working on kirkstone. If UBOOT_ENV is specified and kernel-fitimage is= in KERNEL_CLASSES, boot script section is not added in the fitimage. In fitimage_assemble (kernel-fitimage.bbclass), the 3 rd step is not perfor= med because boot directory is not in STAGING_DIR_HOST. Indeed, u-boot.inc i= nstalls UBOOT_ENV_BINARY in boot directory but boot is not in SYSROOT_DIRS = so it is not present in kernel STAGING_DIR_HOST. Should we add the following line in u-boot.inc ? SYSROOT_DIRS:append =3D "${@' /boot' if d.getVar('UBOOT_ENV') else ''}" Best regards, S=C3=A9bastien Fabre --gNn6qxXo3MnnNhAPv7yW Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Hello,

=C2=A0

I am working on kirkstone. If UBOOT_ENV = is specified and kernel-fitimage is in KERNEL_CLASSES, boot script section = is not added in the fitimage.

In fitimage_assemble (kernel-fitimage.bb= class), the 3rd step is not performed because boot directory is = not in STAGING_DIR_HOST. Indeed, u-boot.inc installs UBOOT_ENV_BINARY in bo= ot directory but boot is not in SYSROOT_DIRS so it is not present in kernel= STAGING_DIR_HOST.

Should we add the following line in u-bo= ot.inc ?

SYSROOT_DIRS:append =3D "${@' /b= oot' if d.getVar('UBOOT_ENV') else ''}"


Best regards,
S=C3=A9bastien Fabre --gNn6qxXo3MnnNhAPv7yW--