From: "Gundlupet Raju, Sandeep" <sandeep.gundlupet-raju@amd.com>
To: yocto-patches@lists.yoctoproject.org
Subject: Re: [yocto-patches] [meta-zephyr][scarthgap][PATCH v5 4/12] zephyr-image: Add image artifacts to output files
Date: Mon, 18 Aug 2025 08:32:37 -0600 [thread overview]
Message-ID: <a2dbebfc-8ca8-4290-a405-ece0cea3bb45@amd.com> (raw)
In-Reply-To: <BL4PR11MB879701F9E70B3BBA7A74EFCCB931A@BL4PR11MB8797.namprd11.prod.outlook.com>
On 8/17/2025 9:51 PM, Lee Chee Yang via lists.yoctoproject.org wrote:
>
>> -----Original Message-----
>> From: Gundlupet Raju, Sandeep <sandeep.gundlupet-raju@amd.com>
>> Sent: Saturday, 16 August, 2025 10:32 AM
>> To: yocto-patches@lists.yoctoproject.org; Lee, Chee Yang
>> <chee.yang.lee@intel.com>
>> Subject: Re: [yocto-patches] [meta-zephyr][scarthgap][PATCH v5 4/12] zephyr-
>> image: Add image artifacts to output files
>>
>>
>> On 8/13/2025 7:02 PM, Sandeep Gundlupet Raju via lists.yoctoproject.org
>> wrote:
>>> [AMD Official Use Only - AMD Internal Distribution Only]
>>>
>>> Thanks,
>>> Sandeep
>>>> -----Original Message-----
>>>> From: yocto-patches@lists.yoctoproject.org <yocto-
>>>> patches@lists.yoctoproject.org> On Behalf Of Lee Chee Yang via
>>>> lists.yoctoproject.org
>>>> Sent: Tuesday, August 12, 2025 9:13 PM
>>>> To: yocto-patches@lists.yoctoproject.org
>>>> Subject: Re: [yocto-patches] [meta-zephyr][scarthgap][PATCH v5 4/12]
>>>> zephyr-
>>>> image: Add image artifacts to output files
>>>>
>>>>
>>>>
>>>>> -----Original Message-----
>>>>> From: yocto-patches@lists.yoctoproject.org <yocto-
>>>>> patches@lists.yoctoproject.org> On Behalf Of Sandeep Gundlupet Raju
>>>>> via lists.yoctoproject.org
>>>>> Sent: Wednesday, 13 August, 2025 1:42 AM
>>>>> To: yocto-patches@lists.yoctoproject.org; Lee, Chee Yang
>>>>> <chee.yang.lee@intel.com>
>>>>> Subject: [yocto-patches] [meta-zephyr][scarthgap][PATCH v5 4/12]
>>>>> zephyr-
>>>>> image: Add image artifacts to output files
>>>>>
>>>>> Inherit image-artifact-names bbclass in zephyr-image.inc and add
>>>>> image artifacts to output generated files.
>>>>>
>>>>> Before:
>>>>> zephyr-helloworld.elf
>>>>>
>>>>> After:
>>>>> zephyr-helloworld-{MACHINE}-{DATETIME}.elf
>>>>>
>>>>> Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-
>>>> raju@amd.com>
>>>>> ---
>>>>> .../zephyr-kernel/zephyr-image.inc | 28 +++++++++++++++----
>>>>> 1 file changed, 23 insertions(+), 5 deletions(-)
>>>>>
>>>>> diff --git
>>>>> a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
>>>>> b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
>>>>> index d6ee21f..93d36b1 100644
>>>>> --- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
>>>>> +++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
>>>>> @@ -1,29 +1,47 @@
>>>>> require zephyr-kernel-src.inc
>>>>> require zephyr-kernel-common.inc
>>>>> -inherit deploy
>>>>> +inherit deploy image-artifact-names
>>>>>
>>>>> OECMAKE_SOURCEPATH = "${ZEPHYR_SRC_DIR}"
>>>>>
>>>>> +ZEPHYR_IMAGE_LINK_NAME ?= "${PN}-${MACHINE}"
>>>>> +ZEPHYR_IMAGE_BASE_NAME ?= "${PN}-
>>>>> ${MACHINE}${IMAGE_VERSION_SUFFIX}"
>>>>> +
>>>>> do_install() {
>>>>> install -d ${D}/firmware
>>>>>
>>>>> - install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}
>>>> ${D}/firmware/${PN}.elf
>>>>
>>>> Since this is for stable branch, I think we should keep the
>>>> elf/bin/efi file with old naming. We can deploy both ${PN}.elf and
>>>> ${ZEPHYR_IMAGE_BASE_NAME}.elf, ${PN}.elf can be copy of/soft link to
>>>> latest ${ZEPHYR_IMAGE_BASE_NAME}.elf, same for .bin and .efi.
>>>>
>>> [Sandeep] : Agreed this is for stable branch but to me this seems to be a bug.
>> Deploying ${PN}.elf is not a YP best practice. What do you think?
>> [Sandeep]: Chee Yang, ping on above question.[]
> This has been default behaviour for long time, I think some existing build might have expected latest build deploy with ${PN}.elf. Agree that we can drop ${PN}.elf for master.
[Sandeep]: Ok sounds good I will put it back.
>
>
>>>>
>>>>
>>>>> + install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}
>>>>> + ${D}/firmware/${ZEPHYR_IMAGE_BASE_NAME}.elf
>>>>>
>>>>> if [ -f ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ]
>>>>> then
>>>>> - install -D ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT}
>>>>> ${D}/firmware/${PN}.bin
>>>>> + install -D ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT}
>>>>> + ${D}/firmware/${ZEPHYR_IMAGE_BASE_NAME}.bin
>>>>> fi
>>>>>
>>>>> if [ -f ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ]
>>>>> then
>>>>> - install -D ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT}
>>>>> ${D}/firmware/${PN}.efi
>>>>> + install -D ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT}
>>>>> + ${D}/firmware/${ZEPHYR_IMAGE_BASE_NAME}.efi
>>>>> fi
>>>>> }
>>>>> +
>>>>> FILES:${PN} = "/firmware"
>>>>> INSANE_SKIP += "ldflags buildpaths"
>>>>> SYSROOT_DIRS += "/firmware"
>>>>>
>>>>> do_deploy() {
>>>>> - cp ${D}/firmware/${PN}.* ${DEPLOYDIR}/
>>>>> + cp ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}
>>>>> ${DEPLOYDIR}/${ZEPHYR_IMAGE_BASE_NAME}.elf
>>>>> + ln -sf ${ZEPHYR_IMAGE_BASE_NAME}.elf
>>>>> + ${DEPLOYDIR}/${ZEPHYR_IMAGE_LINK_NAME}.elf
>>>>> +
>>>>> + if [ -f ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ]
>>>>> + then
>>>>> + cp ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT}
>>>>> ${DEPLOYDIR}/${ZEPHYR_IMAGE_BASE_NAME}.bin
>>>>> + ln -sf ${ZEPHYR_IMAGE_BASE_NAME}.bin
>>>>> ${DEPLOYDIR}/${ZEPHYR_IMAGE_LINK_NAME}.bin
>>>>> + fi
>>>>> +
>>>>> + if [ -f ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ]
>>>>> + then
>>>>> + cp ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT}
>>>>> ${DEPLOYDIR}/${ZEPHYR_IMAGE_BASE_NAME}.efi
>>>>> + ln -sf ${ZEPHYR_IMAGE_BASE_NAME}.efi
>>>>> ${DEPLOYDIR}/${ZEPHYR_IMAGE_LINK_NAME}.efi
>>>>> + fi
>>>>> +
>>>>> }
>>>>> addtask deploy after do_install
>>>>> --
>>>>> 2.34.1
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#2032): https://lists.yoctoproject.org/g/yocto-patches/message/2032
> Mute This Topic: https://lists.yoctoproject.org/mt/114670142/3619217
> Group Owner: yocto-patches+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/14411013/3619217/657730681/xyzzy [sandeep.gundlupet-raju@amd.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
next prev parent reply other threads:[~2025-08-18 14:32 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-12 17:41 [scarthgap][PATCH v5 0/12] Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 1/12] qemu-cortex-a9: Fix runqemu errors Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 2/12] zephyr-sdk: Add new inc file and update to 0.16.9 version Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 3/12] zephyr-kernel-src: Remove PREFERRED_VERSION_zephyr-kernel Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 4/12] zephyr-image: Add image artifacts to output files Sandeep Gundlupet Raju
2025-08-13 3:13 ` [yocto-patches] " Lee, Chee Yang
2025-08-14 1:02 ` Gundlupet Raju, Sandeep
2025-08-16 2:32 ` Gundlupet Raju, Sandeep
2025-08-18 3:51 ` Lee, Chee Yang
2025-08-18 14:32 ` Gundlupet Raju, Sandeep [this message]
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 5/12] classes: Move classes to match bbclass scope functionality Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 6/12] zephyr-qemuboot: Use image artifact file in qemuimage Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 7/12] zephyr-kernel: Add Zephyr LTS3.7.0 support Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 8/12] meta-zephyr: Update README files Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 9/12] zephyr-kernel: Use relative path Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 10/12] classes-recipe: Convert zephyr-sample inc file to bbclass Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 11/12] zephyr-kernel: Add rpmsg multi services recipe Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 12/12] zephyr-kernel-common: Add Board extension support Sandeep Gundlupet Raju
2025-08-13 3:05 ` [meta-zephyr] RE: [scarthgap][PATCH v5 0/12] Lee, Chee Yang
2025-08-13 17:40 ` [yocto-patches] " Gundlupet Raju, Sandeep
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a2dbebfc-8ca8-4290-a405-ece0cea3bb45@amd.com \
--to=sandeep.gundlupet-raju@amd.com \
--cc=yocto-patches@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.