Skip to content

Commit a3b3ec9

Browse files
committed
sys: define CPU_RAM_SIZE as hex number
Some platforms such as RISC-V don't support numbers given with unit (32K)
1 parent 56bfdbe commit a3b3ec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sys/Makefile.include

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ endif
165165

166166
ifneq (,$(filter tinyusb_dfu usbus_dfu riotboot_reset,$(USEMODULE)))
167167
CFLAGS += -DCPU_RAM_BASE=$(RAM_START_ADDR)
168-
CFLAGS += -DCPU_RAM_SIZE=$(RAM_LEN)
168+
CFLAGS += -DCPU_RAM_SIZE=$(shell printf "0x%x" $$(($(RAM_LEN:%K=%*1024))))
169169
endif
170170

171171
ifneq (,$(filter test_utils_netdev_eth_minimal,$(USEMODULE)))

0 commit comments

Comments
 (0)