Skip to content

Commit 5671fca

Browse files
committed
Vendored GxEPD2 (forked to use SW SPI) as submodule dependency.
1 parent ca61baf commit 5671fca

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@
1313
[submodule "deps/bc-bip39"]
1414
path = deps/bc-bip39
1515
url = git@github.com:BlockchainCommons/bc-bip39.git
16+
[submodule "deps/GxEPD2"]
17+
path = deps/GxEPD2
18+
url = git@github.com:BlockchainCommons/GxEPD2.git

deps/GxEPD2

Submodule GxEPD2 added at 864caed

scripts/install-lethekit

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,23 @@ fi
4444

4545
lkroot=${args[0]}
4646
aroot=${args[1]}
47-
4847
libpath="${aroot}/libraries"
4948

49+
# First, check if GxEPD2 is already installed (as a directory), warn
50+
# and stop in this case.
51+
gxepd2_path="${aroot}/libraries/GxEPD2"
52+
[ -d ${gxepd2_path} ] && ! [ -L ${gxepd2_path} ] && echo "GxEPD2 already installed in ${libpath}. Please remove it; we need to replace with SW SPI enabled version." && exit 1
53+
5054
declare -a libs=(
5155
bc-crypto-base
5256
bc-shamir
5357
bc-slip39
5458
bc-bip39
5559
TRNG-for-ATSAMD51J19A-Adafruit-Metro-M4-
60+
GxEPD2
5661
)
5762

5863
for lib in "${libs[@]}"
5964
do
60-
ln -fs ${lkroot}/deps/${lib} ${aroot}/libraries/
65+
ln -fs ${lkroot}/deps/${lib} ${libpath}
6166
done

0 commit comments

Comments
 (0)