Add initial j7-evm machine support 79/26379/3
authorScott Murray <scott.murray@konsulko.com>
Sun, 30 May 2021 21:01:47 +0000 (17:01 -0400)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tue, 1 Jun 2021 08:38:04 +0000 (08:38 +0000)
Add template and inc file for requested j7-evm machine.

Notes:
- The various images have been test built, including the
  agl-demo-platform image.  No runtime testing has been done due to
  lack of hardware.
- The proprietary SGX graphics support has not been enabled.  This
  is due to both being unable to test, and it being unclear if it
  is required given the telematics usecases mentioned with respect
  to the hardware.
- The shared TMPDIR for the non-optional multiconfig for building
  the bootloader has been shifted to a split one, as failures were
  reproducibly being seen when using the rm_work bbclass, and in
  general the community recommendation is to not share them.  This
  does mean that cleaning up a build tree requires removing the
  tmp-k3r5 directory in addition to tmp.

Bug-AGL: SPEC-3928

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I5c4e325b0b709b6571946475bf128bc25b171f6e
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/26379
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 <jsmoeller@linuxfoundation.org>
meta-agl-bsp/conf/include/agl_j7-evm.inc [new file with mode: 0644]
templates/machine/j7-evm/50_bblayers.conf.inc [new file with mode: 0644]
templates/machine/j7-evm/50_local.conf.inc [new file with mode: 0644]
templates/machine/j7-evm/README_machine_j7-evm.md [new file with mode: 0644]

diff --git a/meta-agl-bsp/conf/include/agl_j7-evm.inc b/meta-agl-bsp/conf/include/agl_j7-evm.inc
new file mode 100644 (file)
index 0000000..d6f3c6d
--- /dev/null
@@ -0,0 +1,15 @@
+# j7-evm has a k3r5 BBMULTICONFIG to build its bootloader firmware,
+# need to use an override to set DEFAULTTUNE back to what that
+# machine configuration needs.
+DEFAULTTUNE_k3r5 = "armv7athf"
+
+# Force using a separate TMPDIR for the multiconfig to avoid
+# issues (e.g. using the rm_work class currently fails with the
+# single shared TMPDIR).
+TMPDIR_k3r5 = "${TOPDIR}/tmp-${BB_CURRENT_MC}"
+# But we then also need to redefine DEPLOY_DIR for it to match
+# the existing expectations (pointing into the default config)
+DEPLOY_DIR_k3r5 = "${TOPDIR}/tmp/deploy"
+
+# Workaround for recipe assumption of poky location
+LIC_FILES_CHKSUM_pn-ti-rtos-firmware = "file://${THISDIR}/../../licenses/TI-TFL;md5=a1b59cb7ba626b9dbbcbf00f3fbc438a"
diff --git a/templates/machine/j7-evm/50_bblayers.conf.inc b/templates/machine/j7-evm/50_bblayers.conf.inc
new file mode 100644 (file)
index 0000000..6152217
--- /dev/null
@@ -0,0 +1,5 @@
+BBLAYERS =+ "\
+    ${METADIR}/bsp/meta-arm/meta-arm \
+    ${METADIR}/bsp/meta-arm/meta-arm-toolchain \
+    ${METADIR}/bsp/meta-ti \
+    "
diff --git a/templates/machine/j7-evm/50_local.conf.inc b/templates/machine/j7-evm/50_local.conf.inc
new file mode 100644 (file)
index 0000000..1a81cb7
--- /dev/null
@@ -0,0 +1,3 @@
+MACHINE = "j7-evm"
+#see meta-agl/meta-agl-bsp/conf/include/agl_j7-evm.inc
+require conf/include/agl_j7-evm.inc
diff --git a/templates/machine/j7-evm/README_machine_j7-evm.md b/templates/machine/j7-evm/README_machine_j7-evm.md
new file mode 100644 (file)
index 0000000..f1441a3
--- /dev/null
@@ -0,0 +1,9 @@
+---
+description: Machine j7-evm
+authors: Scott Murray <scott.murray@konsulko.com>
+---
+
+### Machine j7-evm
+
+*Description is missing - please complete file meta-agl/templates/machine/dra7xx-evm/README_machine_j7-evm.md*
+