Skip to content

Commit 2446911

Browse files
bigbrettdanielinux
authored andcommitted
add relative path support for delta updates makefile
1 parent 2e06a5f commit 2446911

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tools/delta/Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1+
# Default library paths (can be overridden)
2+
# NOTE: This makefile expects to only be called from the top level
3+
# wolfBoot directory, so use default relative path from there
4+
WOLFBOOT_LIB_WOLFSSL?=./lib/wolfssl
5+
6+
# Convert to absolute paths for standalone usage
7+
WOLFBOOT_LIB_WOLFSSL:=$(abspath $(WOLFBOOT_LIB_WOLFSSL))
8+
19
all: bmdiff bmpatch
210
CFLAGS+=-Wall -Werror -Wextra -DDELTA_UPDATES
311

412
ifeq ($(HASH),SHA3)
5-
WOLFCRYPT_OBJS+=./lib/wolfssl/wolfcrypt/src/sha3.o
13+
WOLFCRYPT_OBJS+=$(WOLFBOOT_LIB_WOLFSSL)/wolfcrypt/src/sha3.o
614
CFLAGS+=-D"WOLFBOOT_HASH_SHA3_384"
715
SIGN_OPTIONS+=--sha3
816
else

0 commit comments

Comments
 (0)