mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-27 20:40:34 -09:00
boot/arm-trusted-firmware: correct cpe-id version logic
Commit53bb7eafb2("package/arm-trusted-firmware: add ARM_TRUSTED_FIRMWARE_CPE_ID_*") added logic to set the cpe-id version from the package version by dropping a v or lts- prefix, but it used subst instead of patsubst - So it would replace "v" and "lts-" anywhere in the version and not only in the beginning of it. Change to patsubst to fix that. E.G. with the following defconfig: BR2_aarch64=y BR2_TARGET_ARM_TRUSTED_FIRMWARE=y BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION=y BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="version-with-v-or-lts-in-it" before: make printvars VARS=ARM_TRUSTED_FIRMWARE_CPE_ID_VERSION ARM_TRUSTED_FIRMWARE_CPE_ID_VERSION=ersion-with--or-in-it after: make printvars VARS=ARM_TRUSTED_FIRMWARE_CPE_ID_VERSION ARM_TRUSTED_FIRMWARE_CPE_ID_VERSION=ersion-with-v-or-lts-in-it Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Arnout Vandecappelle <arnout@rnout.be> (cherry picked from commite60515bbf5) Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
ae4fbfb35c
commit
0ccaae2662
@@ -8,7 +8,7 @@ ARM_TRUSTED_FIRMWARE_VERSION = $(call qstrip,$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_V
|
||||
ARM_TRUSTED_FIRMWARE_CPE_ID_PREFIX = cpe:2.3:o
|
||||
ARM_TRUSTED_FIRMWARE_CPE_ID_VENDOR = arm
|
||||
ARM_TRUSTED_FIRMWARE_CPE_ID_PRODUCT = trusted_firmware-a
|
||||
ARM_TRUSTED_FIRMWARE_CPE_ID_VERSION = $(subst v,,$(subst lts-,,$(ARM_TRUSTED_FIRMWARE_VERSION)))
|
||||
ARM_TRUSTED_FIRMWARE_CPE_ID_VERSION = $(patsubst v%,%,$(patsubst lts-%,%,$(ARM_TRUSTED_FIRMWARE_VERSION)))
|
||||
|
||||
ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL),y)
|
||||
# Handle custom ATF tarballs as specified by the configuration
|
||||
|
||||
Reference in New Issue
Block a user