dm: drop CONFIG_DM_DEVICE_REMOVE from uncmd list
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>
Showing
- drivers/core/Makefile 1 addition, 1 deletiondrivers/core/Makefile
- drivers/core/device.c 3 additions, 3 deletionsdrivers/core/device.c
- drivers/core/uclass.c 2 additions, 2 deletionsdrivers/core/uclass.c
- include/config_uncmd_spl.h 0 additions, 1 deletioninclude/config_uncmd_spl.h
- include/dm/device-internal.h 5 additions, 5 deletionsinclude/dm/device-internal.h
- include/dm/uclass-internal.h 2 additions, 2 deletionsinclude/dm/uclass-internal.h
- scripts/Makefile.uncmd_spl 0 additions, 2 deletionsscripts/Makefile.uncmd_spl
Loading
Please register or sign in to comment