From 9cfdbdb355e3251dc524630ccba5f8eb895458bd Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Fri, 15 Nov 2019 05:05:20 -0600 Subject: [PATCH] MultiBoot_Firmware Fix red for bootloaders Change-Id: I0446258d1f14f5423cca55de04abf545a92c61cf --- firmware/common/disk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/common/disk.c b/firmware/common/disk.c index 80142f6d94..c9676ed285 100644 --- a/firmware/common/disk.c +++ b/firmware/common/disk.c @@ -30,7 +30,7 @@ #include "dircache_redirect.h" #include "disk.h" -#if defined(HAVE_BOOTDATA) && !defined(SIMULATOR) +#if defined(HAVE_BOOTDATA) && !defined(SIMULATOR) && !defined(BOOTLOADER) #include "bootdata.h" #include "crc32.h" #endif @@ -263,7 +263,7 @@ int disk_mount_all(void) for (int i = 0; i < NUM_VOLUMES; i++) vol_drive[i] = -1; /* mark all as unassigned */ -#if defined(HAVE_BOOTDATA) && !defined(SIMULATOR) +#if defined(HAVE_BOOTDATA) && !defined(SIMULATOR) && !defined(BOOTLOADER) unsigned int crc = 0; int boot_volume = 0; crc = crc_32(boot_data.payload, boot_data.length, 0xffffffff);