Skip to contentSkip to conversation

Fix build for tispl.bin

PATCH In review Aniket Limaye 3 participants 9 messages Oct 12, 2023 – Oct 16, 2023

lore
Share & tools
lore
#0 lore raw

cover Fix build for tispl.bin

ti-fs-stub-* firmware is packaged at tispl.bin and is needed for u-boot aarch64 build. Revert previous commits that removed u-boot dependency on ti-sci-fw while preserving deploy logic for ti-sci-fw with multiconfig builds

Aniket Limaye (2):
ti-sci-fw: Remove COMPATIBLE_MACHINE and extend recipe to k3 machines Revert "recipes-bsp: u-boot-ti.inc: Remove ti-sci-fw from DEPENDS for
k3 machine"

 meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 6 ++++--
 meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc       | 1 +
 2 files changed, 5 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/2 ti-sci-fw: Remove COMPATIBLE_MACHINE and extend recipe to k3 machines

Revert ebcf15bf0f31208e87ce60a4696e585940b46777 :
"recipes-bsp:ti-sci-fw: Add k3r5 as COMPATIBLE_MACHINE"

Extend recipe to k3 machines too, to provide ti-fs-stub-* firmware for u-boot aarch64 build.

Update do_deploy() to allow multiconfig builds for k3 machines

---
 meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +4 -2
index 801c8768..2ad93a5d 100644
@@ -4,7 +4,6 @@ inherit deploy
 
 require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
 
