mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-03 21:48:15 +00:00 
			
		
		
		
	Convert CONFIG_ENV_MIN_ENTRIES et al to Kconfig
This converts the following to Kconfig: CONFIG_ENV_MIN_ENTRIES CONFIG_ENV_MAX_ENTRIES Cc: Michal Simek <michal.simek@amd.com> Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
		
							parent
							
								
									910feb50d4
								
							
						
					
					
						commit
						82e0b51ccb
					
				
							
								
								
									
										8
									
								
								README
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								README
									
									
									
									
									
								
							@ -1877,14 +1877,6 @@ Configuration Settings:
 | 
			
		||||
		while unprotecting/erasing/programming. Please only enable
 | 
			
		||||
		this option if you really know what you are doing.
 | 
			
		||||
 | 
			
		||||
- CONFIG_ENV_MAX_ENTRIES
 | 
			
		||||
 | 
			
		||||
	Maximum number of entries in the hash table that is used
 | 
			
		||||
	internally to store the environment settings. The default
 | 
			
		||||
	setting is supposed to be generous and should work in most
 | 
			
		||||
	cases. This setting can be used to tune behaviour; see
 | 
			
		||||
	lib/hashtable.c for details.
 | 
			
		||||
 | 
			
		||||
- CONFIG_ENV_FLAGS_LIST_DEFAULT
 | 
			
		||||
- CONFIG_ENV_FLAGS_LIST_STATIC
 | 
			
		||||
	Enable validation of the values given to environment variables when
 | 
			
		||||
 | 
			
		||||
@ -50,6 +50,7 @@ CONFIG_CMD_TIME=y
 | 
			
		||||
CONFIG_CMD_MVEBU_BUBT=y
 | 
			
		||||
# CONFIG_SPL_PARTITION_UUIDS is not set
 | 
			
		||||
CONFIG_ENV_OVERWRITE=y
 | 
			
		||||
CONFIG_ENV_MIN_ENTRIES=128
 | 
			
		||||
CONFIG_ARP_TIMEOUT=200
 | 
			
		||||
CONFIG_NET_RETRY_COUNT=50
 | 
			
		||||
CONFIG_NET_RANDOM_ETHADDR=y
 | 
			
		||||
 | 
			
		||||
@ -51,6 +51,7 @@ CONFIG_CMD_TIME=y
 | 
			
		||||
CONFIG_CMD_MVEBU_BUBT=y
 | 
			
		||||
# CONFIG_SPL_PARTITION_UUIDS is not set
 | 
			
		||||
CONFIG_ENV_OVERWRITE=y
 | 
			
		||||
CONFIG_ENV_MIN_ENTRIES=128
 | 
			
		||||
CONFIG_ARP_TIMEOUT=200
 | 
			
		||||
CONFIG_NET_RETRY_COUNT=50
 | 
			
		||||
CONFIG_NET_RANDOM_ETHADDR=y
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										16
									
								
								env/Kconfig
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								env/Kconfig
									
									
									
									
										vendored
									
									
								
							@ -30,6 +30,22 @@ config ENV_OVERWRITE
 | 
			
		||||
	  Use this to permit overriding of certain environmental variables
 | 
			
		||||
	  like Ethernet and Serial
 | 
			
		||||
 | 
			
		||||
config ENV_MIN_ENTRIES
 | 
			
		||||
	int "Minimum number of entries in the environment hashtable"
 | 
			
		||||
	default 64
 | 
			
		||||
	help
 | 
			
		||||
	  Minimum number of entries in the hash table that is used internally
 | 
			
		||||
	  to store the environment settings.
 | 
			
		||||
 | 
			
		||||
config ENV_MAX_ENTRIES
 | 
			
		||||
	int "Maximumm number of entries in the environment hashtable"
 | 
			
		||||
	default 512
 | 
			
		||||
	help
 | 
			
		||||
	  Maximum number of entries in the hash table that is used internally
 | 
			
		||||
	  to store the environment settings. The default setting is supposed to
 | 
			
		||||
	  be generous and should work in most cases. This setting can be used
 | 
			
		||||
	  to tune behaviour; see lib/hashtable.c for details.
 | 
			
		||||
 | 
			
		||||
config ENV_IS_NOWHERE
 | 
			
		||||
	bool "Environment is not stored"
 | 
			
		||||
	default y if !ENV_IS_IN_EEPROM && !ENV_IS_IN_EXT4 && \
 | 
			
		||||
 | 
			
		||||
@ -18,8 +18,6 @@
 | 
			
		||||
 * U-Boot into it.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#define CONFIG_ENV_MIN_ENTRIES		128
 | 
			
		||||
 | 
			
		||||
/* Environment in MMC */
 | 
			
		||||
/*
 | 
			
		||||
 * For SD - reserve 1 LBA for MBR + 1M for u-boot image. The MMC/eMMC
 | 
			
		||||
 | 
			
		||||
@ -18,8 +18,6 @@
 | 
			
		||||
 * U-Boot into it.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#define CONFIG_ENV_MIN_ENTRIES		128
 | 
			
		||||
 | 
			
		||||
/* Environment in MMC */
 | 
			
		||||
/*
 | 
			
		||||
 * For SD - reserve 1 LBA for MBR + 1M for u-boot image. The MMC/eMMC
 | 
			
		||||
 | 
			
		||||
@ -207,11 +207,6 @@
 | 
			
		||||
 | 
			
		||||
/* ATF is my kernel image */
 | 
			
		||||
 | 
			
		||||
#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_DFU)
 | 
			
		||||
# define CONFIG_SPL_HASH
 | 
			
		||||
# define CONFIG_ENV_MAX_ENTRIES	10
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef CONFIG_SPL_SYS_MALLOC_SIMPLE
 | 
			
		||||
# error "Disable CONFIG_SPL_SYS_MALLOC_SIMPLE. Full malloc needs to be used"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
@ -35,13 +35,6 @@
 | 
			
		||||
# include <linux/ctype.h>
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef	CONFIG_ENV_MIN_ENTRIES	/* minimum number of entries */
 | 
			
		||||
#define	CONFIG_ENV_MIN_ENTRIES 64
 | 
			
		||||
#endif
 | 
			
		||||
#ifndef	CONFIG_ENV_MAX_ENTRIES	/* maximum number of entries */
 | 
			
		||||
#define	CONFIG_ENV_MAX_ENTRIES 512
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#define USED_FREE 0
 | 
			
		||||
#define USED_DELETED -1
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user