Skip to content

Commit 57ce5da

Browse files
committed
Fix AFLAGS issues
1 parent 6ab3b0b commit 57ce5da

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

ports/raspberrypi/Makefile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ OTHER_PICO_FLAGS := \
396396
-Wl,--wrap=__aeabi_uidivmod \
397397
-Wl,--wrap=__aeabi_uldivmod
398398

399+
SRC_S = shared/runtime/gchelper_thumb1.s
400+
399401
ifeq ($(CHIP_VARIANT),RP2040)
400402
CFLAGS += \
401403
-march=armv6-m \
@@ -422,8 +424,6 @@ SRC_S_UPPER_CHIP_VARIANT := \
422424
sdk/src/rp2_common/pico_float/float_aeabi_rp2040.S \
423425
sdk/src/rp2_common/pico_mem_ops/mem_ops_aeabi.S \
424426

425-
SRC_S = shared/runtime/gchelper_thumb1.s
426-
427427
PICO_LDFLAGS += \
428428
$(PICO_WRAP_FLOAT_AEABI_FLAGS) \
429429
$(PICO_WRAP_FLOAT_SCI_FLAGS) \
@@ -436,12 +436,12 @@ UF2_ID = 0xE48BFF56
436436
DOUBLE_EABI = rp2040
437437
endif
438438
ifeq ($(CHIP_VARIANT),RP2350)
439-
CFLAGS += \
440-
-march=armv8-m.main+fp+dsp \
439+
AFLAGS = -march=armv8-m.main+fp+dsp \
441440
-mthumb \
442-
-mabi=aapcs-linux \
443441
-mcpu=cortex-m33 \
444442
-mfloat-abi=softfp
443+
CFLAGS += $(AFLAGS) \
444+
-mabi=aapcs-linux
445445

446446
# ARM Secure family id
447447
UF2_ID = 0xe48bff59
@@ -463,8 +463,6 @@ SRC_S_UPPER_CHIP_VARIANT := \
463463
sdk/src/rp2_common/pico_float/float_sci_m33_vfp.S \
464464
sdk/src/rp2_common/pico_float/float_common_m33.S \
465465

466-
SRC_S = shared/runtime/gchelper_thumb2.s
467-
468466
PICO_LDFLAGS += $(PICO_WRAP_FLOAT_SCI_FLAGS) $(PICO_WRAP_DOUBLE_FLAGS)
469467

470468
ifeq ($(CHIP_PACKAGE),A)

ports/silabs/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ ifneq (,$(wildcard boards/$(BOARD)/sensor.c))
9090
SRC_C += boards/$(BOARD)/sensor.c
9191
endif
9292

93-
SRC_S = shared/runtime/gchelper_thumb2.s
93+
AFLAGS = -mcpu=cortex-m33 -mthumb -mfpu=fpv5-sp-d16 -mfloat-abi=hard
94+
SRC_S = shared/runtime/gchelper_thumb1.s
9495

9596
SRC_C += shared/runtime/gchelper_native.c
9697

0 commit comments

Comments
 (0)