Merge branch 'master' of github.com:Shadytel/sim-tools

This commit is contained in:
Karl Koscher 2013-06-23 16:20:56 -07:00
commit 836f614d75
2 changed files with 26 additions and 3 deletions

View File

@ -1,3 +1,26 @@
# Shadytel SIM Tools # Shadytel SIM Tools
Put README here. ## Creating JavaCard STK Applets
Use the hello-stk example to get started.
$ mkdir javacard
$ cd javacard
$ git clone https://github.com/Shadytel/sim-tools.git
$ git clone https://github.com/Shadytel/hello-stk.git
$ cd hello-stk
$ make
To install the applet onto a SIM card, first set the type of reader you are using.
# For PCSC readers:
$ export SHADYSIM_OPTIONS="--pcsc"
# For USB-serial readers:
$ export SHADYSIM_OPTIONS="--serialport /dev/ttyUSB0"
$ make install
The shadysim tool has lots of other options.
$ ./sim-tools/bin/shadysim --help

View File

@ -31,8 +31,8 @@ install:
$(eval CAP_FILE := $(shell find $(BUILD_JAVACARD_DIR) -name *.cap)) $(eval CAP_FILE := $(shell find $(BUILD_JAVACARD_DIR) -name *.cap))
$(eval MODULE_AID := $(shell echo $(APPLET_AID) | sed 's/0x//g' | sed 's/\://g')) $(eval MODULE_AID := $(shell echo $(APPLET_AID) | sed 's/0x//g' | sed 's/\://g'))
$(eval INSTANCE_AID := $(shell echo $(APPLET_AID) | sed 's/0x//g' | sed 's/\://g')) $(eval INSTANCE_AID := $(shell echo $(APPLET_AID) | sed 's/0x//g' | sed 's/\://g'))
python ../sim-tools/toorsimtool.py \ ../sim-tools/bin/shadysim \
--serial /dev/ttyUSB0 \ $(SHADYSIM_OPTIONS) \
-l $(CAP_FILE) \ -l $(CAP_FILE) \
-i $(CAP_FILE) \ -i $(CAP_FILE) \
--enable-sim-toolkit \ --enable-sim-toolkit \