From 95b373b7ebc308c66465ae091f3a1bf6e33dec8d Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Wed, 14 Nov 2018 11:07:12 -0800 Subject: ref-manual: Added description for devupstream.bbclass New section added. Fixes [YOCTO #12732] (From yocto-docs rev: e0c4006614cca76f07782c8273f4c8cba5394220) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-classes.xml | 48 ++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 'documentation') diff --git a/documentation/ref-manual/ref-classes.xml b/documentation/ref-manual/ref-classes.xml index aef58203bb..a6e5ed6d4d 100644 --- a/documentation/ref-manual/ref-classes.xml +++ b/documentation/ref-manual/ref-classes.xml @@ -645,6 +645,54 @@ +
+ <filename>devupstream.bbclass</filename> + + + 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). + +
+
<filename>distro_features_check.bbclass</filename> -- cgit v1.2.3-54-g00ecf