summaryrefslogtreecommitdiff
path: root/common/cli_readline.c
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-07-10 13:42:55 +0200
committerTom Rini <trini@konsulko.com>2022-11-21 09:23:00 -0500
commit2827c2f07d6a5c498262cee7fe78aacfbf44f174 (patch)
treef42641fdf3688dfbd6d518fb882beb9e6911e39b /common/cli_readline.c
parentbebb393b340295edb9ba50a996fc0510cd1b6ac0 (diff)
Fix usage of CONFIG_PREBOOT
Due to usage of PREBOOT in Kconfig, macro CONFIG_PREBOOT is always defined when CONFIG_USE_PREBOOT is enabled. In case CONFIG_PREBOOT is not explicitly enabled it is set to empty C string and therefore '#ifdef CONFIG_PREBOOT' guard does not work. Fix this issue by introducing a new Kconfig symbol PREBOOT_DEFINED which cause to define new C macro CONFIG_PREBOOT_DEFINED only when CONFIG_PREBOOT is really defined. Change usage of '#ifdef CONFIG_PREBOOT' by '#ifdef CONFIG_USE_PREBOOT' for code which checks if preboot code would be called and by '#ifdef CONFIG_PREBOOT_DEFINED' for defining preboot code. Signed-off-by: Pali Rohár <pali@kernel.org>
Diffstat (limited to 'common/cli_readline.c')
0 files changed, 0 insertions, 0 deletions