Add AGL reference hardware feature 19/25619/2
authorScott Murray <scott.murray@konsulko.com>
Thu, 19 Nov 2020 15:23:52 +0000 (10:23 -0500)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Wed, 25 Nov 2020 16:27:14 +0000 (16:27 +0000)
Add a feature template to enable AGL H3-based reference hardware
support.  A feature is used as opposed to a new machine in order to
meet the requirements that:
* the reference hardware be bootable with a h3ulcb machine image to
  avoid expanding the CI test matrix
* the reference hardware support be optional to not hinder Renesas
  BSP maintenance for the h3ulcb / h3ulcb-kf base machines

If the required kernel changes for the reference hardware get
upstreamed and eventually become available via the Renesas BSP this
can be revisited, as the reference hardware support could then likely
be reduced to just building the extra devicetree file(s).

Bug-AGL: SPEC-3658

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Idcf0b8cfe8eb3c5485663ee25519a9c445362829
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25619
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
meta-agl-bsp/conf/include/agl_refhw-h3.inc [new file with mode: 0644]
templates/feature/agl-refhw-h3/50_bblayers.conf.inc [new file with mode: 0644]
templates/feature/agl-refhw-h3/50_local.conf.inc [new file with mode: 0644]
templates/feature/agl-refhw-h3/README_feature_agl-refhw-h3.md [new file with mode: 0644]

diff --git a/meta-agl-bsp/conf/include/agl_refhw-h3.inc b/meta-agl-bsp/conf/include/agl_refhw-h3.inc
new file mode 100644 (file)
index 0000000..ec7c112
--- /dev/null
@@ -0,0 +1,10 @@
+MACHINEOVERRIDES_append = ":agl-refhw-h3"
+
+# Reference hardware has USB3
+MACHINE_FEATURES_append = " usb3"
+
+KERNEL_DEVICETREE_append = " renesas/r8a7795-agl-refhw.dtb"
+
+# Disable the meta-agl-refhw-gen3 arm-trusted-firmware bbappend as
+# it makes the firmware reference hardware specific.
+BBMASK = "meta-agl-refhw-gen3/recipes-bsp/arm-trusted-firmware"
diff --git a/templates/feature/agl-refhw-h3/50_bblayers.conf.inc b/templates/feature/agl-refhw-h3/50_bblayers.conf.inc
new file mode 100644 (file)
index 0000000..7aee6ea
--- /dev/null
@@ -0,0 +1,3 @@
+BBLAYERS =+ "\
+  ${METADIR}/bsp/meta-agl-refhw/meta-agl-refhw-gen3 \
+  "
diff --git a/templates/feature/agl-refhw-h3/50_local.conf.inc b/templates/feature/agl-refhw-h3/50_local.conf.inc
new file mode 100644 (file)
index 0000000..dc39dd5
--- /dev/null
@@ -0,0 +1,2 @@
+#see meta-agl/meta-agl-bsp/conf/include/agl_refhw-h3.inc
+require conf/include/agl_refhw-h3.inc
diff --git a/templates/feature/agl-refhw-h3/README_feature_agl-refhw-h3.md b/templates/feature/agl-refhw-h3/README_feature_agl-refhw-h3.md
new file mode 100644 (file)
index 0000000..57720be
--- /dev/null
@@ -0,0 +1,8 @@
+---
+description: AGL H3-based reference hardware support
+authors: Scott Murray <scott.murray@konsulko.com>
+---
+
+### Feature agl-refhw-h3
+
+Enable support for AGL H3-based reference hardware.  Should only be used with "h3ulcb" or "h3ulcb-nogfx" machine types.