diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2022-09-12 17:08:02 -0700 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2022-09-12 17:08:02 -0700 |
| commit | e859586f3432f9ef5f4c2930cd2821a0075868e8 (patch) | |
| tree | a0dc9e2a854d3c1222233504d22999a0b39d2928 | |
| parent | c350c58a84391ed52a370010b2edf9853d67cf64 (diff) | |
| download | meta-xilinx-e859586f3432f9ef5f4c2930cd2821a0075868e8.tar.gz | |
various: Use recipe version instead of XILINX_RELEASE_VERSION in PV
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
3 files changed, 5 insertions, 7 deletions
diff --git a/meta-xilinx-core/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc b/meta-xilinx-core/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc index a45b5ce5..bbbeb507 100644 --- a/meta-xilinx-core/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc +++ b/meta-xilinx-core/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc | |||
| @@ -14,9 +14,8 @@ B = "${WORKDIR}/build" | |||
| 14 | 14 | ||
| 15 | SYSROOT_DIRS += "/boot" | 15 | SYSROOT_DIRS += "/boot" |
| 16 | 16 | ||
| 17 | XILINX_RELEASE_VERSION ?= "" | ||
| 18 | ATF_VERSION ?= "2.2" | 17 | ATF_VERSION ?= "2.2" |
| 19 | ATF_VERSION_EXTENSION ?= "-xilinx-${XILINX_RELEASE_VERSION}" | 18 | ATF_VERSION_EXTENSION ?= "-xilinx-v${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1] or ''}" |
| 20 | PV = "${ATF_VERSION}${ATF_VERSION_EXTENSION}+git${SRCPV}" | 19 | PV = "${ATF_VERSION}${ATF_VERSION_EXTENSION}+git${SRCPV}" |
| 21 | 20 | ||
| 22 | BRANCH ?= "" | 21 | BRANCH ?= "" |
diff --git a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc index 5a9a0868..8971d58f 100644 --- a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc +++ b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc | |||
| @@ -2,8 +2,8 @@ require recipes-bsp/u-boot/u-boot.inc | |||
| 2 | 2 | ||
| 3 | DEPENDS += "bc-native dtc-native bison-native xxd-native" | 3 | DEPENDS += "bc-native dtc-native bison-native xxd-native" |
| 4 | 4 | ||
| 5 | XILINX_RELEASE_VERSION ?= "" | 5 | # Use the name of the .bb for the extension |
| 6 | UBOOT_VERSION_EXTENSION ?= "-xilinx-${XILINX_RELEASE_VERSION}" | 6 | UBOOT_VERSION_EXTENSION ?= "-xilinx-v${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1] or ''}" |
| 7 | PV = "${UBOOT_VERSION}${UBOOT_VERSION_EXTENSION}+git${SRCPV}" | 7 | PV = "${UBOOT_VERSION}${UBOOT_VERSION_EXTENSION}+git${SRCPV}" |
| 8 | 8 | ||
| 9 | UBOOTURI ?= "git://github.com/Xilinx/u-boot-xlnx.git;protocol=https" | 9 | UBOOTURI ?= "git://github.com/Xilinx/u-boot-xlnx.git;protocol=https" |
diff --git a/meta-xilinx-core/recipes-kernel/linux/linux-xlnx.inc b/meta-xilinx-core/recipes-kernel/linux/linux-xlnx.inc index 08755b26..2edebe8e 100644 --- a/meta-xilinx-core/recipes-kernel/linux/linux-xlnx.inc +++ b/meta-xilinx-core/recipes-kernel/linux/linux-xlnx.inc | |||
| @@ -1,13 +1,12 @@ | |||
| 1 | # This version extension should match CONFIG_LOCALVERSION in defconfig | 1 | # This version extension should match CONFIG_LOCALVERSION in defconfig |
| 2 | XILINX_RELEASE_VERSION ?= "" | 2 | LINUX_VERSION_EXTENSION ?= "-xilinx-v${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1] or ''}" |
| 3 | LINUX_VERSION_EXTENSION ?= "-xilinx-${XILINX_RELEASE_VERSION}" | ||
| 4 | PV = "${LINUX_VERSION}+git${SRCPV}" | 3 | PV = "${LINUX_VERSION}+git${SRCPV}" |
| 5 | 4 | ||
| 6 | # Sources, by default allow for the use of SRCREV pointing to orphaned tags/commits | 5 | # Sources, by default allow for the use of SRCREV pointing to orphaned tags/commits |
| 7 | KBRANCH ?= "xlnx_rebase_v5.15_LTS" | 6 | KBRANCH ?= "xlnx_rebase_v5.15_LTS" |
| 8 | SRCBRANCHARG = "${@['nobranch=1', 'branch=${KBRANCH}'][d.getVar('KBRANCH', True) != '']}" | 7 | SRCBRANCHARG = "${@['nobranch=1', 'branch=${KBRANCH}'][d.getVar('KBRANCH', True) != '']}" |
| 9 | 8 | ||
| 10 | FILESOVERRIDES:append = ":${XILINX_RELEASE_VERSION}" | 9 | FILESOVERRIDES:append := ":${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1] or ''}" |
| 11 | KERNELURI ?= "git://github.com/Xilinx/linux-xlnx.git;protocol=https;name=machine" | 10 | KERNELURI ?= "git://github.com/Xilinx/linux-xlnx.git;protocol=https;name=machine" |
| 12 | YOCTO_META ?= "git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.15;destsuffix=yocto-kmeta" | 11 | YOCTO_META ?= "git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.15;destsuffix=yocto-kmeta" |
| 13 | SRC_URI = "${KERNELURI};${SRCBRANCHARG} ${YOCTO_META}" | 12 | SRC_URI = "${KERNELURI};${SRCBRANCHARG} ${YOCTO_META}" |
