summaryrefslogtreecommitdiff
path: root/testenv/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'testenv/Dockerfile')
-rw-r--r--testenv/Dockerfile6
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/