Skip to content

Commit 173c269

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 173c269

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

tests/series-format-patch-bb.ref

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@ SRC_URI += "\
1313
SRC_URI += "\
1414
file://patches/0101-b1.patch \
1515
"
16+
UMPF_BASE = "base"
17+
UMPF_VERSION = "20221209-1"
18+
PV = "${UMPF_BASE}-${UMPF_VERSION}"
19+
LINUX_VERSION = "${UMPF_BASE}"
1620
# umpf-end

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)