From: Ezequiel Garcia Date: Sat, 25 May 2019 22:19:41 +0000 (-0300) Subject: wandboard: Rework Makefile to prevent spl.o from being built X-Git-Tag: v2019.07~36^2~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ef237ad6faf0765985e2942c968f9834bc791ef;p=platform%2Fkernel%2Fu-boot.git wandboard: Rework Makefile to prevent spl.o from being built The spl.c source was entirely conditioned by CONFIG_SPL_BUILD. Change this moving CONFIG_SPL_BUILD to be used in the Makefile, which is slightly cleaner and more readable. Signed-off-by: Ezequiel Garcia --- diff --git a/board/wandboard/Makefile b/board/wandboard/Makefile index 6e886f7..c3d8053 100644 --- a/board/wandboard/Makefile +++ b/board/wandboard/Makefile @@ -2,4 +2,5 @@ # # (C) Copyright 2013 Freescale Semiconductor, Inc. -obj-y := wandboard.o spl.o +obj-y := wandboard.o +obj-$(CONFIG_SPL_BUILD) += spl.o diff --git a/board/wandboard/spl.c b/board/wandboard/spl.c index 000cb10..7b0f15a 100644 --- a/board/wandboard/spl.c +++ b/board/wandboard/spl.c @@ -20,7 +20,6 @@ #include #include -#if defined(CONFIG_SPL_BUILD) #include /* * Driving strength: @@ -513,5 +512,3 @@ int board_mmc_init(bd_t *bis) return 0; } - -#endif