common: fastboot: configure android partition tables
authorChanho Park <chanho61.park@samsung.com>
Fri, 3 Jul 2015 05:00:35 +0000 (14:00 +0900)
committerChanho Park <chanho61.park@samsung.com>
Fri, 24 Jul 2015 07:30:14 +0000 (16:30 +0900)
This patch is the first step to use fastboot non-android system. This
patch changes android specific partitions could be used only if defined
CONFIG_ANDROID_PARTITIONS.

Signed-off-by: Chanho Park <chanho61.park@samsung.com>
common/cmd_fastboot.c

index a4a234368fed9e5e10e92b457f82452ead50d82c..292f69f96f8d4c2911aa7360930d2f89fc4441ed 100644 (file)
@@ -1733,6 +1733,7 @@ static int set_partition_table_sdmmc()
        ptable[pcount].flags = FASTBOOT_PTENTRY_FLAGS_USE_MOVI_CMD;
        pcount++;
 #endif
+#ifdef CONFIG_ANDROID_PARTITIONS
        /* System */
        get_mmc_part_info(dev_num, 2, &start, &count, &pid);
        if (pid != 0x83)
@@ -1772,6 +1773,7 @@ static int set_partition_table_sdmmc()
        ptable[pcount].length = count * CFG_FASTBOOT_SDMMC_BLOCKSIZE;
        ptable[pcount].flags = FASTBOOT_PTENTRY_FLAGS_USE_MMC_CMD;
        pcount++;
+#endif /* End of CONFIG_ANDROID_PARTITIONS */
 
 #if 1 // Debug
        fastboot_flash_dump_ptn();