File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ Currently all the applets are tested on [NXP JCOP3 J3H145 card](https://www.smar
1616
1717# Toolchain installation
1818
19- Instructions are for MacOS only at the moment.
20-
2119JDK8 works. The most recent one doesn't.
2220
2321Big thanks to https://adoptopenjdk.net/ for all old versions of jdk!
2422
2523Install deps:
2624
25+ ## MacOS
26+
2727``` sh
2828brew tap adoptopenjdk/openjdk
2929brew cask install adoptopenjdk/openjdk/adoptopenjdk8
3838export JAVA_HOME=" /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home"
3939```
4040
41+ ## Linux
42+
43+ ``` sh
44+ sudo apt install openjdk-8-jdk
45+ sudo apt install ant
46+ ```
47+
48+ Install the smartcard service:
49+
50+ ``` sh
51+ sudo apt install pcscd
52+ ```
53+
4154# Tools
4255
4356- ` gp.jar ` - a working and easy to use tool for applets management, by [ martinpaljak] ( https://github.com/martinpaljak/GlobalPlatformPro ) (LGPL3)
@@ -52,6 +65,8 @@ alias gp="java -jar $PWD/gp.jar"
5265
5366# How to build
5467
68+ Make sure to clone recursively or run ` git submodule update --init --recursive ` if you have an error "No usable JavaCard SDK referenced"
69+
5570Run to compile all applets:
5671
5772``` sh
Original file line number Diff line number Diff line change 11# Install requirements
22
3- 1 . You should have [ libsecp256k1] ( https://github.com/bitcoin-core/secp256k1 ) installed in the system. For now.
4- 2 . Install requirements: ` pip3 install -r requirements.txt `
3+ On Linux you need: ` sudo apt install swig libpcsclite-dev `
4+
5+ 1 . Install requirements: ` pip3 install -r requirements.txt `
6+ 2 . You should have [ libsecp256k1] ( https://github.com/bitcoin-core/secp256k1 ) installed in the system. For now.
7+
58
69# Running tests
710
You can’t perform that action at this time.
0 commit comments