Config.in 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. config BR2_TARGET_ROOTFS_CPIO
  2. bool "cpio the root filesystem (for use as an initial RAM filesystem)"
  3. help
  4. Build a cpio archive of the root filesystem. This is typically
  5. used for an initial RAM filesystem that is passed to the
  6. kernel by the bootloader.
  7. if BR2_TARGET_ROOTFS_CPIO
  8. choice
  9. prompt "cpio type"
  10. default BR2_TARGET_ROOTFS_CPIO_FULL
  11. config BR2_TARGET_ROOTFS_CPIO_FULL
  12. bool "cpio the whole root filesystem"
  13. help
  14. Build a cpio archive containing the whole root filesystem.
  15. config BR2_TARGET_ROOTFS_CPIO_DRACUT
  16. bool "Invoke dracut to make a partial initramfs"
  17. select BR2_PACKAGE_HOST_DRACUT
  18. help
  19. Build an additional initramfs using dracut. This only contains
  20. a subset of the rootfs, as determined by the configuration
  21. file.
  22. This can be useful to create a recovery system, for instance.
  23. endchoice
  24. if BR2_TARGET_ROOTFS_CPIO_DRACUT
  25. config BR2_TARGET_ROOTFS_CPIO_DRACUT_CONF_FILES
  26. string "dracut configuration files"
  27. default "fs/cpio/dracut.conf"
  28. help
  29. Space-separated list of Dracut configuration files. They
  30. determine which parts of the rootfs get included in the
  31. cpio image. See:
  32. dracut.conf(5)
  33. https://github.com/dracutdevs/dracut/blob/master/man/dracut.conf.5.asc
  34. The default configuration file is suitable for busybox init.
  35. It doesn't, however, pivot_root into a full rootfs.
  36. endif
  37. choice
  38. prompt "Compression method"
  39. default BR2_TARGET_ROOTFS_CPIO_NONE
  40. help
  41. Select compressor for cpio filesystem of the root filesystem.
  42. If you use the cpio archive as an initial RAM filesystem, make
  43. sure the kernel contains the decompression algorithm selected
  44. here.
  45. config BR2_TARGET_ROOTFS_CPIO_NONE
  46. bool "no compression"
  47. help
  48. Do not compress the cpio filesystem.
  49. config BR2_TARGET_ROOTFS_CPIO_GZIP
  50. bool "gzip"
  51. help
  52. Do compress the cpio filesystem with gzip.
  53. config BR2_TARGET_ROOTFS_CPIO_BZIP2
  54. bool "bzip2"
  55. help
  56. Do compress the cpio filesystem with bzip2.
  57. config BR2_TARGET_ROOTFS_CPIO_LZ4
  58. bool "lz4"
  59. help
  60. Do compress the cpio filesystem with lz4.
  61. config BR2_TARGET_ROOTFS_CPIO_LZMA
  62. bool "lzma"
  63. help
  64. Do compress the cpio filesystem with lzma.
  65. config BR2_TARGET_ROOTFS_CPIO_LZO
  66. bool "lzo"
  67. help
  68. Do compress the cpio filesystem with lzop.
  69. config BR2_TARGET_ROOTFS_CPIO_XZ
  70. bool "xz"
  71. help
  72. Do compress the cpio filesystem with xz.
  73. config BR2_TARGET_ROOTFS_CPIO_ZSTD
  74. bool "zstd"
  75. help
  76. Do compress the cpio filesystem with zstd.
  77. endchoice
  78. config BR2_TARGET_ROOTFS_CPIO_UIMAGE
  79. bool "Create U-Boot image of the root filesystem"
  80. select BR2_PACKAGE_HOST_UBOOT_TOOLS
  81. help
  82. Add a U-Boot header to the cpio root filesystem. This allows
  83. the initramfs to be loaded with the bootm command in U-Boot.
  84. The U-Boot image will be called rootfs.cpio.uboot
  85. endif # BR2_TARGET_ROOTFS_CPIO