[U-Boot] [PATCH v2 12/15] dm: drop CONFIG_DM_DEVICE_REMOVE from uncmd list
Simon Glass
sjg at chromium.org
Mon Aug 3 16:06:40 CEST 2015
On 1 August 2015 at 07:14, Masahiro Yamada
<yamada.masahiro at socionext.com> wrote:
> 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 at socionext.com>
> ---
>
> Changes in v2: None
>
> drivers/core/Makefile | 2 +-
> drivers/core/device.c | 6 +++---
> drivers/core/uclass.c | 4 ++--
> include/config_uncmd_spl.h | 1 -
> include/dm/device-internal.h | 10 +++++-----
> include/dm/uclass-internal.h | 4 ++--
> scripts/Makefile.uncmd_spl | 2 --
> 7 files changed, 13 insertions(+), 16 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list