u-boot/common/spl
Masahiro Yamada 0f9258228e of: clean up OF_CONTROL ifdef conditionals
We have flipped CONFIG_SPL_DISABLE_OF_CONTROL.  We have cleansing
devices, $(SPL_) and CONFIG_IS_ENABLED(), so we are ready to clear
away the ugly logic in include/fdtdec.h:

 #ifdef CONFIG_OF_CONTROL
 # if defined(CONFIG_SPL_BUILD) && !defined(SPL_OF_CONTROL)
 #  define OF_CONTROL 0
 # else
 #  define OF_CONTROL 1
 # endif
 #else
 # define OF_CONTROL 0
 #endif

Now CONFIG_IS_ENABLED(OF_CONTROL) is the substitute.  It refers to
CONFIG_OF_CONTROL for U-boot proper and CONFIG_SPL_OF_CONTROL for
SPL.

Also, we no longer have to cancel CONFIG_OF_CONTROL in
include/config_uncmd_spl.h and scripts/Makefile.spl.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
2015-08-18 13:46:05 -04:00
..
Makefile spl: Add EXT support to SPL 2014-10-27 17:54:03 -04:00
spl_ext.c spl: Fix SPL EXT support 2014-11-26 11:21:16 -05:00
spl_fat.c spl: do not hang in spl_register_fat_device but return error value. It allows to use both CONFIG_SPL_FAT_SUPPORT and CONFIG_SPL_EXT_SUPPORT. 2014-10-27 17:54:08 -04:00
spl_mmc.c spl: Fix compile warning for arm64 2015-08-12 20:47:56 -04:00
spl_nand.c armv8/ls2085aqds: NAND boot support 2015-04-23 16:46:50 -07:00
spl_net.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
spl_nor.c spl, spl_nor: fix compiler warning 2015-02-16 15:48:34 -05:00
spl_onenand.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
spl_sata.c remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00
spl_usb.c Rename some defines containing FAT in their name to be filesystem generic 2014-10-27 11:04:01 -04:00
spl_ymodem.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
spl.c of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00