aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 \