Skip to contentSkip to conversation

conf: switch k3r5 multiconfig to baremetal

PATCH In review Denys Dmytriyenko 3 participants 8 messages Jul 6, 2023 – Jul 7, 2023 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 conf: switch k3r5 multiconfig to baremetal

From: Denys Dmytriyenko <[email protected]>

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.

---
 meta-ti-bsp/conf/layer.conf            | 4 ++++
 meta-ti-bsp/conf/multiconfig/k3r5.conf | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)
meta-ti-bsp/conf/layer.conf +4 -0
index bb286c2b..db6f9de9 100644
@@ -23,3 +23,7 @@ SIGGEN_EXCLUDERECIPES_ABISAFE += " \
 "
 
 HOSTTOOLS_NONFATAL += "truncate xxd comm"
+
+TI_COMMON_DEPLOY ?= "${TOPDIR}/deploy-ti"
+DEPLOY_DIR_IMAGE:ti-soc = "${TI_COMMON_DEPLOY}/images/${MACHINE}"
+SDK_DEPLOY:ti-soc = "${TI_COMMON_DEPLOY}/sdk"
meta-ti-bsp/conf/multiconfig/k3r5.conf +3 -1
index deb07210..04b9a746 100644
@@ -1,5 +1,7 @@
 MAINMACHINE := "${MACHINE}"
 
-DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MAINMACHINE}"
+DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}"
 
 MACHINE:append = "-k3r5"
+TCLIBC = "baremetal"
+SDKPKGSUFFIX = "k3r5-nativesdk"
Signature · 1 line
2.25.1

A message that is not in the archive (sent off-list or not yet received): CANPvuRkq3qONAsF6ar3ngGd4KEJ_uZ+8u8ZvuDKCQZKmnh3Ljw@mail.gmail.com

#2 lore raw

PATCH 1/1 conf: switch k3r5 multiconfig to baremetal

Foreword to the mailing list.

---------- Forwarded message ---------
De: Jose Quaresma <[email protected]>
Date: sexta, 7/07/2023 à(s) 10:51
Subject: Re: [meta-ti] [master/kirkstone][PATCH] conf: switch k3r5 multiconfig to baremetal
To: Denys Dmytriyenko <[email protected]>

Hi Denys,

Thanks for doing that, I will do some tests with this on kirstone.

Denys Dmytriyenko <[email protected]> escreveu no dia quinta, 6/07/2023 à(s) 20:31:

Quoted 52 lines

From: Denys Dmytriyenko <[email protected]>

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.

---
 meta-ti-bsp/conf/layer.conf            | 4 ++++
 meta-ti-bsp/conf/multiconfig/k3r5.conf | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)
meta-ti-bsp/conf/layer.conf +4 -0
index bb286c2b..db6f9de9 100644
@@ -23,3 +23,7 @@ SIGGEN_EXCLUDERECIPES_ABISAFE += " \
 "
 
 HOSTTOOLS_NONFATAL += "truncate xxd comm"
+
+TI_COMMON_DEPLOY ?= "${TOPDIR}/deploy-ti"
+DEPLOY_DIR_IMAGE:ti-soc = "${TI_COMMON_DEPLOY}/images/${MACHINE}"
+SDK_DEPLOY:ti-soc = "${TI_COMMON_DEPLOY}/sdk"
meta-ti-bsp/conf/multiconfig/k3r5.conf +0 -0
index deb07210..04b9a746 100644

meta-ti-bsp/conf/multiconfig/k3r5.conf line 4

Quoted 5 lines
meta-ti-bsp/conf/multiconfig/k3r5.conf +1 -1
@@ -1,5 +1,7 @@
 MAINMACHINE := "${MACHINE}"
 
-DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MAINMACHINE}"
+DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}"
 

What is the reason to use a machine override here as this conf is already used only on k3r5 machines?

Quoted 20 lines
meta-ti-bsp/conf/multiconfig/k3r5.conf +2 -1
 MACHINE:append = "-k3r5"
+TCLIBC = "baremetal"
+SDKPKGSUFFIX = "k3r5-nativesdk"
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#16821):
https://lists.yoctoproject.org/g/meta-ti/message/16821
Mute This Topic: https://lists.yoctoproject.org/mt/99992786/5052612
Group Owner: [email protected] Unsubscribe:
https://lists.yoctoproject.org/g/meta-ti/leave/11369865/5052612/926574700/xyzzy
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 9 lines
Best regards,

José Quaresma


-- 
Best regards,

José Quaresma
#3 lore raw

Jose Quaresma <[email protected]> escreveu no dia sexta, 7/07/2023 à(s) 17:02:

