aboutsummaryrefslogtreecommitdiff
path: root/fs/cpio/Config.in
diff options
context:
space:
mode:
authorGravatar Arnout Vandecappelle <arnout@mind.be>2013-11-07 00:12:34 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2013-11-11 00:34:31 +0100
commit3970ebf837aa7ac52528d3afc8c1701015a024b0 (patch)
tree6fcfe046424768026ec37feb3a01af32c947abb8 /fs/cpio/Config.in
parent4df9ecb30ae64aab0e65f0dbbb2b60749c536db3 (diff)
downloadbuildroot-3970ebf837aa7ac52528d3afc8c1701015a024b0.tar.gz
buildroot-3970ebf837aa7ac52528d3afc8c1701015a024b0.tar.bz2
rootfs-cpio: add U-Boot image support
Adds U-Boot image support for cpio root filesystems. This allows you to use the bootm command in U-Boot to load the rootfs. It makes it possible to verify the CRC of the initramfs before booting the kernel. [Spenser: wrote first version of the patch.] Signed-off-by: Spenser Gilliland <spenser@gillilanding.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'fs/cpio/Config.in')
-rw-r--r--fs/cpio/Config.in13
1 files changed, 12 insertions, 1 deletions
diff --git a/fs/cpio/Config.in b/fs/cpio/Config.in
index fd85d29deb..206baca677 100644
--- a/fs/cpio/Config.in
+++ b/fs/cpio/Config.in
@@ -5,10 +5,11 @@ config BR2_TARGET_ROOTFS_CPIO
used for an initial RAM filesystem that is passed to the kernel
by the bootloader.
+if BR2_TARGET_ROOTFS_CPIO
+
choice
prompt "Compression method"
default BR2_TARGET_ROOTFS_CPIO_NONE
- depends on BR2_TARGET_ROOTFS_CPIO
help
Select compressor for cpio filesystem of the root filesystem.
If you use the cpio archive as an initial RAM filesystem, make
@@ -47,3 +48,13 @@ config BR2_TARGET_ROOTFS_CPIO_XZ
endchoice
+config BR2_TARGET_ROOTFS_CPIO_UIMAGE
+ bool "Create U-Boot image of the root filesystem"
+ select BR2_PACKAGE_HOST_UBOOT_TOOLS
+ help
+ Add a U-Boot header to the cpio root filesystem. This allows
+ the initramfs to be loaded with the bootm command in U-Boot.
+
+ The U-Boot image will be called rootfs.cpio.uboot
+
+endif # BR2_TARGET_ROOTFS_CPIO