Skip to content

Commit

Permalink
Merge pull request #38 from ejoerns/bb-pv
Browse files Browse the repository at this point in the history
umpf: output version infos to bitbake variables during format-patch
  • Loading branch information
michaelolbrich authored Mar 7, 2024
2 parents ec64f74 + 8d0d4cc commit 48d63ec
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/series-format-patch-bb.ref
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ SRC_URI += "\
SRC_URI += "\
file://patches/0101-b1.patch \
"
UMPF_BASE = "base"
UMPF_VERSION = "20221209-1"
PV = "${UMPF_BASE}-${UMPF_VERSION}"
# umpf-end
9 changes: 9 additions & 0 deletions umpf
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,15 @@ format_patch_end() {
if ${NIX}; then
echo "]" >&${series_out}
fi
if ${BB}; then
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}
if [ "$(head -n 1 README 2>/dev/null)" = "Linux kernel" ]; then
echo "LINUX_VERSION = \"\${UMPF_BASE}\"" >&${series_out}
fi
fi
echo "$line" >&${series_out}
}
Expand Down

0 comments on commit 48d63ec

Please sign in to comment.