From: Denys Dmytriyenko <[email protected]>

* For cases when products based on Arago Core TI-SDK need to select different
  providers or versions of packages. For example, AM-SDK needs to stay on the
  stable kernel 3.2, while Core TI-SDK is moving to the new kernel 3.8.
* Adding new branding policies requires creating a new branding-<name>.inc file
  and setting ARAGO_BRAND=<name> in the local.conf

Signed-off-by: Denys Dmytriyenko <[email protected]>
---
 meta-arago-distro/conf/distro/arago.conf                | 7 +++++++
 meta-arago-distro/conf/distro/include/branding-core.inc | 6 ++++++
 2 files changed, 13 insertions(+)
 create mode 100644 meta-arago-distro/conf/distro/include/branding-core.inc

diff --git a/meta-arago-distro/conf/distro/arago.conf 
b/meta-arago-distro/conf/distro/arago.conf
index 58e199a..3b07cda 100644
--- a/meta-arago-distro/conf/distro/arago.conf
+++ b/meta-arago-distro/conf/distro/arago.conf
@@ -33,8 +33,15 @@ EXTERNAL_TOOLCHAIN = "${TOOLCHAIN_PATH}"
 # Enable basic stack and buffer overflow protections
 TARGET_CPPFLAGS += "-fstack-protector -D_FORTIFY_SOURCE=1"
 
+# Load default preferences
 require conf/distro/include/arago-prefs.inc
 
+# Allow branding on top of Arago Distro and Core TI-SDK
+# If ARAGO_BRAND is not set in local.conf, default to core
+ARAGO_BRAND ??= "core"
+
+require conf/distro/include/branding-${ARAGO_BRAND}.inc
+
 # Disable polkit's systemd configuration from meta-oe
 POLKITAUTH = ""
 
diff --git a/meta-arago-distro/conf/distro/include/branding-core.inc 
b/meta-arago-distro/conf/distro/include/branding-core.inc
new file mode 100644
index 0000000..b1ae89b
--- /dev/null
+++ b/meta-arago-distro/conf/distro/include/branding-core.inc
@@ -0,0 +1,6 @@
+# Set extra preferences based on the product branding (AM-SDK, MC-SDK, etc)
+# Examples could be different PREFERRED_PROVIDER or PREFERRED_VERSION
+# As well as some other configurable aspects or variables
+# Please avoid creating multiple versions of the same brand, if possible
+# The policy is for the "Core" brand to be the default,
+# hence this file is mostly empty and used as a template
-- 
1.8.1.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to