From 1786b04aa2fde02e0b1db4dcd2ff7be54381e8ce Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Sun, 13 May 2012 23:58:58 +0100 Subject: Fix Opie Git recipes to use SRCPV Using SRCPV we get e.g. 1.2.5+git1+... and the number will increment when OPIE_SRCREV changes, ensuring that the version number doesn't go backwards (although it will once for this change if you have existing packages beforehand, unfortunately). Signed-off-by: Paul Eggleton --- classes/opie_git.bbclass | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 classes/opie_git.bbclass (limited to 'classes') diff --git a/classes/opie_git.bbclass b/classes/opie_git.bbclass new file mode 100644 index 0000000..d705555 --- /dev/null +++ b/classes/opie_git.bbclass @@ -0,0 +1,12 @@ +# Class for Opie git recipes to ensure they get the correct PV +# Relies on OPIE_GIT_PV and OPIE_SRCREV being set (see +# conf/distro/include/preferred-opie-git-versions.inc) + +# Note: you will need to ensure the first entry in SRC_URI pointing +# to the Opie git repository has name=first + +PV = "${OPIE_GIT_PV}${SRCPV}" + +SRCREV = "${OPIE_SRCREV}" +SRCREV_FORMAT = "first" + -- cgit 1.2.3-korg