mirror of
https://github.com/ipxe/ipxe
synced 2026-01-21 01:28:02 +03:00
[usb] Drag in USB commands only when USB support is present
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -303,9 +303,6 @@ REQUIRE_OBJECT ( shim_cmd );
|
|||||||
#ifdef IMAGE_CRYPT_CMD
|
#ifdef IMAGE_CRYPT_CMD
|
||||||
REQUIRE_OBJECT ( image_crypt_cmd );
|
REQUIRE_OBJECT ( image_crypt_cmd );
|
||||||
#endif
|
#endif
|
||||||
#ifdef USB_CMD
|
|
||||||
REQUIRE_OBJECT ( usb_cmd );
|
|
||||||
#endif
|
|
||||||
#ifdef FDT_CMD
|
#ifdef FDT_CMD
|
||||||
REQUIRE_OBJECT ( fdt_cmd );
|
REQUIRE_OBJECT ( fdt_cmd );
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||||
FILE_SECBOOT ( PERMITTED );
|
FILE_SECBOOT ( PERMITTED );
|
||||||
|
|
||||||
|
#include <config/general.h>
|
||||||
#include <config/usb.h>
|
#include <config/usb.h>
|
||||||
#include <config/settings.h>
|
#include <config/settings.h>
|
||||||
|
|
||||||
@@ -72,3 +73,10 @@ REQUIRE_OBJECT ( efi_usb );
|
|||||||
#ifdef USB_SETTINGS
|
#ifdef USB_SETTINGS
|
||||||
REQUIRE_OBJECT ( usb_settings );
|
REQUIRE_OBJECT ( usb_settings );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Drag in USB commands
|
||||||
|
*/
|
||||||
|
#ifdef USB_CMD
|
||||||
|
REQUIRE_OBJECT ( usb_cmd );
|
||||||
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user