Skip to contentSkip to conversation

fs: cpio: uImage depends on U-Boot

PATCH New Vivien Didelot 3 participants 4 messages Aug 10, 2015 – Aug 11, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: cpio: uImage depends on U-Boot

Even though some bootloaders such as Barebox can boot uImage, this format is quite U-Boot specific. So make BR2_TARGET_ROOTFS_CPIO_UIMAGE depends on BR2_TARGET_UBOOT.

---
 fs/cpio/Config.in | 1 +
 1 file changed, 1 insertion(+)
fs/cpio/Config.in +1 -0
index 206baca..97750e2 100644
@@ -50,6 +50,7 @@ endchoice
 
 config BR2_TARGET_ROOTFS_CPIO_UIMAGE
 	bool "Create U-Boot image of the root filesystem"
+	depends on BR2_TARGET_UBOOT
 	select BR2_PACKAGE_HOST_UBOOT_TOOLS
 	help
 	  Add a U-Boot header to the cpio root filesystem. This allows
Signature · 1 line
2.5.0
#1 lore raw

PATCH 1/1 fs: cpio: uImage depends on U-Boot

Quoted 3 lines · Vivien Didelot

Even though some bootloaders such as Barebox can boot uImage, this format is quite U-Boot specific. So make BR2_TARGET_ROOTFS_CPIO_UIMAGE depends on BR2_TARGET_UBOOT.

What if you already have a U-Boot binary compiled by your board vendor ?

#2 lore raw

PATCH 1/1 fs: cpio: uImage depends on U-Boot

Dear Nicolas Cavallari,

Quoted 6 lines · Nicolas Cavallari
Quoted 3 lines · Vivien Didelot

Even though some bootloaders such as Barebox can boot uImage, this format is quite U-Boot specific. So make BR2_TARGET_ROOTFS_CPIO_UIMAGE depends on BR2_TARGET_UBOOT.

What if you already have a U-Boot binary compiled by your board vendor ?

Agreed. Even if uImage is indeed mainly U-Boot specific, I agree that you may not be building U-Boot with Buildroot, or it might be used in other contexts.

I'll mark Vivien's patch as Rejected in patchwork.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH 1/1 fs: cpio: uImage depends on U-Boot

Hi Nicolas, Thomas,

Quoted 8 lines · Thomas Petazzoni

Dear Nicolas Cavallari,

Quoted 5 lines · Nicolas Cavallari
Quoted 3 lines · Vivien Didelot

Even though some bootloaders such as Barebox can boot uImage, this format is quite U-Boot specific. So make BR2_TARGET_ROOTFS_CPIO_UIMAGE depends on BR2_TARGET_UBOOT.

Quoted 5 lines
Quoted 1 line

What if you already have a U-Boot binary compiled by your board vendor ?

Agreed. Even if uImage is indeed mainly U-Boot specific, I agree that you may not be building U-Boot with Buildroot, or it might be used in other contexts.

That is true.

Quoted 1 line

I'll mark Vivien's patch as Rejected in patchwork.

My initial concern was seeing the BR2_TARGET_ROOTFS_CPIO_UIMAGE entry when enabling BR2_TARGET_ROOTFS_ISO9660 (this last one depends on BR2_TARGET_GRUB, BR2_TARGET_GRUB2 or BR2_TARGET_SYSLINUX_ISOLINUX).

Should we make them exclusive?

config BR2_TARGET_ROOTFS_CPIO_UIMAGE
depends on !BR2_TARGET_ROOTFS_ISO9660

Or is that OK to display such options?

Thanks,
-v