Config.in 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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_MODULES
  26. string "extra dracut modules"
  27. help
  28. Space-separated list of directories containing dracut modules.
  29. config BR2_TARGET_ROOTFS_CPIO_DRACUT_CONF_FILES
  30. string "dracut configuration files"
  31. default "fs/cpio/dracut.conf"
  32. help
  33. Space-separated list of Dracut configuration files. They
  34. determine which parts of the rootfs get included in the
  35. cpio image. See:
  36. dracut.conf(5)
  37. https://github.com/dracutdevs/dracut/blob/master/man/dracut.conf.5.asc
  38. The default configuration file is suitable for busybox init.
  39. It doesn't, however, pivot_root into a full rootfs.
  40. endif
  41. choice
  42. prompt "Compression method"
  43. default BR2_TARGET_ROOTFS_CPIO_NONE
  44. help
  45. Select compressor for cpio filesystem of the root filesystem.
  46. If you use the cpio archive as an initial RAM filesystem, make
  47. sure the kernel contains the decompression algorithm selected
  48. here.
  49. config BR2_TARGET_ROOTFS_CPIO_NONE
  50. bool "no compression"
  51. help
  52. Do not compress the cpio filesystem.
  53. config BR2_TARGET_ROOTFS_CPIO_GZIP
  54. bool "gzip"
  55. help
  56. Do compress the cpio filesystem with gzip.
  57. config BR2_TARGET_ROOTFS_CPIO_BZIP2
  58. bool "bzip2"
  59. help
  60. Do compress the cpio filesystem with bzip2.
  61. config BR2_TARGET_ROOTFS_CPIO_LZ4
  62. bool "lz4"
  63. help
  64. Do compress the cpio filesystem with lz4.
  65. config BR2_TARGET_ROOTFS_CPIO_LZMA
  66. bool "lzma"
  67. help
  68. Do compress the cpio filesystem with lzma.
  69. config BR2_TARGET_ROOTFS_CPIO_LZO
  70. bool "lzo"
  71. help
  72. Do compress the cpio filesystem with lzop.
  73. config BR2_TARGET_ROOTFS_CPIO_XZ
  74. bool "xz"
  75. help
  76. Do compress the cpio filesystem with xz.
  77. config BR2_TARGET_ROOTFS_CPIO_ZSTD
  78. bool "zstd"
  79. help
  80. Do compress the cpio filesystem with zstd.
  81. endchoice
  82. config BR2_TARGET_ROOTFS_CPIO_UIMAGE
  83. bool "Create U-Boot image of the root filesystem"
  84. select BR2_PACKAGE_HOST_UBOOT_TOOLS
  85. help
  86. Add a U-Boot header to the cpio root filesystem. This allows
  87. the initramfs to be loaded with the bootm command in U-Boot.
  88. The U-Boot image will be called rootfs.cpio.uboot
  89. endif # BR2_TARGET_ROOTFS_CPIO