android: dtbo: enable depends on CONFIG_CMD_DTIMG
Change-Id: I04ba7d39fed1b5c6950a3882f04de5420dfcff2e Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
parent
93cbd3c1e3
commit
edac97f481
|
|
@ -598,7 +598,8 @@ int rockchip_read_dtb_file(void *fdt_addr)
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
#if defined(CONFIG_OF_LIBFDT_OVERLAY) && defined(CONFIG_USING_KERNEL_DTB)
|
#if defined(CONFIG_CMD_DTIMG) && \
|
||||||
|
defined(CONFIG_OF_LIBFDT_OVERLAY) && defined(CONFIG_USING_KERNEL_DTB)
|
||||||
android_fdt_overlay_apply((void *)fdt_addr);
|
android_fdt_overlay_apply((void *)fdt_addr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -476,7 +476,7 @@ out:
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_OF_LIBFDT_OVERLAY
|
#if defined(CONFIG_CMD_DTIMG) && defined(CONFIG_OF_LIBFDT_OVERLAY)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Default return index 0.
|
* Default return index 0.
|
||||||
|
|
@ -841,7 +841,8 @@ int android_bootloader_boot_flow(struct blk_desc *dev_desc,
|
||||||
* dtb and apply overlay in init_kernel_dtb(), so that we don't need to apply
|
* dtb and apply overlay in init_kernel_dtb(), so that we don't need to apply
|
||||||
* again, we would pass the current fdt to kernel.
|
* again, we would pass the current fdt to kernel.
|
||||||
*/
|
*/
|
||||||
#if defined(CONFIG_OF_LIBFDT_OVERLAY) && !defined(CONFIG_USING_KERNEL_DTB)
|
#if defined(CONFIG_CMD_DTIMG) && \
|
||||||
|
defined(CONFIG_OF_LIBFDT_OVERLAY) && !defined(CONFIG_USING_KERNEL_DTB)
|
||||||
android_fdt_overlay_apply((void *)fdt_addr);
|
android_fdt_overlay_apply((void *)fdt_addr);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue