[build] Handle all driver list construction via parserom.pl
Handle construction of the EFI, Linux, Xen, and VMBus driver build rules via parserom.pl to ensure consistency. In particular, this allows those drivers to appear in the DRIVERS_SECBOOT list used to filter out non-permitted drivers in a Secure Boot build. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -75,6 +75,9 @@ struct efi_driver {
|
||||
#define EFI_DRIVER_SNP 04 /**< SNP protocol drivers */
|
||||
#define EFI_DRIVER_MNP 05 /**< MNP protocol drivers */
|
||||
|
||||
/** Define build rules for an EFI driver */
|
||||
#define EFI_ROM( _name, _desc )
|
||||
|
||||
/**
|
||||
* Set EFI driver-private data
|
||||
*
|
||||
|
||||
@@ -66,6 +66,9 @@ struct linux_driver {
|
||||
/** Declare a Linux driver */
|
||||
#define __linux_driver __table_entry(LINUX_DRIVERS, 01)
|
||||
|
||||
/** Define build rules for a Linux driver */
|
||||
#define LINUX_ROM( _name, _desc )
|
||||
|
||||
/**
|
||||
* Set linux device driver-private data
|
||||
*
|
||||
|
||||
@@ -547,6 +547,9 @@ struct vmbus_driver {
|
||||
/** Declare a VMBus device driver */
|
||||
#define __vmbus_driver __table_entry ( VMBUS_DRIVERS, 01 )
|
||||
|
||||
/** Define build rules for a VMBus device driver */
|
||||
#define VMBUS_ROM( _name, _desc )
|
||||
|
||||
/**
|
||||
* Set VMBus device driver-private data
|
||||
*
|
||||
|
||||
@@ -58,6 +58,9 @@ struct xen_driver {
|
||||
/** Declare a Xen device driver */
|
||||
#define __xen_driver __table_entry ( XEN_DRIVERS, 01 )
|
||||
|
||||
/** Define build rules for a Xen device driver */
|
||||
#define XEN_ROM( _name, _desc )
|
||||
|
||||
/**
|
||||
* Set Xen device driver-private data
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user