Skip to content

Commit 8a11544

Browse files
committed
zynqmp_sdcard: use -O2 instead of -Os
-Os causes SHA3-384 hash mismatch at runtime on AArch64 Cortex-A53 with ARM crypto extensions (WOLFSSL_ARMASM). -O0 and -O2 both work correctly. Append CFLAGS_EXTRA+=-O2 to override the Makefile's default -Os when DEBUG=0.
1 parent bcaaf37 commit 8a11544

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config/examples/zynqmp_sdcard.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ DEBUG_SYMBOLS=1
2323
DEBUG_UART=1
2424
CFLAGS_EXTRA+=-DDEBUG_ZYNQ=1
2525

26+
# Use -O2 instead of -Os (the default when DEBUG=0). -Os causes SHA3-384
27+
# hash mismatch at runtime on AArch64 Cortex-A53 with ARM crypto extensions.
28+
CFLAGS_EXTRA+=-O2
29+
2630
# SD card support - use SDHCI driver
2731
DISK_SDCARD?=1
2832
DISK_EMMC?=0

0 commit comments

Comments
 (0)