From 3b2da3e9e0f9c4d0abe35d82235fc46e48dea442 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Mon, 20 Mar 2023 18:36:05 +0100 Subject: [PATCH] sys: define CPU_RAM_SIZE as hex number Some platforms such as RISC-V don't support numbers given with unit (32K) --- sys/Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/Makefile.include b/sys/Makefile.include index 777e67f7e2..44334591ed 100644 --- a/sys/Makefile.include +++ b/sys/Makefile.include @@ -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)))