diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-07 11:48:03 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-11 10:58:20 -0500 |
commit | 439b4e8bcad57fac53f4286033f431e7e9df6546 (patch) | |
tree | 8023413ffdbaf5a50772472163287624231f48e6 | |
parent | eae9f6f5b715bdd739b261dbd94c1fb117130a8f (diff) | |
download | rockbox-439b4e8bcad57fac53f4286033f431e7e9df6546.tar.gz rockbox-439b4e8bcad57fac53f4286033f431e7e9df6546.zip |
multiboot: Remove bad multiboot code from hosted RoLo
This looks like it was copy-pasted blindly from elsewhere and it
wouldn't even compile, since hosted RoLo is completely different
from native RoLo.
Change-Id: I4074f5323dcbdae85db8a04f222c858e9a228432
-rw-r--r-- | firmware/target/hosted/rolo.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/firmware/target/hosted/rolo.c b/firmware/target/hosted/rolo.c index 04b21d553e..dfe483c964 100644 --- a/firmware/target/hosted/rolo.c +++ b/firmware/target/hosted/rolo.c | |||
@@ -37,12 +37,6 @@ | |||
37 | //#define LOGF_ENABLE | 37 | //#define LOGF_ENABLE |
38 | #include "logf.h" | 38 | #include "logf.h" |
39 | 39 | ||
40 | #if defined(HAVE_BOOTDATA) && !defined(SIMULATOR) | ||
41 | #include "bootdata.h" | ||
42 | #include "crc32.h" | ||
43 | extern int write_bootdata(unsigned char* buf, int len, unsigned int boot_volume); /*rb-loader.c*/ | ||
44 | #endif | ||
45 | |||
46 | static void rolo_error(const char *text, const char *text2) | 40 | static void rolo_error(const char *text, const char *text2) |
47 | { | 41 | { |
48 | lcd_clear_display(); | 42 | lcd_clear_display(); |
@@ -72,16 +66,6 @@ int rolo_load(const char* filename) | |||
72 | 66 | ||
73 | audio_stop(); | 67 | audio_stop(); |
74 | 68 | ||
75 | #if defined(HAVE_BOOTDATA) && !defined(SIMULATOR) | ||
76 | /* write the bootdata as if rolo were the bootloader */ | ||
77 | unsigned int crc = 0; | ||
78 | if (strcmp(filename, BOOTDIR "/" BOOTFILE) == 0) | ||
79 | crc = crc_32(boot_data.payload, boot_data.length, 0xffffffff); | ||
80 | |||
81 | if(crc > 0 && crc == boot_data.crc) | ||
82 | write_bootdata(filebuf, filebuf_size, boot_data.boot_volume); /* rb-loader.c */ | ||
83 | #endif | ||
84 | |||
85 | #ifdef HAVE_STORAGE_FLUSH | 69 | #ifdef HAVE_STORAGE_FLUSH |
86 | lcd_puts(0, 2, "Flushing storage buffers"); | 70 | lcd_puts(0, 2, "Flushing storage buffers"); |
87 | lcd_update(); | 71 | lcd_update(); |