From c9f7d3e5d9217a5925a0da6878b2f2021512b071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20J=C3=B6rns?= Date: Wed, 24 Apr 2024 13:27:36 +0200 Subject: [PATCH] umpf: do not set PV in series.inc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since most recipes tend to use PV in their SRC_URI and we cannot set it as a default value ('?='), it is the safest way to not set it automatically from series.inc. Users who want to have UMPF_VERSION as part of the yocto package version can manually set PV to PV = "${UMPF_BASE}-${UMPF_VERSION} at an appropriate location within the recipe. Signed-off-by: Enrico Jörns --- umpf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/umpf b/umpf index 00bf715..76d46a4 100755 --- a/umpf +++ b/umpf @@ -1418,7 +1418,9 @@ format_patch_end() { local base_name="$(<"${STATE}/base-name")" echo "UMPF_BASE = \"${base_name//v/}\"" >&${series_out} echo "UMPF_VERSION = \"$(<"${STATE}/version")\"" >&${series_out} - echo "PV = \"\${UMPF_BASE}-\${UMPF_VERSION}\"" >&${series_out} + echo "# To have UMPF_VERSION as part of the package version" >&${series_out} + echo "# you can manually set in you recipe:" >&${series_out} + echo "# PV = \"\${UMPF_BASE}-\${UMPF_VERSION}\"" >&${series_out} if [ "$(head -n 1 README 2>/dev/null)" = "Linux kernel" ]; then echo "LINUX_VERSION = \"\${UMPF_BASE}\"" >&${series_out} fi