mirror of
https://github.com/ipxe/ipxe
synced 2026-01-20 16:39:14 +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
|
||||
REQUIRE_OBJECT ( image_crypt_cmd );
|
||||
#endif
|
||||
#ifdef USB_CMD
|
||||
REQUIRE_OBJECT ( usb_cmd );
|
||||
#endif
|
||||
#ifdef FDT_CMD
|
||||
REQUIRE_OBJECT ( fdt_cmd );
|
||||
#endif
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
FILE_SECBOOT ( PERMITTED );
|
||||
|
||||
#include <config/general.h>
|
||||
#include <config/usb.h>
|
||||
#include <config/settings.h>
|
||||
|
||||
@@ -72,3 +73,10 @@ REQUIRE_OBJECT ( efi_usb );
|
||||
#ifdef USB_SETTINGS
|
||||
REQUIRE_OBJECT ( usb_settings );
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Drag in USB commands
|
||||
*/
|
||||
#ifdef USB_CMD
|
||||
REQUIRE_OBJECT ( usb_cmd );
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user