X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=common%2Fspl%2Fspl_ubi.c;h=2f2d74a02de158b6573a1ed50370018c281ecd27;hb=166a77b34b30f64f7b12a3016b0bba49d568c52e;hp=0cb508088275ec0fb68dae25279822969a71217b;hpb=79b8d3c285f4f1c2ee4b27367f2ca3ecb76ed9ce;p=platform%2Fkernel%2Fu-boot.git diff --git a/common/spl/spl_ubi.c b/common/spl/spl_ubi.c index 0cb5080..2f2d74a 100644 --- a/common/spl/spl_ubi.c +++ b/common/spl/spl_ubi.c @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -44,7 +45,7 @@ int spl_ubi_load_image(struct spl_image_info *spl_image, info.leb_start = CONFIG_SPL_UBI_LEB_START; info.peb_count = CONFIG_SPL_UBI_MAX_PEBS - info.peb_offset; -#ifdef CONFIG_SPL_OS_BOOT +#if CONFIG_IS_ENABLED(OS_BOOT) if (!spl_start_uboot()) { volumes[0].vol_id = CONFIG_SPL_UBI_LOAD_KERNEL_ID; volumes[0].load_addr = (void *)CONFIG_SYS_LOAD_ADDR;