Skip to content

Commit

Permalink
lmp/bb-config: add DISTRO_VERSION_EXTENDED
Browse files Browse the repository at this point in the history
This contain the extended version used on CI and with this new variable
we make it possible to override it when needed.

Signed-off-by: Jose Quaresma <[email protected]>
  • Loading branch information
quaresmajose committed Oct 25, 2023
1 parent afdffa2 commit 12abd92
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lmp/bb-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,16 @@ EOFEOF
fi

# Add build id H_BUILD to output files names
cat << 'EOFEOF' >> conf/local.conf
DISTRO_VERSION_EXTENDED ?= "-${H_BUILD}-${LMP_VERSION}"
EOFEOF
if [ "$CONF_VERSION" == "1" ]; then
cat << EOFEOF >> conf/local.conf
DISTRO_VERSION_append = "-\${H_BUILD}-\${LMP_VERSION}"
cat << 'EOFEOF' >> conf/local.conf
DISTRO_VERSION_append = "${DISTRO_VERSION_EXTENDED}"
EOFEOF
else
cat << EOFEOF >> conf/local.conf
DISTRO_VERSION:append = "-\${H_BUILD}-\${LMP_VERSION}"
cat << 'EOFEOF' >> conf/local.conf
DISTRO_VERSION:append = "${DISTRO_VERSION_EXTENDED}"
EOFEOF
fi

Expand Down

0 comments on commit 12abd92

Please sign in to comment.