tchroot.mk - uwu - hardware bitcoin wallet software and build system
HTML git clone https://git.parazyd.org/uwu
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
tchroot.mk (823B)
---
1 .POSIX:
2
3 # Copyright (c) 2020-2021 Ivan J. <parazyd@dyne.org>
4 # This file is part of uwu.
5 # See LICENSE file for copyright and license details.
6
7 CHROOT_BINS = chroot
8
9 chroot/bin/busybox: $(ALPINE_BINS)
10 gpg --no-default-keyring --keyring=./verification_keyring.gpg \
11 --verify $(ALPINE_SIG)
12 mkdir -p chroot
13 ( cd chroot && tar xpf ../$(ALPINE_TAR) --xattrs )
14
15 chroot/root/electrum: $(ELECTRUM_BINS) chroot/bin/busybox qemu-wrapper
16 ./devprocsys.sh mount chroot
17 cp install.sh chroot/install.sh
18 cp qemu-wrapper chroot
19 cp -a $(QEMU_ARM) chroot/usr/bin
20 chmod 755 chroot/install.sh chroot/qemu-wrapper
21 cp -r $(ELECTRUM_SRC) chroot/root/electrum
22 chroot chroot /install.sh || ( ./devprocsys.sh umount chroot ; exit 1 )
23 ./devprocsys.sh umount chroot
24 rm -f chroot/usr/bin/$(QEMU_ARM) chroot/qemu-wrapper chroot/install.sh