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
This commit is contained in:
Aidan MacDonald 2022-03-07 11:48:03 +00:00
parent eae9f6f5b7
commit 439b4e8bca

View file

@ -37,12 +37,6 @@
//#define LOGF_ENABLE
#include "logf.h"
#if defined(HAVE_BOOTDATA) && !defined(SIMULATOR)
#include "bootdata.h"
#include "crc32.h"
extern int write_bootdata(unsigned char* buf, int len, unsigned int boot_volume); /*rb-loader.c*/
#endif
static void rolo_error(const char *text, const char *text2)
{
lcd_clear_display();
@ -72,16 +66,6 @@ int rolo_load(const char* filename)
audio_stop();
#if defined(HAVE_BOOTDATA) && !defined(SIMULATOR)
/* write the bootdata as if rolo were the bootloader */
unsigned int crc = 0;
if (strcmp(filename, BOOTDIR "/" BOOTFILE) == 0)
crc = crc_32(boot_data.payload, boot_data.length, 0xffffffff);
if(crc > 0 && crc == boot_data.crc)
write_bootdata(filebuf, filebuf_size, boot_data.boot_volume); /* rb-loader.c */
#endif
#ifdef HAVE_STORAGE_FLUSH
lcd_puts(0, 2, "Flushing storage buffers");
lcd_update();