Quoted 10 lines

Foreword to the mailing list.

---------- Forwarded message ---------
De: Jose Quaresma <[email protected]>
Date: sexta, 7/07/2023 à(s) 10:51
Subject: Re: [meta-ti] [master/kirkstone][PATCH] conf: switch k3r5 multiconfig to baremetal
To: Denys Dmytriyenko <[email protected]>

Quoted 4 lines

Hi Denys,

Thanks for doing that, I will do some tests with this on kirstone.

Have tested this on kirkstone and have some issues when using the spdx bbclass,
maybe the spdx deploy folder also needs to be adjusted.
Can have another look next week.

Jose

Quoted 98 lines

Denys Dmytriyenko <[email protected]> escreveu no dia quinta, 6/07/2023 à(s) 20:31:

Quoted 52 lines

From: Denys Dmytriyenko <[email protected]>

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.

---
 meta-ti-bsp/conf/layer.conf            | 4 ++++
 meta-ti-bsp/conf/multiconfig/k3r5.conf | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)
meta-ti-bsp/conf/layer.conf +4 -0
index bb286c2b..db6f9de9 100644
@@ -23,3 +23,7 @@ SIGGEN_EXCLUDERECIPES_ABISAFE += " \
 "
 
 HOSTTOOLS_NONFATAL += "truncate xxd comm"
+
+TI_COMMON_DEPLOY ?= "${TOPDIR}/deploy-ti"
+DEPLOY_DIR_IMAGE:ti-soc = "${TI_COMMON_DEPLOY}/images/${MACHINE}"
+SDK_DEPLOY:ti-soc = "${TI_COMMON_DEPLOY}/sdk"
meta-ti-bsp/conf/multiconfig/k3r5.conf +0 -0
index deb07210..04b9a746 100644

meta-ti-bsp/conf/multiconfig/k3r5.conf line 4

Quoted 5 lines
meta-ti-bsp/conf/multiconfig/k3r5.conf +1 -1
@@ -1,5 +1,7 @@
 MAINMACHINE := "${MACHINE}"
 
-DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MAINMACHINE}"
+DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}"
 

What is the reason to use a machine override here as this conf is already used only on k3r5 machines?

Quoted 8 lines
meta-ti-bsp/conf/multiconfig/k3r5.conf +2 -1
 MACHINE:append = "-k3r5"
+TCLIBC = "baremetal"
+SDKPKGSUFFIX = "k3r5-nativesdk"
--

2.25.1

Quoted 12 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#16821):
https://lists.yoctoproject.org/g/meta-ti/message/16821
Mute This Topic: https://lists.yoctoproject.org/mt/99992786/5052612
Group Owner: [email protected] Unsubscribe:
https://lists.yoctoproject.org/g/meta-ti/leave/11369865/5052612/926574700/xyzzy
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
Best regards,

José Quaresma

--
Best regards,

José Quaresma

Signature · 3 lines
Best regards,

José Quaresma
#4 lore raw
Quoted 15 lines · Jose Quaresma

Jose Quaresma <[email protected]> escreveu no dia sexta, 7/07/2023 à(s) 17:02:

Quoted 12 lines

Foreword to the mailing list.

---------- Forwarded message ---------
De: Jose Quaresma <[email protected]>
Date: sexta, 7/07/2023 à(s) 10:51
Subject: Re: [meta-ti] [master/kirkstone][PATCH] conf: switch k3r5 multiconfig to baremetal
To: Denys Dmytriyenko <[email protected]>

Hi Denys,

Quoted 7 lines
Quoted 2 lines

Thanks for doing that, I will do some tests with this on kirstone.

Have tested this on kirkstone and have some issues when using the spdx bbclass,
maybe the spdx deploy folder also needs to be adjusted.
Can have another look next week.

Thanks for testing. Please keep us posted. As I just replied to Ryan, any additional customizations outside of meta-ti may require adjustments in the distro or local.conf.

#5 lore raw
In reply to Jose Quaresma
Quoted 71 lines · Jose Quaresma

Foreword to the mailing list.

---------- Forwarded message ---------
De: Jose Quaresma <[email protected]>
Date: sexta, 7/07/2023 à(s) 10:51
Subject: Re: [meta-ti] [master/kirkstone][PATCH] conf: switch k3r5 multiconfig to baremetal
To: Denys Dmytriyenko <[email protected]>

Hi Denys,

Thanks for doing that, I will do some tests with this on kirstone.

Denys Dmytriyenko <[email protected]> escreveu no dia quinta, 6/07/2023 à(s) 20:31:

Quoted 54 lines

