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 @@ -1294,7 +1294,7 @@ ifeq ($(USE_CLANG),1)
12941294 CFLAGS+ =-DWOLFSSL_NO_ATOMIC -DWOLFSSL_NO_ATOMICS
12951295 CFLAGS+ =-Wno-unknown-attributes -Wno-error=unknown-attributes
12961296 CFLAGS+ =-fno-unwind-tables -fno-asynchronous-unwind-tables
1297- LSCRIPT_FLAGS+ =-T hal/clang-discard.ld
1297+ LSCRIPT_FLAGS+ =-T $( abspath $( WOLFBOOT_ROOT ) / hal/clang-discard.ld)
12981298endif
12991299
13001300ifeq ($(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)
@@ -933,7 +932,7 @@ ifeq ($(ELF_FLASH_SCATTER),1)
933932SQUASHELF_TOOL = ../tools/squashelf/squashelf
934933image-orig.elf : $(APP_OBJS ) $(LSCRIPT )
935934 @echo " \t[LD] $@ "
936- $(Q )$(LD ) $(LDFLAGS ) $(APP_OBJS ) $(LIBS ) $(OUTPUT_FLAG ) $@
935+ $(Q )$(LD ) $(LDFLAGS ) $(LSCRIPT_FLAGS ) $( APP_OBJS ) $(LIBS ) $(OUTPUT_FLAG ) $@
937936
938937image.elf : image-orig.elf
939938 @echo " \t[SQUASHELF] $@ "
942941# Default behavior when ELF_FLASH_SCATTER is not set
943942image.elf : $(APP_OBJS ) $(LSCRIPT )
944943 @echo " \t[LD] $@ "
945- $(Q )$(LD ) $(LDFLAGS ) $(APP_OBJS ) $(LIBS ) $(OUTPUT_FLAG ) $@
944+ $(Q )$(LD ) $(LDFLAGS ) $(LSCRIPT_FLAGS ) $( APP_OBJS ) $(LIBS ) $(OUTPUT_FLAG ) $@
946945endif
947946
948947standalone : image.bin
You can’t perform that action at this time.
0 commit comments