-COMPATIBLE_MACHINE = "k3r5"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 CFLAGS[unexport] = "1"
@@ -26,7 +25,10 @@ do_install() {
 
 FILES:${PN} = "${nonarch_base_libdir}/firmware"
 
-do_deploy() {
+do_deploy(){
+}
+
+do_deploy:k3r5() {
 	install -d ${DEPLOYDIR}/ti-sysfw
 	install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw
 	install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw
Signature · 1 line
2.34.1
#2 lore raw

Re: [meta-ti][master/kirkstone][PATCH 1/2] ti-sci-fw: Remove COMPATIBLE_MACHINE and extend recipe to k3 machines

Quoted 27 lines · Aniket Limaye via lists.yoctoproject.org

Revert ebcf15bf0f31208e87ce60a4696e585940b46777 :
"recipes-bsp:ti-sci-fw: Add k3r5 as COMPATIBLE_MACHINE"

Extend recipe to k3 machines too, to provide ti-fs-stub-* firmware for u-boot aarch64 build.

Update do_deploy() to allow multiconfig builds for k3 machines

---
  meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 6 ++++--
  1 file changed, 4 insertions(+), 2 deletions(-)
meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +0 -1
index 801c8768..2ad93a5d 100644
@@ -4,7 +4,6 @@ inherit deploy
 
  require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
 
-COMPATIBLE_MACHINE = "k3r5"
  PACKAGE_ARCH = "${MACHINE_ARCH}"
 
  CFLAGS[unexport] = "1"
@@ -26,7 +25,10 @@ do_install() {
 

meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb do_install() { · line 34

Quoted 10 lines
meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +4 -1
  FILES:${PN} = "${nonarch_base_libdir}/firmware"
 
-do_deploy() {
+do_deploy(){
+}
+
+do_deploy:k3r5() {
  	install -d ${DEPLOYDIR}/ti-sysfw
  	install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw
  	install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw

Why do we need to deploy these files in ${DEPLOYDIR}/ at all?

Andrew

Quoted 11 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#17097): https://lists.yoctoproject.org/g/meta-ti/message/17097
Mute This Topic: https://lists.yoctoproject.org/mt/101923272/3619733
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

RE: [meta-ti][master/kirkstone][PATCH 1/2] ti-sci-fw: Remove COMPATIBLE_MACHINE and extend recipe to k3 machines

Hi Andrew,

We need those files to be packaged in the tisdk-core-bundle... So that it can be packaged in the installer we release on ti.com. We package these, ti-dm and the u-boot sources used, to enable u-boot builds in the installer with the same sources used for our build.

Regards,
Aniket

-----Original Message-----
From: Davis, Andrew <[email protected]>
Sent: Friday, October 13, 2023 2:37 AM
To: Limaye, Aniket <[email protected]>; [email protected]
Cc: Eatmon, Ryan <[email protected]>; Gole, Dhruva <[email protected]>; Shilwant, Chirag <[email protected]>; Adivi, Sai Sree Kartheek <[email protected]>; Raghavendra, Vignesh <[email protected]>
Subject: Re: [meta-ti][master/kirkstone][PATCH 1/2] ti-sci-fw: Remove COMPATIBLE_MACHINE and extend recipe to k3 machines

Quoted 28 lines · Aniket Limaye via lists.yoctoproject.org

Revert ebcf15bf0f31208e87ce60a4696e585940b46777 :
"recipes-bsp:ti-sci-fw: Add k3r5 as COMPATIBLE_MACHINE"

Extend recipe to k3 machines too, to provide ti-fs-stub-* firmware for u-boot aarch64 build.

Update do_deploy() to allow multiconfig builds for k3 machines

---
  meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 6 ++++--
  1 file changed, 4 insertions(+), 2 deletions(-)
meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +0 -1
index 801c8768..2ad93a5d 100644
@@ -4,7 +4,6 @@ inherit deploy
 
  require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
 
-COMPATIBLE_MACHINE = "k3r5"
  PACKAGE_ARCH = "${MACHINE_ARCH}"
 
  CFLAGS[unexport] = "1"
@@ -26,7 +25,10 @@ do_install() {
 

meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb do_install() { · line 34

Quoted 10 lines
meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +4 -1
  FILES:${PN} = "${nonarch_base_libdir}/firmware"
 
-do_deploy() {
+do_deploy(){
+}
+
+do_deploy:k3r5() {
  	install -d ${DEPLOYDIR}/ti-sysfw
  	install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw
  	install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw

Why do we need to deploy these files in ${DEPLOYDIR}/ at all?

Andrew

Quoted 13 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#17097):
https://lists.yoctoproject.org/g/meta-ti/message/17097
Mute This Topic: https://lists.yoctoproject.org/mt/101923272/3619733
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

Re: [meta-ti][master/kirkstone][PATCH 1/2] ti-sci-fw: Remove COMPATIBLE_MACHINE and extend recipe to k3 machines

Quoted 4 lines · Aniket

Hi Andrew,

We need those files to be packaged in the tisdk-core-bundle... So that it can be packaged in the installer we release on ti.com. We package these, ti-dm and the u-boot sources used, to enable u-boot builds in the installer with the same sources used for our build.

You can fetch those firmware out of their normal install directory.

Andrew

Quoted 67 lines

Regards,
Aniket

-----Original Message-----
From: Davis, Andrew <[email protected]>
Sent: Friday, October 13, 2023 2:37 AM
To: Limaye, Aniket <[email protected]>; [email protected]
Cc: Eatmon, Ryan <[email protected]>; Gole, Dhruva <[email protected]>; Shilwant, Chirag <[email protected]>; Adivi, Sai Sree Kartheek <[email protected]>; Raghavendra, Vignesh <[email protected]>
Subject: Re: [meta-ti][master/kirkstone][PATCH 1/2] ti-sci-fw: Remove COMPATIBLE_MACHINE and extend recipe to k3 machines

Quoted 28 lines · Aniket Limaye via lists.yoctoproject.org

Revert ebcf15bf0f31208e87ce60a4696e585940b46777 :
"recipes-bsp:ti-sci-fw: Add k3r5 as COMPATIBLE_MACHINE"

Extend recipe to k3 machines too, to provide ti-fs-stub-* firmware for u-boot aarch64 build.

Update do_deploy() to allow multiconfig builds for k3 machines

---
   meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 6 ++++--
   1 file changed, 4 insertions(+), 2 deletions(-)
meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +0 -1
index 801c8768..2ad93a5d 100644
@@ -4,7 +4,6 @@ inherit deploy
 
   require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
 
-COMPATIBLE_MACHINE = "k3r5"
   PACKAGE_ARCH = "${MACHINE_ARCH}"
 
   CFLAGS[unexport] = "1"
@@ -26,7 +25,10 @@ do_install() {
 

meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb do_install() { · line 34

Quoted 10 lines
meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +4 -1
   FILES:${PN} = "${nonarch_base_libdir}/firmware"
 
-do_deploy() {
+do_deploy(){
+}
+
+do_deploy:k3r5() {
   	install -d ${DEPLOYDIR}/ti-sysfw
   	install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw
   	install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw

Why do we need to deploy these files in ${DEPLOYDIR}/ at all?

Andrew

Quoted 13 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#17097):
https://lists.yoctoproject.org/g/meta-ti/message/17097
Mute This Topic: https://lists.yoctoproject.org/mt/101923272/3619733
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw

Re: [meta-ti][master/kirkstone][PATCH 1/2] ti-sci-fw: Remove COMPATIBLE_MACHINE and extend recipe to k3 machines

Quoted 60 lines · Andrew Davis
Quoted 4 lines · Aniket

Hi Andrew,

We need those files to be packaged in the tisdk-core-bundle... So that it can be packaged in the installer we release on ti.com. We package these, ti-dm and the u-boot sources used, to enable u-boot builds in the installer with the same sources used for our build.

You can fetch those firmware out of their normal install directory.

Andrew

Quoted 50 lines

Regards,
Aniket

-----Original Message-----
From: Davis, Andrew <[email protected]>
Sent: Friday, October 13, 2023 2:37 AM
To: Limaye, Aniket <[email protected]>; [email protected]
Cc: Eatmon, Ryan <[email protected]>; Gole, Dhruva <[email protected]>; Shilwant, Chirag <[email protected]>; Adivi, Sai Sree Kartheek <[email protected]>; Raghavendra, Vignesh <[email protected]>
Subject: Re: [meta-ti][master/kirkstone][PATCH 1/2] ti-sci-fw: Remove COMPATIBLE_MACHINE and extend recipe to k3 machines

Quoted 30 lines · Aniket Limaye via lists.yoctoproject.org

Revert ebcf15bf0f31208e87ce60a4696e585940b46777 :
    "recipes-bsp:ti-sci-fw: Add k3r5 as COMPATIBLE_MACHINE"

Extend recipe to k3 machines too, to provide ti-fs-stub-* firmware for u-boot aarch64 build.

Update do_deploy() to allow multiconfig builds for k3 machines

---
   meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 6 ++++--

   1 file changed, 4 insertions(+), 2 deletions(-)
meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +0 -0
index 801c8768..2ad93a5d 100644
@@ -4,7 +4,6 @@ inherit deploy

      require recipes-bsp/ti-linux-fw/ti-linux-fw.inc -COMPATIBLE_MACHINE = "k3r5"
   PACKAGE_ARCH = "${MACHINE_ARCH}" CFLAGS[unexport] = "1"

meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +0 -0
@@ -26,7 +25,10 @@ do_install() {

      FILES:${PN} = "${nonarch_base_libdir}/firmware" -do_deploy() {

meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +4 -0
+do_deploy(){
+}
+
+do_deploy:k3r5() {
Quoted 3 lines

       install -d ${DEPLOYDIR}/ti-sysfw
       install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw

Why do we need to deploy these files in ${DEPLOYDIR}/ at all?

Andrew

This will deploy all ti-sci-* & ti-fs-* firmwares present in ti-linux-firmware repository in the deploy directory irrespective of the yocto machine which is redundant. It's better if we deploy based on yocto machine.

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#17097):
https://lists.yoctoproject.org/g/meta-ti/message/17097
Mute This Topic: https://lists.yoctoproject.org/mt/101923272/3619733
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#6 lore raw

Re: [meta-ti][master/kirkstone][PATCH 1/2] ti-sci-fw: Remove COMPATIBLE_MACHINE and extend recipe to k3 machines

In reply to Andrew Davis
Quoted 10 lines · Andrew Davis
Quoted 4 lines · Aniket

Hi Andrew,

We need those files to be packaged in the tisdk-core-bundle... So that it can be packaged in the installer we release on ti.com. We package these, ti-dm and the u-boot sources used, to enable u-boot builds in the installer with the same sources used for our build.

You can fetch those firmware out of their normal install directory.

Andrew

Hi Andrew,

I am not sure what you meant by the normal install directory. If you meant the "image" directory, the tisdk-core-bundle recipe cannot access the image directory of another recipe... I don't see a straightforward way of having the core-bundle recipe pick up these images from the ti-sci-fw recipe.

Secondly, the tisdk-core-bundle always was and still is picking boot images, among other things, from the deploy directory [1].

ti-sci-fw itself was deploying these images in meta-ti up until 8.6 release and up until this commit in kirkstone [2], not sure what the reasoning was to remove it there either... we did need the deployed binaries in the core-bundle and handled it through a bbappend in both Proc SDK layers in 9.0.

Lastly, ti-dm-fw also was always deploying the firmware [3]. Unless that was done for some special usecase that I am not aware of, I think that one was also needed for the same reason... to put it in the tisdk-core-bundle?

[1]: https://git.ti.com/cgit/arago-project/meta-arago/tree/meta-arago-distro/classes/tisdk-bundle.bbclass?h=kirkstone#n272
[2]: https://git.ti.com/cgit/arago-project/meta-ti/commit/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb?h=kirkstone&id=7b797da2ef43f4f450a546816b43b28f9379305a
[3]: https://git.ti.com/cgit/arago-project/meta-ti/tree/meta-ti-bsp/recipes-bsp/ti-dm-fw/ti-dm-fw.bb?h=kirkstone#n68

Aniket

Quoted 62 lines
Quoted 62 lines

Regards,
Aniket

-----Original Message-----
From: Davis, Andrew <[email protected]>
Sent: Friday, October 13, 2023 2:37 AM
To: Limaye, Aniket <[email protected]>; [email protected]
Cc: Eatmon, Ryan <[email protected]>; Gole, Dhruva <[email protected]>; Shilwant, Chirag <[email protected]>; Adivi, Sai Sree Kartheek <[email protected]>; Raghavendra, Vignesh <[email protected]>
Subject: Re: [meta-ti][master/kirkstone][PATCH 1/2] ti-sci-fw: Remove COMPATIBLE_MACHINE and extend recipe to k3 machines

Quoted 30 lines · Aniket Limaye via lists.yoctoproject.org

Revert ebcf15bf0f31208e87ce60a4696e585940b46777 :
    "recipes-bsp:ti-sci-fw: Add k3r5 as COMPATIBLE_MACHINE"

Extend recipe to k3 machines too, to provide ti-fs-stub-* firmware for u-boot aarch64 build.

Update do_deploy() to allow multiconfig builds for k3 machines

---
   meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 6 ++++--

   1 file changed, 4 insertions(+), 2 deletions(-)
meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +0 -0
index 801c8768..2ad93a5d 100644
@@ -4,7 +4,6 @@ inherit deploy

      require recipes-bsp/ti-linux-fw/ti-linux-fw.inc -COMPATIBLE_MACHINE = "k3r5"
   PACKAGE_ARCH = "${MACHINE_ARCH}" CFLAGS[unexport] = "1"

meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +0 -0
@@ -26,7 +25,10 @@ do_install() {

      FILES:${PN} = "${nonarch_base_libdir}/firmware" -do_deploy() {

meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +4 -0
+do_deploy(){
+}
+
+do_deploy:k3r5() {
Quoted 3 lines

       install -d ${DEPLOYDIR}/ti-sysfw
       install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw

Why do we need to deploy these files in ${DEPLOYDIR}/ at all?

Andrew

Quoted 13 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#17097):
https://lists.yoctoproject.org/g/meta-ti/message/17097
Mute This Topic: https://lists.yoctoproject.org/mt/101923272/3619733
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#7 lore raw

Re: [meta-ti][master/kirkstone][PATCH 1/2] ti-sci-fw: Remove COMPATIBLE_MACHINE and extend recipe to k3 machines

Quoted 8 lines · Aniket Limaye
Quoted 6 lines · Andrew Davis
Quoted 4 lines · Aniket

Hi Andrew,

We need those files to be packaged in the tisdk-core-bundle... So that it can be packaged in the installer we release on ti.com. We package these, ti-dm and the u-boot sources used, to enable u-boot builds in the installer with the same sources used for our build.

Quoted 8 lines
Quoted 4 lines

You can fetch those firmware out of their normal install directory.

Andrew

Hi Andrew,

I am not sure what you meant by the normal install directory. If you meant the "image" directory, the tisdk-core-bundle recipe cannot access the image directory of another recipe... I don't see a straightforward way of having the core-bundle recipe pick up these images from the ti-sci-fw recipe.

Are you sure..? We do it all the time, that is the core function of the DEPENDS variable. If you DEPEND on a recipe, then you have access to the installed output of it. If you make core-bundle recipe DEPEND on ti-sci-fw you will find the firmware in ${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/ti-sysfw* for use in the recipe build steps.

Quoted 2 lines

Secondly, the tisdk-core-bundle always was and still is picking boot images, among other things, from the deploy directory [1].

Correct, but doesn't mean it isn't a hack. My suggestion is to fix tisdk-core-bundle. DEPLOYDIR is for output to the user, "to be used outside of the build system" according to the OE docs. It should not be a staging directory for intermediate file sharing between recipes.

Same comment for the below points, just because we did before, doesn't mean we should continue.

Andrew

Quoted 73 lines

ti-sci-fw itself was deploying these images in meta-ti up until 8.6 release and up until this commit in kirkstone [2], not sure what the reasoning was to remove it there either... we did need the deployed binaries in the core-bundle and handled it through a bbappend in both Proc SDK layers in 9.0.

Lastly, ti-dm-fw also was always deploying the firmware [3]. Unless that was done for some special usecase that I am not aware of, I think that one was also needed for the same reason... to put it in the tisdk-core-bundle?

[1]: https://git.ti.com/cgit/arago-project/meta-arago/tree/meta-arago-distro/classes/tisdk-bundle.bbclass?h=kirkstone#n272
[2]: https://git.ti.com/cgit/arago-project/meta-ti/commit/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb?h=kirkstone&id=7b797da2ef43f4f450a546816b43b28f9379305a
[3]: https://git.ti.com/cgit/arago-project/meta-ti/tree/meta-ti-bsp/recipes-bsp/ti-dm-fw/ti-dm-fw.bb?h=kirkstone#n68

Aniket

Quoted 62 lines
Quoted 62 lines

Regards,
Aniket

-----Original Message-----
From: Davis, Andrew <[email protected]>
Sent: Friday, October 13, 2023 2:37 AM
To: Limaye, Aniket <[email protected]>; [email protected]
Cc: Eatmon, Ryan <[email protected]>; Gole, Dhruva <[email protected]>; Shilwant, Chirag <[email protected]>; Adivi, Sai Sree Kartheek <[email protected]>; Raghavendra, Vignesh <[email protected]>
Subject: Re: [meta-ti][master/kirkstone][PATCH 1/2] ti-sci-fw: Remove COMPATIBLE_MACHINE and extend recipe to k3 machines

Quoted 30 lines · Aniket Limaye via lists.yoctoproject.org

Revert ebcf15bf0f31208e87ce60a4696e585940b46777 :
    "recipes-bsp:ti-sci-fw: Add k3r5 as COMPATIBLE_MACHINE"

Extend recipe to k3 machines too, to provide ti-fs-stub-* firmware for u-boot aarch64 build.

Update do_deploy() to allow multiconfig builds for k3 machines

---
   meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 6 ++++--

   1 file changed, 4 insertions(+), 2 deletions(-)
meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +0 -0
index 801c8768..2ad93a5d 100644
@@ -4,7 +4,6 @@ inherit deploy

      require recipes-bsp/ti-linux-fw/ti-linux-fw.inc -COMPATIBLE_MACHINE = "k3r5"
   PACKAGE_ARCH = "${MACHINE_ARCH}" CFLAGS[unexport] = "1"

meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +0 -0
@@ -26,7 +25,10 @@ do_install() {

      FILES:${PN} = "${nonarch_base_libdir}/firmware" -do_deploy() {

meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +4 -0
+do_deploy(){
+}
+
+do_deploy:k3r5() {
Quoted 3 lines

       install -d ${DEPLOYDIR}/ti-sysfw
       install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw

Why do we need to deploy these files in ${DEPLOYDIR}/ at all?

Andrew

Quoted 13 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#17097):
https://lists.yoctoproject.org/g/meta-ti/message/17097
Mute This Topic: https://lists.yoctoproject.org/mt/101923272/3619733
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#8 lore raw

PATCH 2/2 Revert "recipes-bsp: u-boot-ti.inc: Remove ti-sci-fw from DEPENDS for k3 machine"

In reply to Aniket Limaye

This reverts commit cd13cafd659f7784f4131fd0bafb8a3c7c9ef126. Some devices need ti-fs-stub-* firmware for the uboot aarch64 build

---
 meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | 1 +
 1 file changed, 1 insertion(+)
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc +1 -0
index 355e9868..99a2daeb 100644
@@ -30,6 +30,7 @@ DEPENDS += "dtc-native bc-native lzop-native flex-native bison-native python3-se
 DEPENDS += "python3-pyelftools-native python3-pyyaml-native python3-jsonschema-native"
 
 # SYSFW/TIFS Firmware
+DEPENDS:append:k3 = " ti-sci-fw"
 DEPENDS:append:k3r5 = " ti-sci-fw"
 
 DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"
Signature · 1 line
2.34.1