summaryrefslogtreecommitdiffstats
path: root/firmware/common
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2019-11-15 05:05:20 -0600
committerWilliam Wilgus <me.theuser@yahoo.com>2019-11-15 05:05:20 -0600
commit9cfdbdb355e3251dc524630ccba5f8eb895458bd (patch)
tree59e84ed0bf13f308184140db14bb1c6e42ebd708 /firmware/common
parent62e5a3076ca540b2ab54d2e12f8ada42ffe42148 (diff)
downloadrockbox-9cfdbdb355e3251dc524630ccba5f8eb895458bd.tar.gz
rockbox-9cfdbdb355e3251dc524630ccba5f8eb895458bd.tar.bz2
rockbox-9cfdbdb355e3251dc524630ccba5f8eb895458bd.zip
MultiBoot_Firmware Fix red for bootloaders
Change-Id: I0446258d1f14f5423cca55de04abf545a92c61cf
Diffstat (limited to 'firmware/common')
-rw-r--r--firmware/common/disk.c4
1 files 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);