forked from len0rd/rockbox
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
This commit is contained in:
parent
df3afcfa3b
commit
bcbb5a8b00
8 changed files with 13 additions and 1 deletions
|
@ -869,6 +869,12 @@ Lyre prototype 1 */
|
|||
#define HAVE_MULTIBOOT
|
||||
#endif
|
||||
|
||||
/* The lowest numbered volume to read a multiboot redirect from; default is to
|
||||
* allow any volume but some targets may wish to exclude the internal drive. */
|
||||
#if defined(HAVE_MULTIBOOT) && !defined(MULTIBOOT_MIN_VOLUME)
|
||||
# define MULTIBOOT_MIN_VOLUME 0
|
||||
#endif
|
||||
|
||||
#ifndef NUM_DRIVES
|
||||
#define NUM_DRIVES 1
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue