Skip to content

Commit

Permalink
Merge pull request #3472 from jrvanwhy/ld-headers
Browse files Browse the repository at this point in the history
Add license headers to `.ld` files.
  • Loading branch information
bradjc committed Jun 14, 2023
2 parents 591c3c4 + b766f08 commit 8a09658
Show file tree
Hide file tree
Showing 49 changed files with 192 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .lcignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,5 @@

# File types that the license checker does not support but should support (see
# issue #3417)
*.ld
!/tools/license-checker/testdata/block_comments.ld
*.xml
!/tools/license-checker/testdata/block_comments.xml
4 changes: 4 additions & 0 deletions boards/acd52832/layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/* Memory Space Definitions, 512K flash, 64K ram */
MEMORY
{
Expand Down
4 changes: 4 additions & 0 deletions boards/apollo3/lora_things_plus/layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

MEMORY
{
rom (rx) : ORIGIN = 0x0000C000, LENGTH = 0x00030000
Expand Down
4 changes: 4 additions & 0 deletions boards/apollo3/redboard_artemis_nano/layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

MEMORY
{
rom (rx) : ORIGIN = 0x0000C000, LENGTH = 0x00030000
Expand Down
4 changes: 4 additions & 0 deletions boards/arty_e21/layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

MEMORY
{
rom (rx) : ORIGIN = 0x40400000, LENGTH = 0x00030000
Expand Down
4 changes: 4 additions & 0 deletions boards/clue_nrf52840/layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

MEMORY
{
# Make space for the UF2 bootloader (152K)
Expand Down
4 changes: 4 additions & 0 deletions boards/esp32-c3-devkitM-1/layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

MEMORY
{
rom (rx) : ORIGIN = 0x40380000, LENGTH = 0x30000
Expand Down
4 changes: 4 additions & 0 deletions boards/hail/chip_layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/* Memory Spaces Definitions, 448K flash, 64K ram */
/* Bootloader is at address 0x00000000 */
MEMORY
Expand Down
4 changes: 4 additions & 0 deletions boards/hail/layout.ld
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

INCLUDE ./chip_layout.ld
INCLUDE ../kernel_layout.ld
4 changes: 4 additions & 0 deletions boards/hifive1/layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/* The HiFive1a board has 512 MB of flash. The first 0x400000 is reserved for
* the default bootloader provided by SiFive. We also reserve room for apps to
* make all of the linker files work, but don't really support them on this
Expand Down
4 changes: 4 additions & 0 deletions boards/hifive_inventor/layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/* The HiFive inventor board has 512 MiB of flash and 64 KiB of RAM.
*/

Expand Down
4 changes: 4 additions & 0 deletions boards/imix/chip_layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/* Memory Spaces Definitions, 448K flash, 64K ram */
/* Use bootloader starting at 0x0000 */
MEMORY
Expand Down
4 changes: 4 additions & 0 deletions boards/imix/layout.ld
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

INCLUDE ./chip_layout.ld
INCLUDE ../kernel_layout.ld
4 changes: 4 additions & 0 deletions boards/imxrt1050-evkb/chip_layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/* Memory layout for the i.MX RT 1050 EVKB
* rom = 2MB (LENGTH = 0x02000000)
* kernel = 256KB
Expand Down
4 changes: 4 additions & 0 deletions boards/imxrt1050-evkb/layout.ld
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

INCLUDE ./chip_layout.ld
INCLUDE ../kernel_layout.ld
4 changes: 4 additions & 0 deletions boards/kernel_layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/*
* This is the generic linker script for Tock. For most developers, it should
* be sufficient to define {ROM/PROG/RAM}_{ORIGIN/LENGTH} (6 variables, the
Expand Down
4 changes: 4 additions & 0 deletions boards/litex/arty/layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/* The entire memory is actually placed into DRAM by the bootloader */

MEMORY
Expand Down
4 changes: 4 additions & 0 deletions boards/litex/sim/layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/* RAM starts at 0x40000000, the binary is loaded into ROM at 0x0 */

MEMORY
Expand Down
4 changes: 4 additions & 0 deletions boards/microbit_v2/layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

MEMORY
{
# with bootloader
Expand Down
4 changes: 4 additions & 0 deletions boards/msp_exp432p401r/chip_layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/* Memory Space Definitions, 256K flash, 64K ram */
MEMORY
{
Expand Down
4 changes: 4 additions & 0 deletions boards/msp_exp432p401r/layout.ld
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

INCLUDE ./chip_layout.ld
INCLUDE ../kernel_layout.ld
4 changes: 4 additions & 0 deletions boards/nano33ble/layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

MEMORY
{
rom (rx) : ORIGIN = 0x00010000, LENGTH = 256K
Expand Down
4 changes: 4 additions & 0 deletions boards/nano_rp2040_connect/layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

MEMORY
{
/* uncomment this to boot from RAM */
Expand Down
4 changes: 4 additions & 0 deletions boards/nordic/nrf52832_chip_layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/* Memory Space Definitions, 512K flash, 64K ram */
MEMORY
{
Expand Down
4 changes: 4 additions & 0 deletions boards/nordic/nrf52840_chip_layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/* Memory Space Definitions, 1M flash, 256K ram */
MEMORY
{
Expand Down
4 changes: 4 additions & 0 deletions boards/nordic/nrf52840_dongle/layout.ld
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

INCLUDE ../nrf52840_chip_layout.ld
INCLUDE ../../kernel_layout.ld
4 changes: 4 additions & 0 deletions boards/nordic/nrf52840dk/layout.ld
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

INCLUDE ../nrf52840_chip_layout.ld
INCLUDE ../../kernel_layout.ld
4 changes: 4 additions & 0 deletions boards/nordic/nrf52dk/layout.ld
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

INCLUDE ../nrf52832_chip_layout.ld
INCLUDE ../../kernel_layout.ld
4 changes: 4 additions & 0 deletions boards/nucleo_f429zi/chip_layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/* Memory layout for the STM32F446RE
* rom = 2MB (LENGTH = 0x02000000)
* kernel = 256KB
Expand Down
4 changes: 4 additions & 0 deletions boards/nucleo_f429zi/layout.ld
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

INCLUDE ./chip_layout.ld
INCLUDE ../kernel_layout.ld
4 changes: 4 additions & 0 deletions boards/nucleo_f446re/chip_layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/* Memory layout for the STM32F446RE
* rom = 512KB (LENGTH = 0x00080000)
* kernel = 256KB
Expand Down
4 changes: 4 additions & 0 deletions boards/nucleo_f446re/layout.ld
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

INCLUDE ./chip_layout.ld
INCLUDE ../kernel_layout.ld
4 changes: 4 additions & 0 deletions boards/opentitan/earlgrey-cw310/layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

MEMORY
{
rom (rx) : ORIGIN = 0x20000000, LENGTH = 0x30000
Expand Down
4 changes: 4 additions & 0 deletions boards/opentitan/earlgrey-cw310/test_layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/*
* This is used when building test binaries with `make test`.
* It reduces the size for apps, as we don't use apps with the test
Expand Down
4 changes: 4 additions & 0 deletions boards/particle_boron/layout.ld
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

INCLUDE ../nordic/nrf52840_chip_layout.ld
INCLUDE ../kernel_layout.ld
4 changes: 4 additions & 0 deletions boards/pico_explorer_base/layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

MEMORY
{
/* uncomment this to boot from RAM */
Expand Down
4 changes: 4 additions & 0 deletions boards/qemu_rv32_virt/layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/**
* QEMU emulated DRAM region. Tock is currently designed to be placed
* at the start of DRAM, using the `-bios` option in qemu-system-riscv32.
Expand Down
4 changes: 4 additions & 0 deletions boards/raspberry_pi_pico/layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

MEMORY
{
/* uncomment this to boot from RAM */
Expand Down
4 changes: 4 additions & 0 deletions boards/redboard_redv/layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/* The RedV board has 4 MB of flash. The first 0x10000 is reserved for
* the default bootloader provided by SiFive. We also reserve room for apps to
* make all of the linker files work.
Expand Down
4 changes: 4 additions & 0 deletions boards/sma_q3/layout.ld
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

INCLUDE ../nordic/nrf52840_chip_layout.ld
INCLUDE ../kernel_layout.ld
4 changes: 4 additions & 0 deletions boards/stm32f3discovery/chip_layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/* Memory layout for the STM32F303VCT6
* rom = 256KB (LENGTH = 0x00040000)
* kernel = 128KB
Expand Down
4 changes: 4 additions & 0 deletions boards/stm32f3discovery/layout.ld
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

INCLUDE ./chip_layout.ld
INCLUDE ../kernel_layout.ld
4 changes: 4 additions & 0 deletions boards/stm32f412gdiscovery/chip_layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/* Memory layout for the STM32F412G
* rom = 1MB (LENGTH = 0x01000000)
* kernel = 256KB
Expand Down
4 changes: 4 additions & 0 deletions boards/stm32f412gdiscovery/layout.ld
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

INCLUDE ./chip_layout.ld
INCLUDE ../kernel_layout.ld
4 changes: 4 additions & 0 deletions boards/stm32f429idiscovery/chip_layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/* Memory layout for the STM32F446RE
* rom = 2MB (LENGTH = 0x02000000)
* kernel = 256KB
Expand Down
4 changes: 4 additions & 0 deletions boards/stm32f429idiscovery/layout.ld
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

INCLUDE ./chip_layout.ld
INCLUDE ../kernel_layout.ld
4 changes: 4 additions & 0 deletions boards/swervolf/layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

MEMORY
{
rom (rx) : ORIGIN = 0x00000000, LENGTH = 0x30000
Expand Down
4 changes: 4 additions & 0 deletions boards/teensy40/layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/*
* Teensy 4 Linker Script
*
Expand Down
4 changes: 4 additions & 0 deletions boards/weact_f401ccu6/layout.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */

/* Memory layout for the STM32F401CCU6
* rom = 256KB (LENGTH = 0x00040000)
* kernel = 128KB
Expand Down

0 comments on commit 8a09658

Please sign in to comment.