blob: 740ffd88de84fa35d4664024ed101cd7c4272d06 [file] [log] [blame]
Oliver Smith04f25862020-02-19 12:16:01 +01001SIMTOOLS_DIR = ../../sim-tools
Oliver Smith537fba02020-02-19 12:12:52 +01002
3APPLET_AID = 0xd0:0x70:0x02:0xca:0x44:0x90:0x01:0x01
Oliver Smith7528b382020-02-21 08:43:25 +01004APPLET_NAME = org.osmocom.IMSIPseudo.IMSIPseudo
Oliver Smith537fba02020-02-19 12:12:52 +01005PACKAGE_AID = 0xd0:0x70:0x02:0xCA:0x44:0x90:0x01
Oliver Smith7528b382020-02-21 08:43:25 +01006PACKAGE_NAME = org.osmocom.IMSIPseudo
Oliver Smith537fba02020-02-19 12:12:52 +01007PACKAGE_VERSION = 1.0
8
Neels Hofmeyrd20f93a2020-02-24 22:42:22 +01009SOURCES = src/org/osmocom/IMSIPseudo/MobileIdentity.java src/org/osmocom/IMSIPseudo/IMSIPseudo.java
10
Oliver Smithc18064a2020-02-21 09:29:20 +010011CAP_FILE = build/javacard/org/osmocom/IMSIPseudo/javacard/IMSIPseudo.cap
Oliver Smith537fba02020-02-19 12:12:52 +010012
Neels Hofmeyrc916b972020-02-24 22:51:21 +010013include ./applet-project.mk
Oliver Smithc18064a2020-02-21 09:29:20 +010014
15flash: classes
16 $(eval MODULE_AID := $(shell echo $(APPLET_AID) | sed 's/0x//g' | sed 's/\://g'))
17 $(eval INSTANCE_AID := $(shell echo $(APPLET_AID) | sed 's/0x//g' | sed 's/\://g'))
18 . $$PWD/.sim-keys && $(SIMTOOLS_DIR)/bin/shadysim \
19 --pcsc \
20 -l $(CAP_FILE) \
21 -i $(CAP_FILE) \
22 --enable-sim-toolkit \
Oliver Smith799fe1d2020-02-24 15:20:55 +010023 --access-domain=00 \
Oliver Smithc18064a2020-02-21 09:29:20 +010024 --module-aid $(MODULE_AID) \
25 --instance-aid $(INSTANCE_AID) \
26 --nonvolatile-memory-required 0100 \
27 --volatile-memory-for-install 0100 \
28 --max-menu-entry-text 21 \
29 --max-menu-entries 01 \
30 --kic "$$KIC1" \
31 --kid "$$KID1"
32
33remove:
34 . $$PWD/.sim-keys && $(SIMTOOLS_DIR)/bin/shadysim \
35 --pcsc \
36 -d "$$(echo $(PACKAGE_AID) | sed 's/0x//g' | sed 's/\://g')" \
37 --kic "$$KIC1" \
38 --kid "$$KID1"
Oliver Smith0f7c8bb2020-02-24 11:32:48 +010039
40delete: remove
Neels Hofmeyrd20f93a2020-02-24 22:42:22 +010041
42.PHONY: test
43test:
44 mkdir -p ./test/classes
45 javac -target 1.1 -source 1.3 -classpath test/classes -g -d ./test/classes src/org/osmocom/IMSIPseudo/MobileIdentity.java
46 javac -target 1.1 -source 1.3 -classpath test/classes -g -d ./test/classes src/org/osmocom/IMSIPseudo/Test.java
47 java -classpath test/classes org.osmocom.IMSIPseudo.Test