File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7979
8080 - name : Install Clang
8181 if : |
82- inputs.config-file == './config/examples/stm32c0.config' ||
83- inputs.config-file == './config/examples/stm32c0-rsa2048.config' ||
84- inputs.config-file == './config/examples/stm32h5.config' ||
85- inputs.config-file == './config/examples/stm32h5-dualbank.config' ||
8682 inputs.config-file == './config/examples/stm32h7.config' ||
8783 inputs.config-file == './config/examples/stm32h7-octospi.config' ||
8884 inputs.config-file == './config/examples/stm32u5.config' ||
@@ -110,10 +106,6 @@ jobs:
110106
111107 - name : Rebuild wolfboot with Clang
112108 if : |
113- inputs.config-file == './config/examples/stm32c0.config' ||
114- inputs.config-file == './config/examples/stm32c0-rsa2048.config' ||
115- inputs.config-file == './config/examples/stm32h5.config' ||
116- inputs.config-file == './config/examples/stm32h5-dualbank.config' ||
117109 inputs.config-file == './config/examples/stm32h7.config' ||
118110 inputs.config-file == './config/examples/stm32h7-octospi.config' ||
119111 inputs.config-file == './config/examples/stm32u5.config' ||
Original file line number Diff line number Diff line change @@ -1300,7 +1300,7 @@ ifeq ($(USE_CLANG),1)
13001300 CFLAGS+ =-DWOLFSSL_NO_ATOMIC -DWOLFSSL_NO_ATOMICS
13011301 CFLAGS+ =-Wno-unknown-attributes -Wno-error=unknown-attributes
13021302 CFLAGS+ =-fno-unwind-tables -fno-asynchronous-unwind-tables
1303- LSCRIPT_FLAGS+ =-T hal/clang-discard.ld
1303+ LSCRIPT_FLAGS+ =-T $( abspath $( WOLFBOOT_ROOT ) / hal/clang-discard.ld)
13041304endif
13051305
13061306ifeq ($(USE_GCC ) ,1)
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ ifeq ($(USE_CLANG),1)
1212 ifeq ($(USE_GCC),1)
1313 $(error USE_CLANG=1 is incompatible with USE_GCC=1; set USE_GCC=0)
1414 endif
15+ ifeq ($(ARMORED),1)
16+ $(error USE_CLANG=1 requires ARMORED=0)
17+ endif
1518endif
1619
1720# Support for Built-in ROT into OTP flash memory
Original file line number Diff line number Diff line change @@ -109,7 +109,6 @@ ifeq ($(USE_CLANG),1)
109109 # objcopy output then expands the flash-to-RAM gap into a huge sparse image.
110110 # The app image only needs the flash-backed output sections.
111111 OBJCOPY_IMAGE_FLAGS+ =-j .text -j .edidx
112- LDFLAGS+ =-T ../hal/clang-discard.ld
113112endif
114113
115114ifeq ($(DEBUG_UART ) ,1)
@@ -947,7 +946,7 @@ ifeq ($(ELF_FLASH_SCATTER),1)
947946SQUASHELF_TOOL = ../tools/squashelf/squashelf
948947image-orig.elf : $(APP_OBJS ) $(LSCRIPT )
949948 @echo " \t[LD] $@ "
950- $(Q )$(LD ) $(LDFLAGS ) $(APP_OBJS ) $(LIBS ) $(OUTPUT_FLAG ) $@
949+ $(Q )$(LD ) $(LDFLAGS ) $(LSCRIPT_FLAGS ) $( APP_OBJS ) $(LIBS ) $(OUTPUT_FLAG ) $@
951950
952951image.elf : image-orig.elf
953952 @echo " \t[SQUASHELF] $@ "
956955# Default behavior when ELF_FLASH_SCATTER is not set
957956image.elf : $(APP_OBJS ) $(LSCRIPT )
958957 @echo " \t[LD] $@ "
959- $(Q )$(LD ) $(LDFLAGS ) $(APP_OBJS ) $(LIBS ) $(OUTPUT_FLAG ) $@
958+ $(Q )$(LD ) $(LDFLAGS ) $(LSCRIPT_FLAGS ) $( APP_OBJS ) $(LIBS ) $(OUTPUT_FLAG ) $@
960959endif
961960
962961standalone : image.bin
You can’t perform that action at this time.
0 commit comments