forked from odudex/cUR
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmicropython.mk
More file actions
35 lines (32 loc) · 1.34 KB
/
Copy pathmicropython.mk
File metadata and controls
35 lines (32 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# MaixPy / MicroPython build wiring for cUR.
#
# Drop this repo in as a USERMOD (e.g. as a submodule under
# components/micropython/port/src/bc-ur/) and the MaixPy build picks it
# up automatically. The K210 hardware SHA256 is selected via the
# UR_USE_K210_SHA256 compile flag, which routes sha256_compat.h to
# sha256_hard_calculate() from the Kendryte standalone SDK.
UUR_MOD_DIR := $(USERMOD_DIR)
SRC_USERMOD += \
$(UUR_MOD_DIR)/uUR.c \
$(UUR_MOD_DIR)/src/ur.c \
$(UUR_MOD_DIR)/src/ur_encoder.c \
$(UUR_MOD_DIR)/src/ur_decoder.c \
$(UUR_MOD_DIR)/src/fountain_encoder.c \
$(UUR_MOD_DIR)/src/fountain_decoder.c \
$(UUR_MOD_DIR)/src/fountain_utils.c \
$(UUR_MOD_DIR)/src/bytewords.c \
$(UUR_MOD_DIR)/src/crc32.c \
$(UUR_MOD_DIR)/src/utils.c \
$(UUR_MOD_DIR)/src/types/cbor_data.c \
$(UUR_MOD_DIR)/src/types/cbor_encoder.c \
$(UUR_MOD_DIR)/src/types/cbor_decoder.c \
$(UUR_MOD_DIR)/src/types/byte_buffer.c \
$(UUR_MOD_DIR)/src/types/bytes_type.c \
$(UUR_MOD_DIR)/src/types/bip39.c \
$(UUR_MOD_DIR)/src/types/keypath.c \
$(UUR_MOD_DIR)/src/types/hd_key.c \
$(UUR_MOD_DIR)/src/types/multi_key.c \
$(UUR_MOD_DIR)/src/types/output.c \
$(UUR_MOD_DIR)/src/types/psbt.c \
$(UUR_MOD_DIR)/src/types/registry.c
CFLAGS_USERMOD += -I$(UUR_MOD_DIR) -I$(UUR_MOD_DIR)/src -DUR_USE_K210_SHA256