1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys: define CPU_RAM_SIZE as hex number

Some platforms such as RISC-V don't support numbers given with unit (32K)
This commit is contained in:
Gunar Schorcht 2023-03-20 18:36:05 +01:00
parent 2e32d4ee8b
commit 3b2da3e9e0

View File

@ -165,7 +165,7 @@ endif
ifneq (,$(filter tinyusb_dfu usbus_dfu riotboot_reset,$(USEMODULE)))
CFLAGS += -DCPU_RAM_BASE=$(RAM_START_ADDR)
CFLAGS += -DCPU_RAM_SIZE=$(RAM_LEN)
CFLAGS += -DCPU_RAM_SIZE=$(shell printf "0x%x" $$(($(RAM_LEN:%K=%*1024))))
endif
ifneq (,$(filter test_utils_netdev_eth_minimal,$(USEMODULE)))