The code in common/usbgadget.c provides a C API to the USB gadget layer. Build it unconditionally once CONFIG_USB_GADGET is enabled to provide this API in non interactive builds. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- common/Kconfig | 6 ------ common/Makefile | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/common/Kconfig b/common/Kconfig index 4134599520..2d55903c36 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -111,12 +111,6 @@ config UBIFORMAT depends on MTD_UBI default y -config USBGADGET_START - bool - depends on CMD_USBGADGET || USB_GADGET_AUTOSTART - select ENVIRONMENT_VARIABLES - default y - config BOOT select GLOB bool diff --git a/common/Makefile b/common/Makefile index e66dc04bd8..4a8dc1ff06 100644 --- a/common/Makefile +++ b/common/Makefile @@ -80,7 +80,7 @@ obj-$(CONFIG_UBIFORMAT) += ubiformat.o obj-$(CONFIG_BAREBOX_UPDATE_IMX_NAND_FCB) += imx-bbu-nand-fcb.o obj-$(CONFIG_BOOT) += boot.o obj-$(CONFIG_SERIAL_DEV_BUS) += serdev.o -obj-$(CONFIG_USBGADGET_START) += usbgadget.o +obj-$(CONFIG_USB_GADGET) += usbgadget.o obj-pbl-$(CONFIG_HAVE_OPTEE) += optee.o obj-$(CONFIG_FASTBOOT_BASE) += fastboot.o -- 2.39.5