File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88include tools/config.mk
99
1010# # Initializers
11+ WOLFBOOT_ROOT =$(PWD )
1112CFLAGS: =-D__WOLFBOOT -DWOLFBOOT_VERSION=$(WOLFBOOT_VERSION ) UL -ffunction-sections -fdata-sections
1213LSCRIPT: =config/target.ld
1314LDFLAGS: =-T $(LSCRIPT ) -Wl,-gc-sections -Wl,-Map=wolfboot.map -ffreestanding -nostartfiles
@@ -21,6 +22,7 @@ WOLFCRYPT_OBJS:=
2122PUBLIC_KEY_OBJS: =
2223UPDATE_OBJS: =
2324
25+
2426ifeq ($(SIGN ) ,RSA4096)
2527 SPMATH =0
2628endif
@@ -207,7 +209,7 @@ wolfboot-align.bin: .bootloader-partition-size wolfboot.bin
207209 @echo
208210
209211test-app/image.bin : wolfboot-align.bin
210- @make -C test-app
212+ @make -C test-app WOLFBOOT_ROOT= $( WOLFBOOT_ROOT )
211213 @rm -f src/* .o hal/* .o
212214 @$(SIZE ) test-app/image.elf
213215
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ ARCH?=ARM
22TARGET?=psoc6
33SIGN?=ED25519
44HASH?=SHA256
5- CYPRESS_PDL?=. /lib/psoc6pdl
6- CYPRESS_TARGET_LIB?=. /lib/TARGET_CY8CKIT-062S2-43012
7- CYPRESS_CORE_LIB?=. /lib/core-lib
5+ CYPRESS_PDL?=$(WOLFBOOT_ROOT) /lib/psoc6pdl
6+ CYPRESS_TARGET_LIB?=$(WOLFBOOT_ROOT) /lib/TARGET_CY8CKIT-062S2-43012
7+ CYPRESS_CORE_LIB?=$(WOLFBOOT_ROOT) /lib/core-lib
88DEBUG?=1
99VTOR?=1
1010CORTEX_M0?=1
You can’t perform that action at this time.
0 commit comments