From fb0b1db7594e8c2ee912763bce6e886bbf8c392d Mon Sep 17 00:00:00 2001
From: Julien Cretin <cretin@google.com>
Date: Thu, 30 Apr 2020 16:04:28 +0200
Subject: [PATCH] Rename linker script according to the chip

The layout applies to all boards sharing the nrf52840 chip.
---
 deploy.py                                  | 10 +++++-----
 nrf52840dk_layout.ld => nrf52840_layout.ld |  0
 2 files changed, 5 insertions(+), 5 deletions(-)
 rename nrf52840dk_layout.ld => nrf52840_layout.ld (100%)

diff --git a/deploy.py b/deploy.py
index b7d1199..57b7b86 100755
--- a/deploy.py
+++ b/deploy.py
@@ -87,7 +87,7 @@ SUPPORTED_BOARDS = {
             page_size=4096,
             kernel_address=0,
             padding_address=0x30000,
-            app_ldscript="nrf52840dk_layout.ld",
+            app_ldscript="nrf52840_layout.ld",
             app_address=0x40000,
             pyocd_target="nrf52840",
             openocd_board="nordic_nrf52840_dongle.cfg",
@@ -104,7 +104,7 @@ SUPPORTED_BOARDS = {
             page_size=4096,
             kernel_address=0,
             padding_address=0x30000,
-            app_ldscript="nrf52840dk_layout.ld",
+            app_ldscript="nrf52840_layout.ld",
             app_address=0x40000,
             pyocd_target="nrf52840",
             openocd_board="nordic_nrf52840_dongle.cfg",
@@ -121,7 +121,7 @@ SUPPORTED_BOARDS = {
             page_size=4096,
             kernel_address=0x1000,
             padding_address=0x30000,
-            app_ldscript="nrf52840dk_layout.ld",
+            app_ldscript="nrf52840_layout.ld",
             app_address=0x40000,
             pyocd_target="nrf52840",
             openocd_board="nordic_nrf52840_dongle.cfg",
@@ -138,7 +138,7 @@ SUPPORTED_BOARDS = {
             page_size=4096,
             kernel_address=0x1000,
             padding_address=0x30000,
-            app_ldscript="nrf52840dk_layout.ld",
+            app_ldscript="nrf52840_layout.ld",
             app_address=0x40000,
             pyocd_target="nrf52840",
             openocd_board="nordic_nrf52840_dongle.cfg",
@@ -152,7 +152,7 @@ SUPPORTED_BOARDS = {
 
 # The STACK_SIZE value below must match the one used in the linker script
 # used by the board.
-# e.g. for Nordic nRF52840 boards the file is `nrf52840dk_layout.ld`.
+# e.g. for Nordic nRF52840 boards the file is `nrf52840_layout.ld`.
 STACK_SIZE = 0x4000
 
 # The following value must match the one used in the file
diff --git a/nrf52840dk_layout.ld b/nrf52840_layout.ld
similarity index 100%
rename from nrf52840dk_layout.ld
rename to nrf52840_layout.ld
-- 
GitLab