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

Merge pull request #16608 from benpicco/cpu/kinetis-RAM_LEN

cpu/kinetis: fix RAM_LEN calculation
This commit is contained in:
benpicco 2021-07-05 09:47:55 +02:00 committed by GitHub
commit 9755b7ae12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,8 +26,8 @@ RAM_START_ADDR := $(shell printf "0x%08x" $$(($(RAM_BASE_ADDR)-($(KINETIS_SRAM_L
# Define ROM_LEN with a non arithmetic value as it must be
# evaluated in `cortexm_common` without a shell context
# The `K` is correctly handled by both the linker and `cortexm_common`.
ROM_LEN = $(KINETIS_ROMSIZE)K
RAM_LEN = $$(($(KINETIS_RAMSIZE) * 1024))
ROM_LEN := $(KINETIS_ROMSIZE)K
RAM_LEN := $(shell echo $$(($(KINETIS_RAMSIZE) * 1024)))
CFLAGS += \
-DKINETIS_CORE_$(KINETIS_CORE) \