env: Add support for explicit write access list
[platform/kernel/u-boot.git] / env / Kconfig
1 menu "Environment"
2
3 config ENV_SUPPORT
4         def_bool y
5
6 config SAVEENV
7         def_bool y if CMD_SAVEENV
8
9 config ENV_OVERWRITE
10         bool "Enable overwriting environment"
11         help
12           Use this to permit overriding of certain environmental variables
13           like Ethernet and Serial
14
15 config ENV_IS_NOWHERE
16         bool "Environment is not stored"
17         default y if !ENV_IS_IN_EEPROM && !ENV_IS_IN_EXT4 && \
18                      !ENV_IS_IN_FAT && !ENV_IS_IN_FLASH && \
19                      !ENV_IS_IN_MMC && !ENV_IS_IN_NAND && \
20                      !ENV_IS_IN_NVRAM && !ENV_IS_IN_ONENAND && \
21                      !ENV_IS_IN_REMOTE && !ENV_IS_IN_SPI_FLASH && \
22                      !ENV_IS_IN_UBI
23         help
24           Define this if you don't want to or can't have an environment stored
25           on a storage medium. In this case the environment will still exist
26           while U-Boot is running, but once U-Boot exits it will not be
27           stored. U-Boot will therefore always start up with a default
28           environment.
29
30 config ENV_IS_IN_EEPROM
31         bool "Environment in EEPROM"
32         depends on !CHAIN_OF_TRUST
33         help
34           Use this if you have an EEPROM or similar serial access
35           device and a driver for it.
36
37           - CONFIG_ENV_OFFSET:
38           - CONFIG_ENV_SIZE:
39
40           These two #defines specify the offset and size of the
41           environment area within the total memory of your EEPROM.
42
43           Note that we consider the length of the address field to
44           still be one byte because the extra address bits are hidden
45           in the chip address.
46
47           - CONFIG_ENV_EEPROM_IS_ON_I2C
48           define this, if you have I2C and SPI activated, and your
49           EEPROM, which holds the environment, is on the I2C bus.
50
51           - CONFIG_I2C_ENV_EEPROM_BUS
52           if you have an Environment on an EEPROM reached over
53           I2C muxes, you can define here, how to reach this
54           EEPROM. For example:
55
56           #define CONFIG_I2C_ENV_EEPROM_BUS       1
57
58           EEPROM which holds the environment, is reached over
59           a pca9547 i2c mux with address 0x70, channel 3.
60
61 config ENV_IS_IN_FAT
62         bool "Environment is in a FAT filesystem"
63         depends on !CHAIN_OF_TRUST
64         default y if ARCH_BCM283X
65         default y if ARCH_SUNXI && MMC
66         default y if MMC_OMAP_HS && TI_COMMON_CMD_OPTIONS
67         select FS_FAT
68         select FAT_WRITE
69         help
70           Define this if you want to use the FAT file system for the environment.
71
72 config ENV_IS_IN_EXT4
73         bool "Environment is in a EXT4 filesystem"
74         depends on !CHAIN_OF_TRUST
75         select EXT4_WRITE
76         help
77           Define this if you want to use the EXT4 file system for the environment.
78
79 config ENV_IS_IN_FLASH
80         bool "Environment in flash memory"
81         depends on !CHAIN_OF_TRUST
82         default y if ARCH_CINTEGRATOR
83         default y if ARCH_INTEGRATOR_CP
84         default y if M548x || M547x || M5282 || MCF547x_8x
85         default y if MCF532x || MCF52x2
86         default y if MPC86xx || MPC83xx
87         default y if ARCH_MPC8572 || ARCH_MPC8548 || ARCH_MPC8641
88         default y if SH && !CPU_SH4
89         help
90           Define this if you have a flash device which you want to use for the
91           environment.
92
93           a) The environment occupies one whole flash sector, which is
94            "embedded" in the text segment with the U-Boot code. This
95            happens usually with "bottom boot sector" or "top boot
96            sector" type flash chips, which have several smaller
97            sectors at the start or the end. For instance, such a
98            layout can have sector sizes of 8, 2x4, 16, Nx32 kB. In
99            such a case you would place the environment in one of the
100            4 kB sectors - with U-Boot code before and after it. With
101            "top boot sector" type flash chips, you would put the
102            environment in one of the last sectors, leaving a gap
103            between U-Boot and the environment.
104
105           CONFIG_ENV_OFFSET:
106
107            Offset of environment data (variable area) to the
108            beginning of flash memory; for instance, with bottom boot
109            type flash chips the second sector can be used: the offset
110            for this sector is given here.
111
112            CONFIG_ENV_OFFSET is used relative to CONFIG_SYS_FLASH_BASE.
113
114           CONFIG_ENV_ADDR:
115
116            This is just another way to specify the start address of
117            the flash sector containing the environment (instead of
118            CONFIG_ENV_OFFSET).
119
120           CONFIG_ENV_SECT_SIZE:
121
122            Size of the sector containing the environment.
123
124
125           b) Sometimes flash chips have few, equal sized, BIG sectors.
126            In such a case you don't want to spend a whole sector for
127            the environment.
128
129           CONFIG_ENV_SIZE:
130
131            If you use this in combination with CONFIG_ENV_IS_IN_FLASH
132            and CONFIG_ENV_SECT_SIZE, you can specify to use only a part
133            of this flash sector for the environment. This saves
134            memory for the RAM copy of the environment.
135
136            It may also save flash memory if you decide to use this
137            when your environment is "embedded" within U-Boot code,
138            since then the remainder of the flash sector could be used
139            for U-Boot code. It should be pointed out that this is
140            STRONGLY DISCOURAGED from a robustness point of view:
141            updating the environment in flash makes it always
142            necessary to erase the WHOLE sector. If something goes
143            wrong before the contents has been restored from a copy in
144            RAM, your target system will be dead.
145
146           CONFIG_ENV_ADDR_REDUND
147
148            These settings describe a second storage area used to hold
149            a redundant copy of the environment data, so that there is
150            a valid backup copy in case there is a power failure during
151            a "saveenv" operation.
152
153           BE CAREFUL! Any changes to the flash layout, and some changes to the
154           source code will make it necessary to adapt <board>/u-boot.lds*
155           accordingly!
156
157 config ENV_IS_IN_MMC
158         bool "Environment in an MMC device"
159         depends on !CHAIN_OF_TRUST
160         depends on MMC
161         default y if ARCH_EXYNOS4
162         default y if MX6SX || MX7D
163         default y if TEGRA30 || TEGRA124
164         default y if TEGRA_ARMV8_COMMON
165         help
166           Define this if you have an MMC device which you want to use for the
167           environment.
168
169           CONFIG_SYS_MMC_ENV_DEV:
170
171           Specifies which MMC device the environment is stored in.
172
173           CONFIG_SYS_MMC_ENV_PART (optional):
174
175           Specifies which MMC partition the environment is stored in. If not
176           set, defaults to partition 0, the user area. Common values might be
177           1 (first MMC boot partition), 2 (second MMC boot partition).
178
179           CONFIG_ENV_OFFSET:
180           CONFIG_ENV_SIZE:
181
182           These two #defines specify the offset and size of the environment
183           area within the specified MMC device.
184
185           If offset is positive (the usual case), it is treated as relative to
186           the start of the MMC partition. If offset is negative, it is treated
187           as relative to the end of the MMC partition. This can be useful if
188           your board may be fitted with different MMC devices, which have
189           different sizes for the MMC partitions, and you always want the
190           environment placed at the very end of the partition, to leave the
191           maximum possible space before it, to store other data.
192
193           These two values are in units of bytes, but must be aligned to an
194           MMC sector boundary.
195
196           CONFIG_ENV_OFFSET_REDUND (optional):
197
198           Specifies a second storage area, of CONFIG_ENV_SIZE size, used to
199           hold a redundant copy of the environment data. This provides a
200           valid backup copy in case the other copy is corrupted, e.g. due
201           to a power failure during a "saveenv" operation.
202
203           This value may also be positive or negative; this is handled in the
204           same way as CONFIG_ENV_OFFSET.
205
206           This value is also in units of bytes, but must also be aligned to
207           an MMC sector boundary.
208
209 config ENV_IS_IN_NAND
210         bool "Environment in a NAND device"
211         depends on !CHAIN_OF_TRUST
212         help
213           Define this if you have a NAND device which you want to use for the
214           environment.
215
216           - CONFIG_ENV_OFFSET:
217           - CONFIG_ENV_SIZE:
218
219           These two #defines specify the offset and size of the environment
220           area within the first NAND device.  CONFIG_ENV_OFFSET must be
221           aligned to an erase block boundary.
222
223           - CONFIG_ENV_OFFSET_REDUND (optional):
224
225           This setting describes a second storage area of CONFIG_ENV_SIZE
226           size used to hold a redundant copy of the environment data, so
227           that there is a valid backup copy in case there is a power failure
228           during a "saveenv" operation.  CONFIG_ENV_OFFSET_REDUND must be
229           aligned to an erase block boundary.
230
231           - CONFIG_ENV_RANGE (optional):
232
233           Specifies the length of the region in which the environment
234           can be written.  This should be a multiple of the NAND device's
235           block size.  Specifying a range with more erase blocks than
236           are needed to hold CONFIG_ENV_SIZE allows bad blocks within
237           the range to be avoided.
238
239           - CONFIG_ENV_OFFSET_OOB (optional):
240
241           Enables support for dynamically retrieving the offset of the
242           environment from block zero's out-of-band data.  The
243           "nand env.oob" command can be used to record this offset.
244           Currently, CONFIG_ENV_OFFSET_REDUND is not supported when
245           using CONFIG_ENV_OFFSET_OOB.
246
247 config ENV_IS_IN_NVRAM
248         bool "Environment in a non-volatile RAM"
249         depends on !CHAIN_OF_TRUST
250         help
251           Define this if you have some non-volatile memory device
252           (NVRAM, battery buffered SRAM) which you want to use for the
253           environment.
254
255           - CONFIG_ENV_ADDR:
256           - CONFIG_ENV_SIZE:
257
258           These two #defines are used to determine the memory area you
259           want to use for environment. It is assumed that this memory
260           can just be read and written to, without any special
261           provision.
262
263 config ENV_IS_IN_ONENAND
264         bool "Environment is in OneNAND"
265         depends on !CHAIN_OF_TRUST
266         help
267           Define this if you want to put your local device's environment in
268           OneNAND.
269
270           - CONFIG_ENV_ADDR:
271           - CONFIG_ENV_SIZE:
272
273           These two #defines are used to determine the device range you
274           want to use for environment. It is assumed that this memory
275           can just be read and written to, without any special
276           provision.
277
278 config ENV_IS_IN_REMOTE
279         bool "Environment is in remote memory space"
280         depends on !CHAIN_OF_TRUST
281         help
282           Define this if you have a remote memory space which you
283           want to use for the local device's environment.
284
285           - CONFIG_ENV_ADDR:
286           - CONFIG_ENV_SIZE:
287
288           These two #defines specify the address and size of the
289           environment area within the remote memory space. The
290           local device can get the environment from remote memory
291           space by SRIO or PCIE links.
292
293 config ENV_IS_IN_SPI_FLASH
294         bool "Environment is in SPI flash"
295         depends on !CHAIN_OF_TRUST && SPI
296         default y if ARMADA_XP
297         default y if INTEL_BAYTRAIL
298         default y if INTEL_BRASWELL
299         default y if INTEL_BROADWELL
300         default y if NORTHBRIDGE_INTEL_IVYBRIDGE
301         default y if INTEL_QUARK
302         default y if INTEL_QUEENSBAY
303         help
304           Define this if you have a SPI Flash memory device which you
305           want to use for the environment.
306
307           - CONFIG_ENV_OFFSET:
308           - CONFIG_ENV_SIZE:
309
310           These two #defines specify the offset and size of the
311           environment area within the SPI Flash. CONFIG_ENV_OFFSET must be
312           aligned to an erase sector boundary.
313
314           - CONFIG_ENV_SECT_SIZE:
315
316           Define the SPI flash's sector size.
317
318           - CONFIG_ENV_OFFSET_REDUND (optional):
319
320           This setting describes a second storage area of CONFIG_ENV_SIZE
321           size used to hold a redundant copy of the environment data, so
322           that there is a valid backup copy in case there is a power failure
323           during a "saveenv" operation. CONFIG_ENV_OFFSET_REDUND must be
324           aligned to an erase sector boundary.
325
326 config USE_ENV_SPI_BUS
327         bool "SPI flash bus for environment"
328         depends on ENV_IS_IN_SPI_FLASH
329         help
330           Force the SPI bus for environment.
331           If not defined, use CONFIG_SF_DEFAULT_BUS.
332
333 config ENV_SPI_BUS
334         int "Value of SPI flash bus for environment"
335         depends on USE_ENV_SPI_BUS
336         help
337           Value the SPI bus and chip select for environment.
338
339 config USE_ENV_SPI_CS
340         bool "SPI flash chip select for environment"
341         depends on ENV_IS_IN_SPI_FLASH
342         help
343           Force the SPI chip select for environment.
344           If not defined, use CONFIG_SF_DEFAULT_CS.
345
346 config ENV_SPI_CS
347         int "Value of SPI flash chip select for environment"
348         depends on USE_ENV_SPI_CS
349         help
350           Value of the SPI chip select for environment.
351
352 config USE_ENV_SPI_MAX_HZ
353         bool "SPI flash max frequency for environment"
354         depends on ENV_IS_IN_SPI_FLASH
355         help
356           Force the SPI max work clock for environment.
357           If not defined, use CONFIG_SF_DEFAULT_SPEED.
358
359 config ENV_SPI_MAX_HZ
360         int "Value of SPI flash max frequency for environment"
361         depends on USE_ENV_SPI_MAX_HZ
362         help
363           Value of the SPI max work clock for environment.
364
365 config USE_ENV_SPI_MODE
366         bool "SPI flash mode for environment"
367         depends on ENV_IS_IN_SPI_FLASH
368         help
369           Force the SPI work mode for environment.
370
371 config ENV_SPI_MODE
372         hex "Value of SPI flash work mode for environment"
373         depends on USE_ENV_SPI_MODE
374         help
375           Value of the SPI work mode for environment.
376           See include/spi.h for value.
377
378 config ENV_IS_IN_UBI
379         bool "Environment in a UBI volume"
380         depends on !CHAIN_OF_TRUST
381         depends on MTD_UBI
382         depends on CMD_UBI
383         help
384           Define this if you have an UBI volume that you want to use for the
385           environment.  This has the benefit of wear-leveling the environment
386           accesses, which is important on NAND.
387
388           - CONFIG_ENV_UBI_PART:
389
390           Define this to a string that is the mtd partition containing the UBI.
391
392           - CONFIG_ENV_UBI_VOLUME:
393
394           Define this to the name of the volume that you want to store the
395           environment in.
396
397           - CONFIG_ENV_UBI_VOLUME_REDUND:
398
399           Define this to the name of another volume to store a second copy of
400           the environment in.  This will enable redundant environments in UBI.
401           It is assumed that both volumes are in the same MTD partition.
402
403 config SYS_REDUNDAND_ENVIRONMENT
404         bool "Enable redundant environment support"
405         depends on ENV_IS_IN_EEPROM || ENV_IS_IN_FLASH || ENV_IS_IN_MMC || \
406                 ENV_IS_IN_NAND || ENV_IS_IN_SPI_FLASH || ENV_IS_IN_UBI
407         help
408           Normally, the environemt is stored in a single location.  By
409           selecting this option, you can then define where to hold a redundant
410           copy of the environment data, so that there is a valid backup copy in
411           case there is a power failure during a "saveenv" operation.
412
413 config ENV_FAT_INTERFACE
414         string "Name of the block device for the environment"
415         depends on ENV_IS_IN_FAT
416         default "mmc"
417         help
418           Define this to a string that is the name of the block device.
419
420 config ENV_FAT_DEVICE_AND_PART
421         string "Device and partition for where to store the environemt in FAT"
422         depends on ENV_IS_IN_FAT
423         default "0:1" if TI_COMMON_CMD_OPTIONS
424         default "0:auto" if ARCH_ZYNQMP
425         default "0:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1
426         default "1:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1
427         default "0" if ARCH_AT91
428         help
429           Define this to a string to specify the partition of the device. It can
430           be as following:
431
432             "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1)
433                - "D:P": device D partition P. Error occurs if device D has no
434                         partition table.
435                - "D:0": device D.
436                - "D" or "D:": device D partition 1 if device D has partition
437                               table, or the whole device D if has no partition
438                               table.
439                - "D:auto": first partition in device D with bootable flag set.
440                            If none, first valid partition in device D. If no
441                            partition table then means device D.
442
443           If ENV_FAT_INTERFACE is set to "mmc" then device 'D' can be omitted,
444           leaving the string starting with a colon, and the boot device will
445           be used.
446
447 config ENV_FAT_FILE
448         string "Name of the FAT file to use for the environment"
449         depends on ENV_IS_IN_FAT
450         default "uboot.env"
451         help
452           It's a string of the FAT file name. This file use to store the
453           environment.
454
455 config ENV_EXT4_INTERFACE
456         string "Name of the block device for the environment"
457         depends on ENV_IS_IN_EXT4
458         help
459           Define this to a string that is the name of the block device.
460
461 config ENV_EXT4_DEVICE_AND_PART
462         string "Device and partition for where to store the environemt in EXT4"
463         depends on ENV_IS_IN_EXT4
464         help
465           Define this to a string to specify the partition of the device. It can
466           be as following:
467
468             "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1)
469                - "D:P": device D partition P. Error occurs if device D has no
470                         partition table.
471                - "D:0": device D.
472                - "D" or "D:": device D partition 1 if device D has partition
473                               table, or the whole device D if has no partition
474                               table.
475                - "D:auto": first partition in device D with bootable flag set.
476                            If none, first valid partition in device D. If no
477                            partition table then means device D.
478
479 config ENV_EXT4_FILE
480         string "Name of the EXT4 file to use for the environment"
481         depends on ENV_IS_IN_EXT4
482         default "/uboot.env"
483         help
484           It's a string of the EXT4 file name. This file use to store the
485           environment (explicit path to the file)
486
487 config ENV_ADDR
488         hex "Environment address"
489         depends on ENV_IS_IN_FLASH || ENV_IS_IN_NVRAM || ENV_IS_IN_ONENAND || \
490                      ENV_IS_IN_REMOTE || ENV_IS_IN_SPI_FLASH
491         default 0x0 if ENV_IS_IN_SPI_FLASH
492         help
493           Offset from the start of the device (or partition)
494
495 config ENV_ADDR_REDUND
496         hex "Redundant environment address"
497         depends on ENV_IS_IN_FLASH && SYS_REDUNDAND_ENVIRONMENT
498         help
499           Offset from the start of the device (or partition) of the redundant
500           environment location.
501
502 config ENV_OFFSET
503         hex "Environment offset"
504         depends on ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \
505                     ENV_IS_IN_SPI_FLASH
506         default 0x3f8000 if ARCH_ROCKCHIP && ENV_IS_IN_MMC
507         default 0x140000 if ARCH_ROCKCHIP && ENV_IS_IN_SPI_FLASH
508         default 0x88000 if ARCH_SUNXI
509         default 0xE0000 if ARCH_ZYNQ
510         default 0x1E00000 if ARCH_ZYNQMP
511         default 0x7F40000 if ARCH_VERSAL
512         default 0 if ARC
513         default 0x140000 if ARCH_AT91
514         default 0x260000 if ARCH_OMAP2PLUS
515         default 0x1080000 if MICROBLAZE && ENV_IS_IN_SPI_FLASH
516         help
517           Offset from the start of the device (or partition)
518
519 config ENV_OFFSET_REDUND
520         hex "Redundant environment offset"
521         depends on (ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \
522                     ENV_IS_IN_SPI_FLASH) && SYS_REDUNDAND_ENVIRONMENT
523         help
524           Offset from the start of the device (or partition) of the redundant
525           environment location.
526
527 config ENV_SIZE
528         hex "Environment Size"
529         default 0x40000 if ENV_IS_IN_SPI_FLASH && ARCH_ZYNQMP
530         default 0x20000 if ARCH_SUNXI || ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91
531         default 0x8000 if ARCH_ROCKCHIP && ENV_IS_IN_MMC
532         default 0x2000 if ARCH_ROCKCHIP && ENV_IS_IN_SPI_FLASH
533         default 0x8000 if ARCH_ZYNQMP || ARCH_VERSAL
534         default 0x4000 if ARC
535         default 0x1f000
536         help
537           Size of the environment storage area
538
539 config ENV_SECT_SIZE
540         hex "Environment Sector-Size"
541         depends on ENV_IS_IN_FLASH || ENV_IS_IN_SPI_FLASH
542         default 0x2000 if ARCH_ROCKCHIP
543         default 0x40000 if ARCH_ZYNQMP || ARCH_VERSAL
544         default 0x20000 if ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91
545         default 0x20000 if MICROBLAZE && ENV_IS_IN_SPI_FLASH
546         help
547           Size of the sector containing the environment.
548
549 config ENV_UBI_PART
550         string "UBI partition name"
551         depends on ENV_IS_IN_UBI
552         help
553           MTD partition containing the UBI device
554
555 config ENV_UBI_VOLUME
556         string "UBI volume name"
557         depends on ENV_IS_IN_UBI
558         help
559           Name of the volume that you want to store the environment in.
560
561 config ENV_UBI_VOLUME_REDUND
562         string "UBI redundant volume name"
563         depends on ENV_IS_IN_UBI && SYS_REDUNDAND_ENVIRONMENT
564         help
565           Name of the redundant volume that you want to store the environment in.
566
567 config ENV_UBI_VID_OFFSET
568         int "ubi environment VID offset"
569         depends on ENV_IS_IN_UBI
570         default 0
571         help
572           UBI VID offset for environment. If 0, no custom VID offset is used.
573
574 config SYS_RELOC_GD_ENV_ADDR
575         bool "Relocate gd->env_addr"
576         help
577           Relocate the early env_addr pointer so we know it is not inside
578           the binary. Some systems need this and for the rest, it doesn't hurt.
579
580 config USE_DEFAULT_ENV_FILE
581         bool "Create default environment from file"
582         help
583           Normally, the default environment is automatically generated
584           based on the settings of various CONFIG_* options, as well
585           as the CONFIG_EXTRA_ENV_SETTINGS. By selecting this option,
586           you can instead define the entire default environment in an
587           external file.
588
589 config DEFAULT_ENV_FILE
590         string "Path to default environment file"
591         depends on USE_DEFAULT_ENV_FILE
592         help
593           The path containing the default environment. The format is
594           the same as accepted by the mkenvimage tool: lines
595           containing key=value pairs, blank lines and lines beginning
596           with # are ignored.
597
598 config ENV_VARS_UBOOT_RUNTIME_CONFIG
599         bool "Add run-time information to the environment"
600         help
601           Enable this in order to add variables describing certain
602           run-time determined information about the hardware to the
603           environment.  These will be named board_name, board_rev.
604
605 config DELAY_ENVIRONMENT
606         bool "Delay environment loading"
607         depends on !OF_CONTROL
608         help
609           Enable this to inhibit loading the environment during board
610           initialization. This can address the security risk of untrusted data
611           being used during boot. Normally the environment is loaded when the
612           board is initialised so that it is available to U-Boot. This inhibits
613           that so that the environment is not available until explicitly loaded
614           later by U-Boot code. With CONFIG_OF_CONTROL this is instead
615           controlled by the value of /config/load-environment.
616
617 config ENV_APPEND
618         bool "Always append the environment with new data"
619         default n
620         help
621           If defined, the environment hash table is only ever appended with new
622           data, but the existing hash table can never be dropped and reloaded
623           with newly imported data. This may be used in combination with static
624           flags to e.g. to protect variables which must not be modified.
625
626 config ENV_WRITEABLE_LIST
627         bool "Permit write access only to listed variables"
628         default n
629         help
630           If defined, only environment variables which explicitly set the 'w'
631           writeable flag can be written and modified at runtime. No variables
632           can be otherwise created, written or imported into the environment.
633
634 config ENV_ACCESS_IGNORE_FORCE
635         bool "Block forced environment operations"
636         default n
637         help
638           If defined, don't allow the -f switch to env set override variable
639           access flags.
640
641 if SPL_ENV_SUPPORT
642 config SPL_ENV_IS_NOWHERE
643         bool "SPL Environment is not stored"
644         default y if ENV_IS_NOWHERE
645         help
646           Similar to ENV_IS_NOWHERE, used for SPL environment.
647
648 config SPL_ENV_IS_IN_MMC
649         bool "SPL Environment in an MMC device"
650         depends on !SPL_ENV_IS_NOWHERE
651         depends on ENV_IS_IN_MMC
652         default y
653         help
654           Similar to ENV_IS_IN_MMC, used for SPL environment.
655
656 config SPL_ENV_IS_IN_FAT
657         bool "SPL Environment is in a FAT filesystem"
658         depends on !SPL_ENV_IS_NOWHERE
659         depends on ENV_IS_IN_FAT
660         default y
661         help
662           Similar to ENV_IS_IN_FAT, used for SPL environment.
663
664 config SPL_ENV_IS_IN_EXT4
665         bool "SPL Environment is in a EXT4 filesystem"
666         depends on !SPL_ENV_IS_NOWHERE
667         depends on ENV_IS_IN_EXT4
668         default y
669         help
670           Similar to ENV_IS_IN_EXT4, used for SPL environment.
671
672 config SPL_ENV_IS_IN_NAND
673         bool "SPL Environment in a NAND device"
674         depends on !SPL_ENV_IS_NOWHERE
675         depends on ENV_IS_IN_NAND
676         default y
677         help
678           Similar to ENV_IS_IN_NAND, used for SPL environment.
679
680 config SPL_ENV_IS_IN_SPI_FLASH
681         bool "SPL Environment is in SPI flash"
682         depends on !SPL_ENV_IS_NOWHERE
683         depends on ENV_IS_IN_SPI_FLASH
684         default y
685         help
686           Similar to ENV_IS_IN_SPI_FLASH, used for SPL environment.
687
688 config SPL_ENV_IS_IN_FLASH
689         bool "SPL Environment in flash memory"
690         depends on !SPL_ENV_IS_NOWHERE
691         depends on ENV_IS_IN_FLASH
692         default y
693         help
694           Similar to ENV_IS_IN_FLASH, used for SPL environment.
695
696 endif
697
698 if TPL_ENV_SUPPORT
699
700 config TPL_ENV_IS_NOWHERE
701         bool "TPL Environment is not stored"
702         default y if ENV_IS_NOWHERE
703         help
704           Similar to ENV_IS_NOWHERE, used for TPL environment.
705
706 config TPL_ENV_IS_IN_MMC
707         bool "TPL Environment in an MMC device"
708         depends on !TPL_ENV_IS_NOWHERE
709         depends on ENV_IS_IN_MMC
710         default y
711         help
712           Similar to ENV_IS_IN_MMC, used for TPL environment.
713
714 config TPL_ENV_IS_IN_FAT
715         bool "TPL Environment is in a FAT filesystem"
716         depends on !TPL_ENV_IS_NOWHERE
717         depends on ENV_IS_IN_FAT
718         default y
719         help
720           Similar to ENV_IS_IN_FAT, used for TPL environment.
721
722 config TPL_ENV_IS_IN_EXT4
723         bool "TPL Environment is in a EXT4 filesystem"
724         depends on !TPL_ENV_IS_NOWHERE
725         depends on ENV_IS_IN_EXT4
726         default y
727         help
728           Similar to ENV_IS_IN_EXT4, used for TPL environment.
729
730 config TPL_ENV_IS_IN_NAND
731         bool "TPL Environment in a NAND device"
732         depends on !TPL_ENV_IS_NOWHERE
733         depends on ENV_IS_IN_NAND
734         default y
735         help
736           Similar to ENV_IS_IN_NAND, used for TPL environment.
737
738 config TPL_ENV_IS_IN_SPI_FLASH
739         bool "TPL Environment is in SPI flash"
740         depends on !TPL_ENV_IS_NOWHERE
741         depends on ENV_IS_IN_SPI_FLASH
742         default y
743         help
744           Similar to ENV_IS_IN_SPI_FLASH, used for TPL environment.
745
746 config TPL_ENV_IS_IN_FLASH
747         bool "TPL Environment in flash memory"
748         depends on !TPL_ENV_IS_NOWHERE
749         depends on ENV_IS_IN_FLASH
750         default y
751         help
752           Similar to ENV_IS_IN_FLASH, used for TPL environment.
753
754 endif
755
756 endmenu