diff options
author | Maxim Devaev <[email protected]> | 2021-08-28 19:01:13 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2021-08-28 19:01:13 +0300 |
commit | 2db0656df3ecd7c1f4502591c1a734905613e7ec (patch) | |
tree | 7ccf1cbd9a2e09ca12710302b6bc8fb3dc6b729e /testenv/Dockerfile | |
parent | 08dad87fea9cd3b5ced5642864c5e8c359e8b1cc (diff) |
unified udc code and automatic driver detection
Diffstat (limited to 'testenv/Dockerfile')
-rw-r--r-- | testenv/Dockerfile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/testenv/Dockerfile b/testenv/Dockerfile index 0f3d3bfd..da675ebb 100644 --- a/testenv/Dockerfile +++ b/testenv/Dockerfile @@ -83,7 +83,11 @@ RUN mkdir -p \ /opt/vc/bin \ /fake_sysfs/sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0 \ /fake_sysfs/sys/class/thermal/thermal_zone0 \ - /fake_procfs/proc/device-tree + /fake_procfs/proc/device-tree \ + /fake_sysfs/sys/class/udc/fe980000.usb/device \ + /fake_sysfs/sys/bus/platform/drivers/dwc2 \ + && echo configured > /fake_sysfs/sys/class/udc/fe980000.usb/state \ + && ln -s /fake_sysfs/sys/bus/platform/drivers/dwc2 /fake_sysfs/sys/class/udc/fe980000.usb/device/driver COPY testenv/fakes/vcgencmd /opt/vc/bin/ COPY testenv/fakes/msd/* /fake_sysfs/sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0/ |