From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH] common: always compile usbgadget.c when USB_GADGET is enabled
Date: Thu, 9 Jan 2025 08:44:55 +0100 [thread overview]
Message-ID: <20250109074455.3242990-1-s.hauer@pengutronix.de> (raw)
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
reply other threads:[~2025-01-09 7:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250109074455.3242990-1-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox