[usb] Drag in USB commands only when USB support is present

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2026-01-16 22:34:01 +00:00
parent f3abf2b9de
commit 4157afc125
2 changed files with 8 additions and 3 deletions

View File

@@ -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

View File

@@ -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