]> code.ossystems Code Review - openembedded-core.git/commit
classes: add devupstream class
authorRoss Burton <ross.burton@intel.com>
Fri, 11 Nov 2016 17:51:17 +0000 (17:51 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 11 Mar 2017 16:08:48 +0000 (16:08 +0000)
commitc48ef2d7c7198232846f36a975c673cc57f4a090
tree7c9f238e78cff3bdf5b7fc27cb9caeaafe2506c7
parentfa764a403da34bb0ca9fa3767a9e9dba8d685965
classes: add devupstream class

This class lets you use BBCLASSEXTEND to add a variant of the recipe that
fetches from an alternative URI (such as git:) instead of a tarball.

For example:

 BBCLASSEXTEND = "devupstream:target"
 SRC_URI_class-devupstream = "git://git.example.com/example"
 SRCREV_class-devupstream = "abcd1234"

This variant will have DEFAULT_PREFERENCE set to -1 so it needs to be selected
to be used, and any development-specific tweaks can be done with the
class-devupstream override, for example:

 DEPENDS_append_class-devupstream = " gperf-native"

 do_configure_prepend_class-devupstream() {
    touch ${S}/README
 }

It currently only supports creating a development variant of the target recipe,
not native or nativesdk.  The BBCLASSEXTEND syntax (devupstream:target) was
chosen so that support for native and nativesdk can be added at a later date.

Support for other version control systems such as subversion is limited, as
bitbake's automatic fetch dependencies on for example subversion-native are not
generated.

[ YOCTO #10215 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/devupstream.bbclass [new file with mode: 0644]