From: Denys Dmytriyenko <[email protected]>

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.

---
 meta-ti-bsp/conf/layer.conf            | 4 ++++
 meta-ti-bsp/conf/multiconfig/k3r5.conf | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)
meta-ti-bsp/conf/layer.conf +4 -0
index bb286c2b..db6f9de9 100644
@@ -23,3 +23,7 @@ SIGGEN_EXCLUDERECIPES_ABISAFE += " \
 "
 
 HOSTTOOLS_NONFATAL += "truncate xxd comm"
+
+TI_COMMON_DEPLOY ?= "${TOPDIR}/deploy-ti"
+DEPLOY_DIR_IMAGE:ti-soc = "${TI_COMMON_DEPLOY}/images/${MACHINE}"
+SDK_DEPLOY:ti-soc = "${TI_COMMON_DEPLOY}/sdk"
meta-ti-bsp/conf/multiconfig/k3r5.conf +0 -0
index deb07210..04b9a746 100644
@@ -1,5 +1,7 @@
 MAINMACHINE := "${MACHINE}"
 
Quoted 5 lines

meta-ti-bsp/conf/multiconfig/k3r5.conf line 3

Quoted 2 lines
meta-ti-bsp/conf/multiconfig/k3r5.conf +1 -1
-DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MAINMACHINE}"
+DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}"

What is the reason to use a machine override here as this conf is already used only on k3r5 machines?

To override the value set in the layer.conf above.

Quoted 5 lines
Quoted 5 lines
meta-ti-bsp/conf/multiconfig/k3r5.conf +2 -1
 MACHINE:append = "-k3r5"
+TCLIBC = "baremetal"
+SDKPKGSUFFIX = "k3r5-nativesdk"
--

2.25.1

#6 lore raw
In reply to Denys Dmytriyenko
Quoted 39 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

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.

---
  meta-ti-bsp/conf/layer.conf            | 4 ++++
  meta-ti-bsp/conf/multiconfig/k3r5.conf | 4 +++-
  2 files changed, 7 insertions(+), 1 deletion(-)
meta-ti-bsp/conf/layer.conf +0 -0
index bb286c2b..db6f9de9 100644

meta-ti-bsp/conf/layer.conf SIGGEN_EXCLUDERECIPES_ABISAFE += " \ · line 27

Quoted 5 lines
meta-ti-bsp/conf/layer.conf +2 -0
@@ -23,3 +23,7 @@ SIGGEN_EXCLUDERECIPES_ABISAFE += " \
  "
 
  HOSTTOOLS_NONFATAL += "truncate xxd comm"
+
+TI_COMMON_DEPLOY ?= "${TOPDIR}/deploy-ti"

During testing, this one threw me for a bit. None of the build scripts were copying anything... I can deal with that. But, we pull a few things out of the deploy dir. Images, sdk, ipk... should we also have something that uses this new TI_COMMON_DEPLOY for the ipk and licenses?

Quoted 26 lines
meta-ti-bsp/conf/layer.conf +2 -0
+DEPLOY_DIR_IMAGE:ti-soc = "${TI_COMMON_DEPLOY}/images/${MACHINE}"
+SDK_DEPLOY:ti-soc = "${TI_COMMON_DEPLOY}/sdk"
meta-ti-bsp/conf/multiconfig/k3r5.conf +3 -2
index deb07210..04b9a746 100644
@@ -1,5 +1,7 @@
  MAINMACHINE := "${MACHINE}"
 
-DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MAINMACHINE}"
+DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}"
 
  MACHINE:append = "-k3r5"
+TCLIBC = "baremetal"
+SDKPKGSUFFIX = "k3r5-nativesdk"
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#16821): https://lists.yoctoproject.org/g/meta-ti/message/16821
Mute This Topic: https://lists.yoctoproject.org/mt/99992786/6551054
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/leave/10828724/6551054/1815494134/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS
#7 lore raw
Quoted 12 lines · Ryan Eatmon
Quoted 9 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

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.

Quoted 5 lines
Quoted 5 lines

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,

Should have said disruptive here instead of impactful - may have caught more attention...

Quoted 20 lines
Quoted 20 lines

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.

---
 meta-ti-bsp/conf/layer.conf            | 4 ++++
 meta-ti-bsp/conf/multiconfig/k3r5.conf | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)
Quoted 12 lines

meta-ti-bsp/conf/layer.conf SIGGEN_EXCLUDERECIPES_ABISAFE += " \ · line 26

Quoted 9 lines
meta-ti-bsp/conf/layer.conf +2 -0
index bb286c2b..db6f9de9 100644
@@ -23,3 +23,7 @@ SIGGEN_EXCLUDERECIPES_ABISAFE += " \
 "
 HOSTTOOLS_NONFATAL += "truncate xxd comm"
