mirror of https://github.com/ipxe/ipxe.git
Allow for multiple BOOT_DRIVER()s in the same file, provided that they
have different probe functions.pull/1/head
parent
44c7cc8c12
commit
1f26be34b8
|
@ -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, \
|
||||||
|
|
Loading…
Reference in New Issue