Skip to content

Commit

Permalink
Added flag WOLFSSL_PKCS11_RW_TOKENS
Browse files Browse the repository at this point in the history
Writable token support in PR wolfSSL/wolfssl#6778
  • Loading branch information
danielinux committed Sep 21, 2023
1 parent 212d1d8 commit b29290b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions hal/nxp_p1021.ld
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ SECTIONS
_start_data = .;
KEEP(*(.data*))
. = ALIGN(4);
KEEP(*(.ramcode))
. = ALIGN(4);
_end_data = .;
} > DRAM

Expand Down
2 changes: 0 additions & 2 deletions hal/nxp_p1021_stage1.ld
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ SECTIONS
_start_data = .;
KEEP(*(.data*))
. = ALIGN(4);
KEEP(*(.ramcode))
. = ALIGN(4);
_end_data = .;
} > DRAM

Expand Down
1 change: 1 addition & 0 deletions options.mk
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ endif

ifeq ($(WOLFCRYPT_TZ_PKCS11),1)
CFLAGS+=-DSECURE_PKCS11
CFLAGS+=-DWOLFSSL_PKCS11_RW_TOKENS
CFLAGS+=-DCK_CALLABLE="__attribute__((cmse_nonsecure_entry))"
CFLAGS+=-Ilib/wolfPKCS11
CFLAGS+=-DWP11_HASH_PIN_COST=3
Expand Down
4 changes: 3 additions & 1 deletion stage1/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include ../tools/config.mk
## Initializers
WOLFBOOT_ROOT?=$(PWD)
CFLAGS:=-D"__WOLFBOOT"
CFLAGS+=-Werror -Wextra
CFLAGS+=-Werror -Wextra -nostdlib
LDFLAGS:=
LSCRIPT:=loader_stage1.ld
LSCRIPT_IN:=../hal/$(TARGET)_stage1.ld
Expand All @@ -36,6 +36,8 @@ STAGE1=1
ifeq ($(ARCH),PPC)
WOLFTPM=0
WOLFBOOT_TPM_KEYSTORE=0
RAM_CODE=0
UPDATE_OBJS:=
endif
ELF=0
MULTIBOOT2=0
Expand Down

0 comments on commit b29290b

Please sign in to comment.