+
+TI_COMMON_DEPLOY ?= "${TOPDIR}/deploy-ti"

During testing, this one threw me for a bit. None of the build scripts were copying anything...

Heh, that's the lengthy explanation in the commit log above... I guess nobody reads that anyway :)

Quoted 4 lines

I can deal with that. But, we
pull a few things out of the deploy dir. Images, sdk, ipk... should we also have something that uses this new TI_COMMON_DEPLOY for the ipk and licenses?

I only wanted to do the bare minimum here in meta-ti for all distros to work out of the box w/o breaking. As mentioned in the description above the correct place for this stuff is either in the distro configuration or local.conf. And I didn't want to get in the way of that. That said, it should be perfectly fine to completely switch over to this "combined" deploy dir for all the remaining pieces, but should be done in the distro, not here.

Quoted 13 lines
Quoted 13 lines
meta-ti-bsp/conf/layer.conf +2 -0
+DEPLOY_DIR_IMAGE:ti-soc = "${TI_COMMON_DEPLOY}/images/${MACHINE}"
+SDK_DEPLOY:ti-soc = "${TI_COMMON_DEPLOY}/sdk"
meta-ti-bsp/conf/multiconfig/k3r5.conf +3 -1
index deb07210..04b9a746 100644
@@ -1,5 +1,7 @@
 MAINMACHINE := "${MACHINE}"
-DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MAINMACHINE}"
+DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}"
 MACHINE:append = "-k3r5"
+TCLIBC = "baremetal"
+SDKPKGSUFFIX = "k3r5-nativesdk"
#8 lore raw
Quoted 56 lines · Denys Dmytriyenko
Quoted 12 lines · Ryan Eatmon
Quoted 9 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

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.

Quoted 5 lines
Quoted 5 lines

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,

Should have said disruptive here instead of impactful - may have caught more attention...

Quoted 20 lines
Quoted 20 lines

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.

---
  meta-ti-bsp/conf/layer.conf            | 4 ++++
  meta-ti-bsp/conf/multiconfig/k3r5.conf | 4 +++-
  2 files changed, 7 insertions(+), 1 deletion(-)
Quoted 12 lines

meta-ti-bsp/conf/layer.conf SIGGEN_EXCLUDERECIPES_ABISAFE += " \ · line 26

Quoted 9 lines
meta-ti-bsp/conf/layer.conf +2 -0
index bb286c2b..db6f9de9 100644
@@ -23,3 +23,7 @@ SIGGEN_EXCLUDERECIPES_ABISAFE += " \
  "
  HOSTTOOLS_NONFATAL += "truncate xxd comm"
+
+TI_COMMON_DEPLOY ?= "${TOPDIR}/deploy-ti"

During testing, this one threw me for a bit. None of the build scripts were copying anything...

Quoted 2 lines

Heh, that's the lengthy explanation in the commit log above... I guess nobody reads that anyway :)

I read the comment. But knowing a wave is coming and experiencing the wave wash over you are two different things. =)

Quoted 6 lines
Quoted 5 lines

I can deal with that. But, we
pull a few things out of the deploy dir. Images, sdk, ipk... should we also have something that uses this new TI_COMMON_DEPLOY for the ipk and licenses?

Quoted 6 lines

I only wanted to do the bare minimum here in meta-ti for all distros to work out of the box w/o breaking. As mentioned in the description above the correct place for this stuff is either in the distro configuration or local.conf. And I didn't want to get in the way of that. That said, it should be perfectly fine to completely switch over to this "combined" deploy dir for all the remaining pieces, but should be done in the distro, not here.

Agreed. I was more asking from the stand point of should we pursue moving everything into deploy-ti. Which is sounds like you are in support of it. And I agree, that change belongs in meta-arago.

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
meta-ti-bsp/conf/layer.conf +2 -0
+DEPLOY_DIR_IMAGE:ti-soc = "${TI_COMMON_DEPLOY}/images/${MACHINE}"
+SDK_DEPLOY:ti-soc = "${TI_COMMON_DEPLOY}/sdk"
meta-ti-bsp/conf/multiconfig/k3r5.conf +3 -1
index deb07210..04b9a746 100644
@@ -1,5 +1,7 @@
  MAINMACHINE := "${MACHINE}"
-DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MAINMACHINE}"
+DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}"
  MACHINE:append = "-k3r5"
+TCLIBC = "baremetal"
+SDKPKGSUFFIX = "k3r5-nativesdk"
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS