[riot-notifications] [RIOT-OS/RIOT] cpu/kinetis: fix values stored in ROM_LEN/RAM_LEN variables (#10888)

Gaƫtan Harter notifications at github.com
Fri Feb 22 11:43:54 CET 2019


I could run `make -C examples/hello-world buildtest` with this diff:

```diff
diff --git a/cpu/kinetis/Makefile.include b/cpu/kinetis/Makefile.include
index a5f36b4ed..7d60f9c22 100644
--- a/cpu/kinetis/Makefile.include
+++ b/cpu/kinetis/Makefile.include
@@ -13,7 +13,10 @@ LINKER_SCRIPT = kinetis.ld
 ROM_START_ADDR = 0x00000000
 RAM_BASE_ADDR  = 0x20000000
 RAM_START_ADDR = $$(($(RAM_BASE_ADDR)-($(KINETIS_SRAM_L_SIZE) * 1024)))
-ROM_LEN = $$(($(KINETIS_ROMSIZE) * 1024))
+# 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))
 
 CFLAGS += \
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10888#issuecomment-466354757
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190222/c8149950/attachment-0001.html>


More information about the notifications mailing list