app: aboot: Avoid calling fastboot publish for NAND

Fastboot publish supports only ext partitions. Call
this only for targets with emmc storage.

Change-Id: I2f270fade745348404d0a86eda96a8fd56c4b6fb
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index 01da82c..a006ab1 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -2057,7 +2057,14 @@
 	fastboot_publish("product", TARGET(BOARD));
 	fastboot_publish("kernel", "lk");
 	fastboot_publish("serialno", sn_buf);
-	publish_getvar_partition_info(part_info, ARRAY_SIZE(part_info));
+	/*
+	 * fastboot publish is supported only for emmc partitions
+	 * Calling this for NAND prints some error messages which
+	 * is harmless but misleading. Avoid calling this for NAND
+	 * devices.
+	 */
+	if (target_is_emmc_boot())
+		publish_getvar_partition_info(part_info, ARRAY_SIZE(part_info));
 	/* Max download size supported */
 	snprintf(max_download_size, MAX_RSP_SIZE, "\t0x%x", sz);
 	fastboot_publish("max-download-size", (const char *) max_download_size);