summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Grzeschik <m.grzeschik@pengutronix.de>2021-09-23 15:34:37 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2021-09-30 12:55:53 +0200
commit457c551777da23dacc09d3e2b8b8b66301870da7 (patch)
treec2543281c7a876623f7d39b3a08121dcda001bbb
parent5e2e5b8d047726d79c90178ceaca76f9c1efe71f (diff)
downloadptxdist-457c551777da23dacc09d3e2b8b8b66301870da7.tar.gz
ptxdist-457c551777da23dacc09d3e2b8b8b66301870da7.tar.xz
libusbgx: make schemes support selectable
We add an option to select schemes support. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Message-Id: <20210923133438.17528-1-m.grzeschik@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/libusbgx.in7
-rw-r--r--rules/libusbgx.make4
2 files changed, 9 insertions, 2 deletions
diff --git a/rules/libusbgx.in b/rules/libusbgx.in
index 13252a3a7..e576f842e 100644
--- a/rules/libusbgx.in
+++ b/rules/libusbgx.in
@@ -2,6 +2,7 @@
menuconfig LIBUSBGX
bool
+ select LIBCONFIG if LIBUSBGX_SCHEMES
prompt "libusbgx "
help
libusbgx is a C library encapsulating the kernel USB gadget-configfs
@@ -9,6 +10,12 @@ menuconfig LIBUSBGX
if LIBUSBGX
+config LIBUSBGX_SCHEMES
+ bool "enable schemes support"
+ help
+ With schemes support it is possible to export/import
+ configs layout to/from declerative scheme files
+
config SHOW_GADGETS
bool "install show-gadget tool"
help
diff --git a/rules/libusbgx.make b/rules/libusbgx.make
index da2980d95..724d1a3d8 100644
--- a/rules/libusbgx.make
+++ b/rules/libusbgx.make
@@ -42,9 +42,9 @@ LIBUSBGX_CONF_ENV := $(CROSS_ENV)
LIBUSBGX_CONF_TOOL := autoconf
LIBUSBGX_CONF_OPT := \
$(CROSS_AUTOCONF_USR) \
- --without-libconfig \
+ --$(call ptx/wow, PTXCONF_LIBUSBGX_SCHEMES)-libconfig \
--enable-examples \
- --disable-gadget-schemes
+ --$(call ptx/endis, PTXCONF_LIBUSBGX_SCHEMES)-gadget-schemes
# ----------------------------------------------------------------------------
# Target-Install