# # Smartcard test # # NOTE: The vendor id and product id of the USB card reader to be used must be # configured for the application and for the USB driver. # if {[have_include "power_on/qemu"] || [have_spec linux]} { puts "Run script does not support Qemu or Linux" exit 0 } assert_spec x86_64 # # Please configure your reader's vendor and product IDs here # proc smartcard_vendor_id {} { return "0x04e6" } proc smartcard_product_id {} { return "0x5116" } # # Build # set build_components { core init timer drivers/usb_host test/smartcard lib/vfs/pipe } source ${genode_dir}/repos/base/run/platform_drv.inc append_platform_drv_build_components build $build_components create_boot_directory # # Generate config # append config { } append_platform_drv_config append config { 2018-01-01 00:01 } install_config $config # # Boot modules # # generic modules set boot_modules { core init timer test-smartcard 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 Info.plist vfs_pipe.lib.so } lappend boot_modules [usb_host_drv_binary] append_platform_drv_boot_modules build_boot_image $boot_modules run_genode_until { Response: 62 0A 82 01 38 83 02 3F 00 8A 01 05 90 00} 30 exec rm bin/Info.plist