Skip to contentSkip to conversation

fix build dependency for TI secure devices

PATCH New Andreas Dannenberg 2 participants 7 messages Jul 20, 2016 – Jul 23, 2016 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

cover fix build dependency for TI secure devices

The recent "Secure Boot by Authenticating/Decrypting SPL FIT blobs" patch series [1] introduced an undesired dependency on CONFIG_SPL_LOAD_FIT for TI secure devices, breaking the build when that option is not active. While this is not an immediately visible issue as we migrated all applicable device defconfig files to use CONFIG_SPL_LOAD_FIT, it does create an issue if someone choses to disable that option

[1] https://www.mail-archive.com/u-boot%40lists.denx.de/msg217284.html

Andreas Dannenberg (2):
arm: am4x: fix build dependency for secure devices
arm: omap5: fix build dependency for secure devices

 arch/arm/cpu/armv7/am33xx/config.mk | 2 +-
 arch/arm/cpu/armv7/omap5/config.mk  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.7.2
#1 lore raw

PATCH 1/2 arm: am4x: fix build dependency for secure devices

Commit e29878f introduces an undesired dependency on CONFIG_SPL_LOAD_FIT when building U-Boot for AM43xx high-security (HS) devices that causes the build to break when that option is not active. Fix this issue by only building the u-boot_HS.img target when building U-Boot into an actual FIT image.

---
 arch/arm/cpu/armv7/am33xx/config.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/cpu/armv7/am33xx/config.mk +1 -1
index ab94708..d4eb21c 100644
@@ -26,7 +26,7 @@ endif
 else
 ifeq ($(CONFIG_TI_SECURE_DEVICE),y)
 ALL-$(CONFIG_QSPI_BOOT) += u-boot_HS_XIP_X-LOADER
-ALL-y	+= u-boot_HS.img
+ALL-$(CONFIG_SPL_LOAD_FIT) += u-boot_HS.img
 endif
 ALL-y	+= u-boot.img
 endif
Signature · 1 line
2.7.2
#4 lore raw

PATCH 2/2 arm: omap5: fix build dependency for secure devices

In reply to Andreas Dannenberg

Commit 17c2987 introduces an undesired dependency on CONFIG_SPL_LOAD_FIT when building U-Boot for AM57xx and DRA7xx high-security (HS) devices that causes the build to break when that option is not active. Fix this issue by only building the u-boot_HS.img target when building U-Boot into an actual FIT image.

---
 arch/arm/cpu/armv7/omap5/config.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/cpu/armv7/omap5/config.mk +1 -1
index d245572..286ca86 100644
@@ -16,7 +16,7 @@ ALL-y	+= MLO
 endif
 else
 ifeq ($(CONFIG_TI_SECURE_DEVICE),y)
-ALL-y   += u-boot_HS.img
+ALL-$(CONFIG_SPL_LOAD_FIT) += u-boot_HS.img
 endif
 ALL-y	+= u-boot.img
 endif
Signature · 1 line
2.7.2
#2 lore raw

PATCH 1/2 arm: am4x: fix build dependency for secure devices

In reply to Andreas Dannenberg
Quoted 7 lines · Andreas Dannenberg

Commit e29878f introduces an undesired dependency on CONFIG_SPL_LOAD_FIT when building U-Boot for AM43xx high-security (HS) devices that causes the build to break when that option is not active. Fix this issue by only building the u-boot_HS.img target when building U-Boot into an actual FIT image.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160721/0c995af3/attachment.sig>
#5 lore raw

PATCH 2/2 arm: omap5: fix build dependency for secure devices

In reply to Andreas Dannenberg
Quoted 7 lines · Andreas Dannenberg

Commit 17c2987 introduces an undesired dependency on CONFIG_SPL_LOAD_FIT when building U-Boot for AM57xx and DRA7xx high-security (HS) devices that causes the build to break when that option is not active. Fix this issue by only building the u-boot_HS.img target when building U-Boot into an actual FIT image.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160721/b35e1cd3/attachment.sig>
#3 lore raw

PATCH 1/2 arm: am4x: fix build dependency for secure devices

In reply to Andreas Dannenberg
Quoted 8 lines · Andreas Dannenberg

Commit e29878f introduces an undesired dependency on CONFIG_SPL_LOAD_FIT when building U-Boot for AM43xx high-security (HS) devices that causes the build to break when that option is not active. Fix this issue by only building the u-boot_HS.img target when building U-Boot into an actual FIT image.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160722/4e20bb20/attachment.sig>
#6 lore raw

PATCH 2/2 arm: omap5: fix build dependency for secure devices

In reply to Andreas Dannenberg
Quoted 8 lines · Andreas Dannenberg

Commit 17c2987 introduces an undesired dependency on CONFIG_SPL_LOAD_FIT when building U-Boot for AM57xx and DRA7xx high-security (HS) devices that causes the build to break when that option is not active. Fix this issue by only building the u-boot_HS.img target when building U-Boot into an actual FIT image.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160722/238e75be/attachment.sig>