Commit Graph

4 Commits

Author SHA1 Message Date
Maksym Sloyko
3cf2475ea0 libusbgx: Configure the Devices Used
Add ability to configure the UDC used for specific schema.
The feature is backwards compatible, so existing users don't need to
change anything.

If one wants to specify which UDC is used for specific schema,
for example, `eth0`, they can add this variable to the configuration
file:

UDC_FOR_SCHEMA_eth0=f8000000.udc

If the device file exists in /sys/class/udc when the gadget is started,
it will be used for this schema.

If this configuration is not present, first available device is picked.

Signed-off-by: Maksym Sloyko <maxims@google.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-07 21:35:04 -07:00
Martin Jansa
c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Khem Raj
e96331850c libusbgx: Use update-alternatives
gadget-acm-ecm show-gadgets are also provided by older libusbg recipe

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-08-31 08:30:19 -07:00
Otavio Salvador
f29268ee21 libusbgx: Add recipe
The libusbgx allow easier use and setup of USB gadgets. To easy
integration on different systems a libusbgx-config package is provided
so it can be used to start and enable respective USB gadget schema.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-11-30 17:12:36 -08:00