1010216bd1ec132cd5f670dcc7ba81c3a34b9f1f
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / fs / jffs2 / Config.in
1 config BR2_TARGET_ROOTFS_JFFS2
2         bool "jffs2 root filesystem"
3         help
4           Build a jffs2 root filesystem
5
6 if BR2_TARGET_ROOTFS_JFFS2
7
8 choice
9         prompt "Flash Type"
10         default BR2_TARGET_ROOTFS_JFFS2_FLASH_128
11
12 config BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_1056
13         bool "AT45 dataflash with 1056 byte pagesize"
14         select BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
15
16 config BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_528
17         bool "AT45 dataflash with 528 byte pagesize"
18         select BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
19
20 config BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_16K
21         bool "NAND flash with 16 kB erasesize"
22         select BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
23
24 config BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_128K
25         bool "NAND flash with 128 kB erasesize"
26         select BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
27
28 config BR2_TARGET_ROOTFS_JFFS2_FLASH_128
29         bool "Parallel flash with 128 kB erase size"
30
31 config BR2_TARGET_ROOTFS_JFFS2_FLASH_64
32         bool "Parallel flash with 64 kB erase size"
33
34 config BR2_TARGET_ROOTFS_JFFS2_CUSTOM
35         bool "Select custom erase size"
36
37 endchoice
38
39 config BR2_TARGET_ROOTFS_JFFS2_CUSTOM_EBSIZE
40         hex "Erase block size"
41         depends on BR2_TARGET_ROOTFS_JFFS2_CUSTOM
42         default 0x20000
43         help
44           Set to erase size of memory
45
46 config BR2_TARGET_ROOTFS_JFFS2_EBSIZE
47         hex
48         default 0x2100 if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_1056
49         default 0x1080 if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_528
50         default 0x4000 if BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_16K
51         default 0x20000 if BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_128K
52         default 0x20000 if BR2_TARGET_ROOTFS_JFFS2_FLASH_128
53         default 0x10000 if BR2_TARGET_ROOTFS_JFFS2_FLASH_64
54         default BR2_TARGET_ROOTFS_JFFS2_CUSTOM_EBSIZE if BR2_TARGET_ROOTFS_JFFS2_CUSTOM
55
56 config BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
57         bool "Do not use Cleanmarker"
58         default y if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_1056
59         default y if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_528
60         default y if BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_16K
61         default y if BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_128K
62         help
63           Do not use cleanmarkers if using NAND flash or Dataflash where
64           the pagesize is not a power of 2
65
66 config BR2_TARGET_ROOTFS_JFFS2_PAD
67         bool "Pad output"
68
69 config BR2_TARGET_ROOTFS_JFFS2_PADSIZE
70         hex "Pad output size (0x0 = to end of EB)"
71         depends on BR2_TARGET_ROOTFS_JFFS2_PAD
72         default 0x0
73         help
74           Set to 0x0 to pad to end of erase block.
75
76 choice
77         prompt "Endianess"
78         default BR2_TARGET_ROOTFS_JFFS2_BE if BR2_ENDIAN = "BIG"
79
80 config BR2_TARGET_ROOTFS_JFFS2_LE
81         bool "little-endian"
82
83 config BR2_TARGET_ROOTFS_JFFS2_BE
84         bool "big-endian"
85
86 endchoice
87
88 config BR2_TARGET_ROOTFS_JFFS2_SUMMARY
89         bool "Produce a summarized JFFS2 image"
90         help
91           A summarised image can be mounted faster if support is
92           enabled in the kernel (CONFIG_JFFS2_SUMMARY)
93
94 config BR2_TARGET_ROOTFS_JFFS2_USE_CUSTOM_PAGESIZE
95         bool "Select custom virtual memory page size"
96         help
97           Use a custom virtual memory page size.  Note that this is not related to
98           the flash memory page size.  Using this option is only needed if Linux is
99           configured to use a page size different than 4kB.
100
101
102 config BR2_TARGET_ROOTFS_JFFS2_CUSTOM_PAGESIZE
103         hex "Virtual memory page size"
104         depends on BR2_TARGET_ROOTFS_JFFS2_USE_CUSTOM_PAGESIZE
105         default 0x1000
106         help
107           Set to virtual memory page size of target system (in bytes).  This value
108           should match the virtual page size in Linux (i.e. this should have the
109           same value as the value of the PAGE_SIZE macro in Linux).  It is not
110           related to the flash memory page size.
111
112 endif