mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
configs: Add support in Kconfig and convert for armada boards
Move the DEFAULT_ENV_IS_RW to Kconfig for easier configuration. Hence, add the CONFIG_DEFAULT_ENV_IS_RW config to the defconfig files to allow enabling them for armada boards. Signed-off-by: Algapally Santosh Sagar <santoshsagar.algapally@amd.com> Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com> Reviewed-by: Simon Glass <sjg@chromium.org> Link: https://lore.kernel.org/r/20230921112043.3144726-2-venkatesh.abbarapu@amd.com Signed-off-by: Michal Simek <michal.simek@amd.com>
This commit is contained in:
committed by
Michal Simek
parent
3af0e9556c
commit
8819892bdb
@@ -30,7 +30,6 @@
|
||||
/*
|
||||
* Environment
|
||||
*/
|
||||
#define DEFAULT_ENV_IS_RW /* required for configuring default fdtfile= */
|
||||
|
||||
#ifdef CONFIG_MMC
|
||||
#define BOOT_TARGET_DEVICES_MMC(func, i) func(MMC, mmc, i)
|
||||
|
||||
@@ -21,7 +21,7 @@ env_t embedded_environment __UBOOT_ENV_SECTION__(environment) = {
|
||||
{
|
||||
#elif defined(DEFAULT_ENV_INSTANCE_STATIC)
|
||||
static char default_environment[] = {
|
||||
#elif defined(DEFAULT_ENV_IS_RW)
|
||||
#elif defined(CONFIG_DEFAULT_ENV_IS_RW)
|
||||
char default_environment[] = {
|
||||
#else
|
||||
const char default_environment[] = {
|
||||
|
||||
@@ -89,7 +89,7 @@ typedef struct environment_s {
|
||||
extern env_t embedded_environment;
|
||||
#endif /* ENV_IS_EMBEDDED */
|
||||
|
||||
#ifdef DEFAULT_ENV_IS_RW
|
||||
#ifdef CONFIG_DEFAULT_ENV_IS_RW
|
||||
extern char default_environment[];
|
||||
#else
|
||||
extern const char default_environment[];
|
||||
|
||||
Reference in New Issue
Block a user