diff options
| author | Eugen Hristev <[email protected]> | 2021-08-19 14:09:41 +0300 |
|---|---|---|
| committer | Eugen Hristev <[email protected]> | 2021-09-21 10:07:04 +0300 |
| commit | 9e4bf2161c1c49b0dbf13cdf0ccc59dac3540e69 (patch) | |
| tree | b909fce3280213351578aad6b3afb0a69096f745 /include | |
| parent | d2b4809bde84f3074e47d2877a441161f79c254f (diff) | |
board: atmel: sama7g5ek: avoid rewriting of configured CONFIG_BOOTCOMMAND
Rewrite the CONFIG_BOOTCOMMAND only if it's not previously configured from
defconfig file.
This allows the user to select from defconfig/menuconfig the desired
boot command.
Adjust the current board defconfigs to reflect the default booting command
for the specific ENV configuration.
Signed-off-by: Eugen Hristev <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/configs/sama7g5ek.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/configs/sama7g5ek.h b/include/configs/sama7g5ek.h index ddf4f0bb330..9b7cc2ce4d0 100644 --- a/include/configs/sama7g5ek.h +++ b/include/configs/sama7g5ek.h @@ -24,7 +24,7 @@ GENERATED_GBL_DATA_SIZE) #endif -#undef CONFIG_BOOTCOMMAND +#ifndef CONFIG_BOOTCOMMAND #ifdef CONFIG_SD_BOOT /* u-boot env in sd/mmc card */ @@ -32,6 +32,10 @@ #define CONFIG_BOOTCOMMAND "fatload mmc " CONFIG_ENV_FAT_DEVICE_AND_PART " 0x61000000 at91-sama7g5ek.dtb; " \ "fatload mmc " CONFIG_ENV_FAT_DEVICE_AND_PART " 0x62000000 zImage; " \ "bootz 0x62000000 - 0x61000000" +#else +#define CONFIG_BOOTCOMMAND "Place your bootcommand here" +#endif + #endif #define CONFIG_ARP_TIMEOUT 200 |
