diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-07 11:36:00 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-27 09:50:33 -0400 |
commit | bcbb5a8b00770ac0d2794e59876d8187ccfea6af (patch) | |
tree | 3fea3428991da6089c4fd4b76bdb51e8e362ca25 /firmware/export/config.h | |
parent | df3afcfa3b63b8f4ca012a428e35dfb24bba4bb9 (diff) | |
download | rockbox-bcbb5a8b00770ac0d2794e59876d8187ccfea6af.tar.gz rockbox-bcbb5a8b00770ac0d2794e59876d8187ccfea6af.zip |
multiboot: Allow searching in volume 0 for redirect file
Searching in volume 0 is necessary for multiboot targets with only
one drive, like the M3K/Q1/ErosQ. Without this the search code will
never look at the redirect file on these targets.
The search bound is configured with a setting MULTIBOOT_MIN_VOLUME,
which defaults to 0, but is defined to 1 for Sansa players so they
keep their old behavior.
Change-Id: I6dc5cf98db4258731de2c68c3ab1182b4a4a655b
Diffstat (limited to 'firmware/export/config.h')
-rw-r--r-- | firmware/export/config.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index 7002b2a3c5..6465bdcb0e 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -869,6 +869,12 @@ Lyre prototype 1 */ | |||
869 | #define HAVE_MULTIBOOT | 869 | #define HAVE_MULTIBOOT |
870 | #endif | 870 | #endif |
871 | 871 | ||
872 | /* The lowest numbered volume to read a multiboot redirect from; default is to | ||
873 | * allow any volume but some targets may wish to exclude the internal drive. */ | ||
874 | #if defined(HAVE_MULTIBOOT) && !defined(MULTIBOOT_MIN_VOLUME) | ||
875 | # define MULTIBOOT_MIN_VOLUME 0 | ||
876 | #endif | ||
877 | |||
872 | #ifndef NUM_DRIVES | 878 | #ifndef NUM_DRIVES |
873 | #define NUM_DRIVES 1 | 879 | #define NUM_DRIVES 1 |
874 | #endif | 880 | #endif |