aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2023-02-13 18:43:30 -0500
committerScott Murray <scott.murray@konsulko.com>2023-02-13 18:43:30 -0500
commite66169bcd02c5637741d759792f5f999083ab28a (patch)
treedf4f46c84cbe93f973e5df78b3f8b09debb24f69
parent706e6fe1bcbdb6bc55558ccf4922673474754649 (diff)
agl-ic-container: Fix host configuration when using agl-demo
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>
-rw-r--r--meta-agl-ic-container/conf/include/agl-ic-container.inc10
-rw-r--r--meta-agl-ic-container/conf/include/mc-conf-default.inc2
-rw-r--r--templates/feature/agl-ic-container/50_local.conf.inc10
3 files changed, 14 insertions, 8 deletions
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
index 00000000..f7f02bbd
--- /dev/null
+++ b/meta-agl-ic-container/conf/include/agl-ic-container.inc
@@ -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
index 00000000..1d3022e4
--- /dev/null
+++ b/meta-agl-ic-container/conf/include/mc-conf-default.inc
@@ -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"
diff --git a/templates/feature/agl-ic-container/50_local.conf.inc b/templates/feature/agl-ic-container/50_local.conf.inc
index dce87a49..4bca5cbd 100644
--- a/templates/feature/agl-ic-container/50_local.conf.inc
+++ b/templates/feature/agl-ic-container/50_local.conf.inc
@@ -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