aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-agl/conf/include/agl-devel.inc4
-rw-r--r--templates/feature/agl-devel/agl-devel.md40
2 files changed, 44 insertions, 0 deletions
diff --git a/meta-agl/conf/include/agl-devel.inc b/meta-agl/conf/include/agl-devel.inc
index f4cba6966..9610fd8fd 100644
--- a/meta-agl/conf/include/agl-devel.inc
+++ b/meta-agl/conf/include/agl-devel.inc
@@ -7,3 +7,7 @@ IMAGE_INSTALL_append = " \
# disable install of debug files in SDK
# initial value: SDKIMAGE_FEATURES="dev-pkgs dbg-pkgs staticdev-pkgs"
SDKIMAGE_FEATURES="dev-pkgs"
+
+# allows insertion of code or items specific to developement
+OVERRIDES .= ":agl-devel"
+DISTRO_FEATURES_append = " agl-devel"
diff --git a/templates/feature/agl-devel/agl-devel.md b/templates/feature/agl-devel/agl-devel.md
new file mode 100644
index 000000000..85a2b9177
--- /dev/null
+++ b/templates/feature/agl-devel/agl-devel.md
@@ -0,0 +1,40 @@
+The features of agl-devel
+=========================
+
+Activation of the agl-devel features turns on
+features needed for developping and debugging
+agl distribution.
+
+This includes:
+
+ - adding to images some useful packages
+
+ - adding to images the package group 'packagegroup-agl-devel'
+
+ - definition of a contionnal the tag 'agl-devel'
+ for conditionnal building
+
+ - definition of the distro feature 'agl-devel'
+
+ - adds packages for development in SDK
+
+
+How to use agl-devel in conditionnal builds ?
+---------------------------------------------
+
+The following example shows how to activate C/C++ code
+specific to agl-devel:
+
+ CPPFLAGS_append_agl-devel = " -DAGL_DEVEL"
+
+Using this, any code enclosed in
+
+ #ifdef AGL_DEVEL
+ ...my code specific to agl-devel...
+ #endif
+
+will normaly be effective only if agl-devel is set on.
+
+At this time, it is recommended to use AGL_DEVEL as tag
+within C/C++ code.
+