Skip to content

Commit

Permalink
umpf: do not set PV in series.inc
Browse files Browse the repository at this point in the history
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 <ejo@pengutronix.de>
  • Loading branch information
ejoerns committed Apr 24, 2024
1 parent 48d63ec commit c9f7d3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion umpf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c9f7d3e

Please sign in to comment.