diff options
author | Igor Opaniuk <igor.opaniuk@toradex.com> | 2020-05-04 21:54:38 +0300 |
---|---|---|
committer | Igor Opaniuk <igor.opaniuk@toradex.com> | 2020-05-05 12:09:23 +0300 |
commit | 77c102fe7fd1c7c495afbb47e9081d38374ded87 (patch) | |
tree | 270b18beff363cde05f46b197da9cdb8a13b8641 | |
parent | 10dcdc2135dc9bec980bce435305ce2d718c9fbb (diff) |
verdin-imx8mm: fix CONFIG_BOOTCOMMAND redefinition warnings
As default value for CONFIG_BOOTCOMMAND is already provided in
common/Kconfig, manually redefining without a check in verdin-imx8mm.h
leads to these warnings:
include/configs/verdin-imx8mm.h:111: warning: "CONFIG_BOOTCOMMAND" redefined
#define CONFIG_BOOTCOMMAND "setenv fdtfile " FDT_FILE " && run distro_bootcmd;"
In file included from ././include/linux/kconfig.h:4,
from <command-line>:
include/generated/autoconf.h:203: note: this is the location of the previous definition
#define CONFIG_BOOTCOMMAND "run distro_bootcmd"
Fix that by undefining the previous value.
Fixes: 099bc1b8ef("verdin-imx8mm: choose correct devicetree with configblock")
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
-rw-r--r-- | include/configs/verdin-imx8mm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/configs/verdin-imx8mm.h b/include/configs/verdin-imx8mm.h index 627fb69139..52b6766b70 100644 --- a/include/configs/verdin-imx8mm.h +++ b/include/configs/verdin-imx8mm.h @@ -108,6 +108,7 @@ /* Enable Distro Boot */ #ifndef CONFIG_SPL_BUILD +#undef CONFIG_BOOTCOMMAND #define CONFIG_BOOTCOMMAND "setenv fdtfile " FDT_FILE " && run distro_bootcmd;" #define BOOT_TARGET_DEVICES(func) \ func(MMC, mmc, 1) \ |