bios/main: Wrap CONFIG_NO_BOOT around boot_sequence()
This eliminates a "defined but unused" warning on the `boot_sequence()` function when `main.c` is compiled with `#define CONFIG_NO_BOOT`.
This commit is contained in:
parent
b6f4302e8e
commit
f9f3557bca
|
@ -49,6 +49,7 @@
|
||||||
#include <liblitesdcard/sdcard.h>
|
#include <liblitesdcard/sdcard.h>
|
||||||
#include <liblitesata/sata.h>
|
#include <liblitesata/sata.h>
|
||||||
|
|
||||||
|
#ifndef CONFIG_BIOS_NO_BOOT
|
||||||
static void boot_sequence(void)
|
static void boot_sequence(void)
|
||||||
{
|
{
|
||||||
#ifdef CSR_UART_BASE
|
#ifdef CSR_UART_BASE
|
||||||
|
@ -75,6 +76,7 @@ static void boot_sequence(void)
|
||||||
#endif
|
#endif
|
||||||
printf("No boot medium found\n");
|
printf("No boot medium found\n");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
__attribute__((__used__)) int main(int i, char **c)
|
__attribute__((__used__)) int main(int i, char **c)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue