smartcard: replace usb_drv by usb_host_drv

This commit is contained in:
Christian Helmuth 2021-05-21 16:16:29 +02:00
parent 98f524bb41
commit faf491ce92

View File

@ -24,7 +24,7 @@ proc smartcard_product_id {} { return "0x5116" }
set build_components { set build_components {
core init timer core init timer
drivers/usb drivers/usb_host
test/smartcard test/smartcard
lib/vfs/pipe lib/vfs/pipe
} }
@ -73,14 +73,13 @@ append config {
</start> </start>
<start name="usb_drv" caps="200"> <start name="usb_drv" caps="200">
<binary name="} [usb_host_drv_binary] {"/>
<resource name="RAM" quantum="16M"/> <resource name="RAM" quantum="16M"/>
<provides><service name="Usb"/></provides> <provides><service name="Usb"/></provides>
<config uhci="yes" ehci="yes" xhci="yes" bios_handoff="yes"> <config uhci="yes" ehci="yes" xhci="yes" bios_handoff="yes">
<raw> <report devices="yes"/>
<report devices="yes"/> <policy label="test-smartcard -> usb_device"
<policy label="test-smartcard -> usb_device" vendor_id="} [smartcard_vendor_id] {" product_id="} [smartcard_product_id] {"/>
vendor_id="} [smartcard_vendor_id] {" product_id="} [smartcard_product_id] {"/>
</raw>
</config> </config>
<route> <route>
<service name="Report"> <child name="report_rom"/> </service> <service name="Report"> <child name="report_rom"/> </service>
@ -114,12 +113,14 @@ install_config $config
# generic modules # generic modules
set boot_modules { set boot_modules {
core init timer usb_drv test-smartcard core init timer test-smartcard
ld.lib.so pcsc-lite.lib.so ccid.lib.so libusb.lib.so ld.lib.so pcsc-lite.lib.so ccid.lib.so libusb.lib.so
libc.lib.so vfs.lib.so libm.lib.so posix.lib.so libc.lib.so vfs.lib.so libm.lib.so posix.lib.so
Info.plist vfs_pipe.lib.so Info.plist vfs_pipe.lib.so
} }
lappend boot_modules [usb_host_drv_binary]
append_platform_drv_boot_modules append_platform_drv_boot_modules
build_boot_image $boot_modules build_boot_image $boot_modules