The devupstream
class uses
BBCLASSEXTEND
to add a variant of the recipe that fetches from an alternative URI
(e.g. Git) instead of a tarball.
Following is an example:
BBCLASSEXTEND = "devupstream:target" SRC_URI_class-devupstream = "git://git.example.com/example" SRCREV_class-devupstream = "abcd1234"
Adding the above statements to your recipe creates a variant that has
DEFAULT_PREFERENCE
set to "-1".
Consequently, you need to select the variant of the recipe to use it.
Any development-specific adjustments can be done by using the
class-devupstream
override.
Here is an example:
DEPENDS_append_class-devupstream = " gperf-native" do_configure_prepend_class-devupstream() { touch ${S}/README }
The class currently only supports creating a development variant of
the target recipe, not native
or
nativesdk
variants.
The BBCLASSEXTEND
syntax
(i.e. devupstream:target
) provides support for
native
and nativesdk
variants.
Consequently, this functionality can be added in a future release.
Support for other version control systems such as Subversion is
limited due to BitBake's automatic fetch dependencies (e.g.
subversion-native
).