Move feature code into the meta recipes
[AGL/meta-agl.git] / meta-agl-bsp / conf / include / agl_porter-nogfx.inc
diff --git a/meta-agl-bsp/conf/include/agl_porter-nogfx.inc b/meta-agl-bsp/conf/include/agl_porter-nogfx.inc
new file mode 100644 (file)
index 0000000..6bc5171
--- /dev/null
@@ -0,0 +1,28 @@
+MACHINE = "porter"
+
+# For Bluetooth hardware support
+BT_KERNEL_MODULES = " \
+    kernel-module-btusb \
+    kernel-module-bnep \
+    kernel-module-rfcomm \
+    kernel-module-rfkill \
+    "
+
+# Distribution-specific runtime components
+IMAGE_INSTALL_append = " \
+    ${@bb.utils.contains("DISTRO_FEATURES", "bluetooth", "${BT_KERNEL_MODULES}", "", d)} \
+    "
+
+# Setting for u-boot Wayland
+UBOOT_MACHINE = "porter_vin_config"
+
+PREFERRED_PROVIDER_virtual/libgles2 = "mesa"
+PREFERRED_PROVIDER_virtual/egl = "mesa"
+
+# Commit united image to OSTree, not just uImage
+OSTREE_KERNEL = "uImage+dtb"
+
+# OTA-enabled live image
+IMAGE_CLASSES_append_sota = " image_types_uboot sdcard_image-porter-ota"
+IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'agl-ota', 'porter-sdimg-ota  ', '', d)}"
+