aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Koscher <github@degdeg.com>2013-06-23 16:20:56 -0700
committerKarl Koscher <github@degdeg.com>2013-06-23 16:20:56 -0700
commit836f614d75269d2cb631bf1c1bf8637efc079d61 (patch)
treedbe6ab637e60e6d93ca01c6a394dc502bdf2be05
parentaaa9ee74d3722e8c0c8ecf66c79c4d0d4b113522 (diff)
parent0c501aa7aa83ea446f02ac0bd2b65bc36fb60683 (diff)
Merge branch 'master' of github.com:Shadytel/sim-tools
-rw-r--r--README.md25
-rw-r--r--javacard/makefiles/applet-project.mk4
2 files changed, 26 insertions, 3 deletions
diff --git a/README.md b/README.md
index 3829d57..7afb9a7 100644
--- a/README.md
+++ b/README.md
@@ -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 \