mirror of
https://github.com/ipxe/ipxe
synced 2025-12-15 00:12:19 +03:00
Allow for multiple BOOT_DRIVER()s in the same file, provided that they
have different probe functions.
This commit is contained in:
@@ -55,7 +55,7 @@ struct boot_driver {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#define BOOT_DRIVER( driver_name, probe_func ) \
|
#define BOOT_DRIVER( driver_name, probe_func ) \
|
||||||
static struct boot_driver boot_driver \
|
static struct boot_driver boot_driver_ ## probe_func \
|
||||||
__attribute__ ((used,__section__(".boot_drivers"))) = { \
|
__attribute__ ((used,__section__(".boot_drivers"))) = { \
|
||||||
.name = driver_name, \
|
.name = driver_name, \
|
||||||
.probe = probe_func, \
|
.probe = probe_func, \
|
||||||
|
|||||||
Reference in New Issue
Block a user