diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-05-13 23:58:58 +0100 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-05-20 22:34:17 +0100 |
commit | 1786b04aa2fde02e0b1db4dcd2ff7be54381e8ce (patch) | |
tree | ba88dc80edd9c2f2614053065b46794878131ea8 /classes/opie_git.bbclass | |
parent | a4791297c8f8ee265337beb3678e5411cabaddf1 (diff) | |
download | meta-opie-1786b04aa2fde02e0b1db4dcd2ff7be54381e8ce.tar.gz |
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 <paul.eggleton@linux.intel.com>
Diffstat (limited to 'classes/opie_git.bbclass')
-rw-r--r-- | classes/opie_git.bbclass | 12 |
1 files changed, 12 insertions, 0 deletions
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" + |