]> git.sur5r.net Git - u-boot/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)
committerTom Rini <trini@ti.com>
Wed, 14 Jan 2015 16:37:39 +0000 (11:37 -0500)
commit9f9d8704b6566c24b6efaa23abc42cfbc5aadb36
tree8bc20fd152f95733ad6a73f59ba4b790f75684f9
parent38117231326cf65a70fc15b746d1241e2298b1ab
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