diff options
author | Karl Koscher <github@degdeg.com> | 2013-06-23 16:20:56 -0700 |
---|---|---|
committer | Karl Koscher <github@degdeg.com> | 2013-06-23 16:20:56 -0700 |
commit | 836f614d75269d2cb631bf1c1bf8637efc079d61 (patch) | |
tree | dbe6ab637e60e6d93ca01c6a394dc502bdf2be05 | |
parent | aaa9ee74d3722e8c0c8ecf66c79c4d0d4b113522 (diff) | |
parent | 0c501aa7aa83ea446f02ac0bd2b65bc36fb60683 (diff) |
Merge branch 'master' of github.com:Shadytel/sim-tools
-rw-r--r-- | README.md | 25 | ||||
-rw-r--r-- | javacard/makefiles/applet-project.mk | 4 |
2 files changed, 26 insertions, 3 deletions
@@ -1,3 +1,26 @@ # Shadytel SIM Tools -Put README here.
\ No newline at end of file +## 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
\ No newline at end of file diff --git a/javacard/makefiles/applet-project.mk b/javacard/makefiles/applet-project.mk index 4066b38..ebc2bd5 100644 --- a/javacard/makefiles/applet-project.mk +++ b/javacard/makefiles/applet-project.mk @@ -31,8 +31,8 @@ install: $(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 INSTANCE_AID := $(shell echo $(APPLET_AID) | sed 's/0x//g' | sed 's/\://g')) - python ../sim-tools/toorsimtool.py \ - --serial /dev/ttyUSB0 \ + ../sim-tools/bin/shadysim \ + $(SHADYSIM_OPTIONS) \ -l $(CAP_FILE) \ -i $(CAP_FILE) \ --enable-sim-toolkit \ |