mirror of
https://github.com/ipxe/ipxe
synced 2025-12-29 11:03:15 +03:00
[build] Use REQUIRE_OBJECT() to drag in per-object configuration
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -115,15 +115,10 @@
|
||||
|
||||
#define PREFIX_OBJECT( _prefix ) _C2 ( _prefix, OBJECT )
|
||||
#define OBJECT_SYMBOL PREFIX_OBJECT ( obj_ )
|
||||
#define REQUEST_EXPANDED( _sym ) REQUEST_SYMBOL ( _sym )
|
||||
#define CONFIG_SYMBOL PREFIX_OBJECT ( obj_config_ )
|
||||
|
||||
/** Always provide the symbol for the current object (defined by -DOBJECT) */
|
||||
PROVIDE_SYMBOL ( OBJECT_SYMBOL );
|
||||
|
||||
/** Pull in an object-specific configuration file if available */
|
||||
REQUEST_EXPANDED ( CONFIG_SYMBOL );
|
||||
|
||||
/** Explicitly require another object */
|
||||
#define REQUIRE_OBJECT( _obj ) REQUIRE_SYMBOL ( obj_ ## _obj )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user