zephyr-kernel-src.inc.jinja: Update script to generate srcrev

Update script to generate correct SRCREV and other info to match
poky variable updates.

Also use "version" instead of "short_version" for SRC_URI_PATCHES.

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
This commit is contained in:
Sandeep Gundlupet Raju
2025-08-14 21:54:38 -06:00
committed by Lee Chee Yang
parent 9d250a4df2
commit 20fdef3ce3

View File

@@ -13,13 +13,13 @@ SRC_URI_ZEPHYR_{{ project.name | bitbake_var }} ?= "{{ project.url | git_url_to_
{%- endfor %}
SRC_URI_PATCHES ?= "\
file://0001-{{ short_version }}-x86-fix-efi-binary-generation-issue-in-cross-compila.patch;patchdir=zephyr \
file://0001-v{{ version }}-x86-fix-efi-binary-generation-issue-in-cross-compila.patch;patchdir=zephyr \
"
SRC_URI = "\
${SRC_URI_ZEPHYR};branch=${ZEPHYR_BRANCH};name=default;destsuffix=git/zephyr \
${SRC_URI_ZEPHYR};branch=${ZEPHYR_BRANCH};name=default;destsuffix=${P}/zephyr \
{%- for project in projects %}
${SRC_URI_ZEPHYR_{{ project.name | bitbake_var }}};name={{ project.name }};nobranch=1;destsuffix=git/{{ project.path }} \
${SRC_URI_ZEPHYR_{{ project.name | bitbake_var }}};name={{ project.name }};nobranch=1;destsuffix=${P}/{{ project.path }} \
{%- endfor %}
${SRC_URI_PATCHES} \
"