summaryrefslogtreecommitdiffstats
path: root/meta-ti-bsp/conf
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@konsulko.com>2023-07-06 19:31:22 +0000
committerRyan Eatmon <reatmon@ti.com>2023-09-25 09:58:09 -0500
commit811c87bbbd324d4f176332b9e5f7c3699310cb06 (patch)
tree48d0db8a4dd5344e4e009182f22d68997f30dc0d /meta-ti-bsp/conf
parent209e4e889833ec2299c8141fdbb72577ecde1a9b (diff)
downloadmeta-ti-811c87bbbd324d4f176332b9e5f7c3699310cb06.tar.gz
conf: switch k3r5 multiconfig to baremetal
There are couple of k3r5 components that need to be built for the target and they are self-contained and don't use glibc. Moreover, when building a cross-compile toolchain for k3r5, there's no need to build glibc and all its dependencies. While build-time speed up is nice, the main benefit comes when packaging a nativesdk toolchain for distribution, reducing the number of packages and the resulting size of the toolchain installer. To avoid potential namespace conflict in package feeds between nativesdk binary packages of Linux glibc and k3r5 baremetal toolchains, adjust the package suffix accordingly. This also requires a rather impactful change in the deployment structure, which affects CIs and user experience. By default different TCLIBC builds (e.g. glibc and baremetal in this case) are built in separate TMPDIRs to avoid conflicts, especially on the nativesdk side. Also the default config has DEPLOY_DIR residing under corresponding TMPDIR. Of course, this can be changed by local.conf or <distro>.conf, which meta-ti-bsp has no control over. Unlike multiconfig-image-packager example that can access deployed artifacts across multiconfigs to package in an image, we use wic and its IMAGE_BOOT_FILES list to package a final image. Unfortunately, wic cannot access deployed artifacts across multiconfigs in separate TMPDIRs, as it uses DEPLOY_DIR_IMAGE to collect the artifacts. To overcome this, we need to set up a "common" deploy directory for images and sdks produced by multiconfigs, which is located outside of TMPDIRs, set by TI_COMMON_DEPLOY variable that can be changed or adjusted by distros as needed. Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'meta-ti-bsp/conf')
-rw-r--r--meta-ti-bsp/conf/layer.conf4
-rw-r--r--meta-ti-bsp/conf/multiconfig/k3r5.conf4
2 files changed, 7 insertions, 1 deletions
diff --git a/meta-ti-bsp/conf/layer.conf b/meta-ti-bsp/conf/layer.conf
index ea6a12fa..68651b8d 100644
--- a/meta-ti-bsp/conf/layer.conf
+++ b/meta-ti-bsp/conf/layer.conf
@@ -27,3 +27,7 @@ SIGGEN_EXCLUDERECIPES_ABISAFE += " \
27" 27"
28 28
29HOSTTOOLS_NONFATAL += "truncate xxd comm" 29HOSTTOOLS_NONFATAL += "truncate xxd comm"
30
31TI_COMMON_DEPLOY ?= "${TOPDIR}/deploy-ti"
32DEPLOY_DIR_IMAGE:ti-soc = "${TI_COMMON_DEPLOY}/images/${MACHINE}"
33SDK_DEPLOY:ti-soc = "${TI_COMMON_DEPLOY}/sdk"
diff --git a/meta-ti-bsp/conf/multiconfig/k3r5.conf b/meta-ti-bsp/conf/multiconfig/k3r5.conf
index deb07210..04b9a746 100644
--- a/meta-ti-bsp/conf/multiconfig/k3r5.conf
+++ b/meta-ti-bsp/conf/multiconfig/k3r5.conf
@@ -1,5 +1,7 @@
1MAINMACHINE := "${MACHINE}" 1MAINMACHINE := "${MACHINE}"
2 2
3DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MAINMACHINE}" 3DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}"
4 4
5MACHINE:append = "-k3r5" 5MACHINE:append = "-k3r5"
6TCLIBC = "baremetal"
7SDKPKGSUFFIX = "k3r5-nativesdk"