agl-ic-container: Fix host configuration when using agl-demo 76/28476/1
authorScott Murray <scott.murray@konsulko.com>
Mon, 13 Feb 2023 23:43:30 +0000 (18:43 -0500)
committerScott Murray <scott.murray@konsulko.com>
Mon, 13 Feb 2023 23:43:30 +0000 (18:43 -0500)
Changes:
- Switch to pulling in a agl-ic-container.inc include file from the
  feature local.conf.inc template to simplify development.
- Add include files for the host ("default" in BitBake) multiconfig
  to allow disabling agl-demo and related features in the host build.
  This reduces the impact on the host image when using the images
  from meta-agl-demo as guest containers.  At present the
  "agl-selinux" feature is left alone, as support pretty much needs
  to be present in the host to allow using it at all.  This likely
  needs to be investigated further and discussed with respect to the
  IC EG requirements.

Bug-AGL: SPEC-4703

Change-Id: I833fa8754f0044552a8b775bcc06c4ccd3fcac3e
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
meta-agl-ic-container/conf/include/agl-ic-container.inc [new file with mode: 0644]
meta-agl-ic-container/conf/include/mc-conf-default.inc [new file with mode: 0644]
templates/feature/agl-ic-container/50_local.conf.inc

diff --git a/meta-agl-ic-container/conf/include/agl-ic-container.inc b/meta-agl-ic-container/conf/include/agl-ic-container.inc
new file mode 100644 (file)
index 0000000..f7f02bb
--- /dev/null
@@ -0,0 +1,10 @@
+BBMULTICONFIG = "agl-container-cluster agl-container-ivi"
+
+# The meta-virtualization has a sanity-meta-virt check.
+# This checker check 'DISTRO_FEATURES has virtualization', but 
+# in case of linux container is not necessary to the 'virtualization'.
+# This should be revisited when upgrading past dunfell, as less of 
+# the extra configuration may be enabled in the future.
+INHERIT:remove = "sanity-meta-virt"
+
+include mc-conf-${BB_CURRENT_MC}.inc
diff --git a/meta-agl-ic-container/conf/include/mc-conf-default.inc b/meta-agl-ic-container/conf/include/mc-conf-default.inc
new file mode 100644 (file)
index 0000000..1d3022e
--- /dev/null
@@ -0,0 +1,2 @@
+# We don't want the app framework or demo bits in the host image.
+AGL_FEATURES:remove = "agl-app-fw agldemo agl-flutter"
index dce87a4..4bca5cb 100644 (file)
@@ -1,8 +1,2 @@
-BBMULTICONFIG = "agl-container-cluster agl-container-ivi"
-
-# The meta-virtualization has a sanity-meta-virt check.
-# This checker check 'DISTRO_FEATURES has virtualization', but 
-# in case of linux container is not necessary to the 'virtualization'.
-# This should be revisited when upgrading past dunfell, as less of 
-# the extra configuration may be enabled in the future.
-INHERIT:remove = "sanity-meta-virt"
+#see meta-agl-devel/meta-agl-ic-container/conf/include/agl-ic-container.inc
+require conf/include/agl-ic-container.inc