]> code.ossystems Code Review - bsp/u-boot.git/commit
spl: spl_nor: surround Linux-load code with #ifdef CONFIG_SPL_OS_BOOT
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Thu, 8 Jan 2015 10:23:35 +0000 (19:23 +0900)
committerOtavio Salvador <otavio@ossystems.com.br>
Sun, 1 Feb 2015 21:31:55 +0000 (19:31 -0200)
commit5358bead2337caebfdf9cfc6540358b12d9d9f22
treec3e02d080819b9650243883030333279f932e260
parentf0415450ab054d20969eec80a60f119f84266cf1
spl: spl_nor: surround Linux-load code with #ifdef CONFIG_SPL_OS_BOOT

If CONFIG_SPL_NOR_SUPPORT is defined, spl_nor_load_image() requires
spl_start_uboot(), CONFIG_SYS_OS_BASE, CONFIG_SYS_SPL_ARGS_ADDR,
CONFIG_SYS_FDT_BASE to be defined even if users just want to run
U-Boot, not Linux.  This is inconvenient.

This patch is following the codying style of common/spl/spl_nand.c.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
common/spl/spl_nor.c