From e67848f22b25fcb01b472007edf57b40227b18e7 Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Thu, 19 Nov 2020 10:23:52 -0500 Subject: Add AGL reference hardware feature 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 Change-Id: Idcf0b8cfe8eb3c5485663ee25519a9c445362829 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25619 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller --- meta-agl-bsp/conf/include/agl_refhw-h3.inc | 10 ++++++++++ templates/feature/agl-refhw-h3/50_bblayers.conf.inc | 3 +++ templates/feature/agl-refhw-h3/50_local.conf.inc | 2 ++ templates/feature/agl-refhw-h3/README_feature_agl-refhw-h3.md | 8 ++++++++ 4 files changed, 23 insertions(+) create mode 100644 meta-agl-bsp/conf/include/agl_refhw-h3.inc create mode 100644 templates/feature/agl-refhw-h3/50_bblayers.conf.inc create mode 100644 templates/feature/agl-refhw-h3/50_local.conf.inc create mode 100644 templates/feature/agl-refhw-h3/README_feature_agl-refhw-h3.md 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 index 000000000..ec7c112e0 --- /dev/null +++ b/meta-agl-bsp/conf/include/agl_refhw-h3.inc @@ -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 index 000000000..7aee6eac5 --- /dev/null +++ b/templates/feature/agl-refhw-h3/50_bblayers.conf.inc @@ -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 index 000000000..dc39dd52a --- /dev/null +++ b/templates/feature/agl-refhw-h3/50_local.conf.inc @@ -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 index 000000000..57720bef1 --- /dev/null +++ b/templates/feature/agl-refhw-h3/README_feature_agl-refhw-h3.md @@ -0,0 +1,8 @@ +--- +description: AGL H3-based reference hardware support +authors: Scott Murray +--- + +### Feature agl-refhw-h3 + +Enable support for AGL H3-based reference hardware. Should only be used with "h3ulcb" or "h3ulcb-nogfx" machine types. -- cgit 1.2.3-korg