mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
0a5804b53a
We do not want to compile the DM remove code for SPL. Currently, we undef it in include/config_uncmd_spl.h (for C files) and in scripts/Makefile.uncmd_spl (for Makefiles). This is really ugly. This commit demonstrates how we can deprecate those two files. Use $(SPL_) for the entry in the Makfile and CONFIG_IS_ENABLED() in C files. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
19 lines
284 B
Makefile
19 lines
284 B
Makefile
# Makefile version of include/config_uncmd_spl.h
|
|
#
|
|
# TODO: Invent a better way
|
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
ifdef CONFIG_SPL_DISABLE_OF_CONTROL
|
|
CONFIG_OF_CONTROL=
|
|
endif
|
|
|
|
ifndef CONFIG_SPL_DM
|
|
CONFIG_DM_SERIAL=
|
|
CONFIG_DM_GPIO=
|
|
CONIFG_DM_I2C=
|
|
CONFIG_DM_SPI=
|
|
CONFIG_DM_SPI_FLASH=
|
|
endif
|
|
|
|
endif
|