Skip to content

Commit b7ec17c

Browse files
committed
umpf: output version infos to bitbake variables during format-patch
This sets PV to the exact umpf version. This is especially useful when using the series.inc together with the linux-yocto.bbclass version checking which expects PV to match the full kernel version. Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
1 parent ec64f74 commit b7ec17c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

umpf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,6 +1414,13 @@ format_patch_end() {
14141414
if ${NIX}; then
14151415
echo "]" >&${series_out}
14161416
fi
1417+
if ${BB}; then
1418+
local base_name="$(<"${STATE}/base-name")"
1419+
echo "UMPF_BASE = \"${base_name//v/}\"" >&${series_out}
1420+
echo "UMPF_VERSION = \"$(<"${STATE}/version")\"" >&${series_out}
1421+
echo "PV = \"\${UMPF_BASE}-\${UMPF_VERSION}\"" >&${series_out}
1422+
echo "LINUX_VERSION = \"\${UMPF_BASE}\"" >&${series_out}
1423+
fi
14171424
echo "$line" >&${series_out}
14181425
}
14191426

0 commit comments

Comments
 (0)