From dbac453a396556aa6de010311bb3f00de3ef0ee1 Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Fri, 8 Feb 2019 15:00:41 +0100 Subject: [PATCH] smartcard: declare vendor/product IDs at one place Also added a report_rom for USB devices and let the driver report like in a real scenario. Can also be used for debugging by setting verbose="yes" in report_rom. --- repos/libports/run/smartcard.run | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/repos/libports/run/smartcard.run b/repos/libports/run/smartcard.run index 8705b583b..88cd49e42 100644 --- a/repos/libports/run/smartcard.run +++ b/repos/libports/run/smartcard.run @@ -15,6 +15,12 @@ if { [get_cmd_switch --autopilot] && ![have_spec x86_64] } { exit 0 } +# +# Please configure your reader's vendor and product IDs here +# +proc smartcard_vendor_id {} { return "0x04e6" } +proc smartcard_product_id {} { return "0x5116" } + # # Build # @@ -73,14 +79,28 @@ append config { + + + + + + + + - + + + + + + @@ -93,7 +113,7 @@ append config { - +