Pali Rohár 2827c2f07d 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>
2022-11-21 09:23:00 -05:00
..
2022-11-14 09:33:36 -05:00
2022-11-14 09:33:36 -05:00
2022-11-14 09:33:36 -05:00
2022-08-04 16:18:47 -04:00
2022-11-02 21:42:32 +01:00
2022-08-20 21:18:15 -04:00
2022-08-20 21:18:15 -04:00
2022-07-08 17:57:34 -04:00
2022-08-04 16:18:47 -04:00
2022-11-07 07:46:28 +01:00
2022-11-14 09:33:36 -05:00
2022-11-08 17:35:00 +01:00