1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 14:03:55 +01:00
19761: buildsystem: only expose CPU_RAM_BASE & SIZE when known r=maribu a=maribu

### Contribution description

This gets rid of the following ugly warnings:

    /bin/sh: 1: arithmetic expression: expecting primary: ""


Co-authored-by: Marian Buschsieweke <marian.buschsieweke@posteo.net>
This commit is contained in:
bors[bot] 2023-06-26 10:12:37 +00:00 committed by GitHub
commit abc0a09828
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,5 +121,9 @@ CFLAGS += $(filter-out $(OPTIONAL_CFLAGS_BLACKLIST),$(OPTIONAL_CFLAGS))
CXXEXFLAGS += -Wno-missing-field-initializers
# Reformat the RAM region for usage within code and expose them
CFLAGS += -DCPU_RAM_BASE=$(RAM_START_ADDR)
CFLAGS += -DCPU_RAM_SIZE=$(shell printf "0x%x" $$(($(RAM_LEN:%K=%*1024))))
ifneq (,$(RAM_START_ADDR))
CFLAGS += -DCPU_RAM_BASE=$(RAM_START_ADDR)
endif
ifneq (,$(RAM_LEN))
CFLAGS += -DCPU_RAM_SIZE=$(shell printf "0x%x" $$(($(RAM_LEN:%K=%*1024))))
endif