mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] common: always compile usbgadget.c when USB_GADGET is enabled
@ 2025-01-09  7:44 Sascha Hauer
  0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2025-01-09  7:44 UTC (permalink / raw)
  To: Barebox List

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@pengutronix.de>
---
 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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-01-09  7:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-09  7:44 [PATCH] common: always compile usbgadget.c when USB_GADGET is enabled Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox