Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #436 from sifive/check-bsps-updated
Browse files Browse the repository at this point in the history
Add check to make sure BSP files are up-to-date
  • Loading branch information
nategraff-sifive authored Mar 12, 2020
2 parents a353d73 + 25683cc commit 235634e
Show file tree
Hide file tree
Showing 22 changed files with 48 additions and 29 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
run: |
docker run --rm freedom-e-sdk ./scripts/check-submodules
- name: 'Check BSP files are up-to-date'
run: |
docker run --rm freedom-e-sdk ./scripts/check-bsps-updated
- name: 'Build all examples on all targets'
run: |
docker run --rm -e RISCV_CFLAGS="${{ matrix.riscv_cflags }}" freedom-e-sdk ./scripts/all-targets-build
Expand Down
4 changes: 2 additions & 2 deletions bsp/freedom-e310-arty/metal.default.lds
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ ENTRY(_enter)

MEMORY
{
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
ram (arw!xi) : ORIGIN = 0x80000000, LENGTH = 0x4000
itim (airwx) : ORIGIN = 0x8000000, LENGTH = 0x4000
ram (arw!xi) : ORIGIN = 0x80000000, LENGTH = 0x4000
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
}

SECTIONS
Expand Down
4 changes: 2 additions & 2 deletions bsp/freedom-e310-arty/metal.ramrodata.lds
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ ENTRY(_enter)

MEMORY
{
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
ram (arw!xi) : ORIGIN = 0x80000000, LENGTH = 0x4000
itim (airwx) : ORIGIN = 0x8000000, LENGTH = 0x4000
ram (arw!xi) : ORIGIN = 0x80000000, LENGTH = 0x4000
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
}

SECTIONS
Expand Down
4 changes: 2 additions & 2 deletions bsp/freedom-e310-arty/metal.scratchpad.lds
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ ENTRY(_enter)

MEMORY
{
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
ram (arw!xi) : ORIGIN = 0x80000000, LENGTH = 0x4000
itim (airwx) : ORIGIN = 0x8000000, LENGTH = 0x4000
ram (arw!xi) : ORIGIN = 0x80000000, LENGTH = 0x4000
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
}

SECTIONS
Expand Down
2 changes: 1 addition & 1 deletion bsp/qemu-sifive-e31/metal.default.lds
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ ENTRY(_enter)

MEMORY
{
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
ram (airwx) : ORIGIN = 0x80000000, LENGTH = 0x400000
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
}

SECTIONS
Expand Down
2 changes: 1 addition & 1 deletion bsp/qemu-sifive-e31/metal.ramrodata.lds
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ ENTRY(_enter)

MEMORY
{
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
ram (airwx) : ORIGIN = 0x80000000, LENGTH = 0x400000
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
}

SECTIONS
Expand Down
2 changes: 1 addition & 1 deletion bsp/qemu-sifive-e31/metal.scratchpad.lds
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ ENTRY(_enter)

MEMORY
{
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
ram (airwx) : ORIGIN = 0x80000000, LENGTH = 0x400000
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
}

SECTIONS
Expand Down
2 changes: 1 addition & 1 deletion bsp/qemu-sifive-s51/metal.default.lds
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ ENTRY(_enter)

MEMORY
{
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
ram (airwx) : ORIGIN = 0x80000000, LENGTH = 0x400000
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
}

SECTIONS
Expand Down
2 changes: 1 addition & 1 deletion bsp/qemu-sifive-s51/metal.ramrodata.lds
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ ENTRY(_enter)

MEMORY
{
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
ram (airwx) : ORIGIN = 0x80000000, LENGTH = 0x400000
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
}

SECTIONS
Expand Down
2 changes: 1 addition & 1 deletion bsp/qemu-sifive-s51/metal.scratchpad.lds
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ ENTRY(_enter)

MEMORY
{
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
ram (airwx) : ORIGIN = 0x80000000, LENGTH = 0x400000
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
}

SECTIONS
Expand Down
4 changes: 2 additions & 2 deletions bsp/sifive-hifive-unleashed/metal.default.lds
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ ENTRY(_enter)

MEMORY
{
rom (irx!wa) : ORIGIN = 0x20000000, LENGTH = 0x10000000
ram (arw!xi) : ORIGIN = 0x80000000, LENGTH = 0x1f80000000
itim (airwx) : ORIGIN = 0x1808000, LENGTH = 0x8000
ram (arw!xi) : ORIGIN = 0x80000000, LENGTH = 0x1f80000000
rom (irx!wa) : ORIGIN = 0x20000000, LENGTH = 0x10000000
}

SECTIONS
Expand Down
4 changes: 2 additions & 2 deletions bsp/sifive-hifive-unleashed/metal.ramrodata.lds
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ ENTRY(_enter)

MEMORY
{
rom (irx!wa) : ORIGIN = 0x20000000, LENGTH = 0x10000000
ram (arw!xi) : ORIGIN = 0x80000000, LENGTH = 0x1f80000000
itim (airwx) : ORIGIN = 0x1808000, LENGTH = 0x8000
ram (arw!xi) : ORIGIN = 0x80000000, LENGTH = 0x1f80000000
rom (irx!wa) : ORIGIN = 0x20000000, LENGTH = 0x10000000
}

SECTIONS
Expand Down
4 changes: 2 additions & 2 deletions bsp/sifive-hifive-unleashed/metal.scratchpad.lds
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ ENTRY(_enter)

MEMORY
{
rom (irx!wa) : ORIGIN = 0x20000000, LENGTH = 0x10000000
ram (arw!xi) : ORIGIN = 0x80000000, LENGTH = 0x1f80000000
itim (airwx) : ORIGIN = 0x1808000, LENGTH = 0x8000
ram (arw!xi) : ORIGIN = 0x80000000, LENGTH = 0x1f80000000
rom (irx!wa) : ORIGIN = 0x20000000, LENGTH = 0x10000000
}

SECTIONS
Expand Down
4 changes: 2 additions & 2 deletions bsp/sifive-hifive1-revb/metal.default.lds
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ ENTRY(_enter)

MEMORY
{
rom (irx!wa) : ORIGIN = 0x20040000, LENGTH = 0x3a120
ram (arw!xi) : ORIGIN = 0x80000000, LENGTH = 0x4000
itim (airwx) : ORIGIN = 0x8000000, LENGTH = 0x2000
ram (arw!xi) : ORIGIN = 0x80000000, LENGTH = 0x4000
rom (irx!wa) : ORIGIN = 0x20040000, LENGTH = 0x3a120
}

SECTIONS
Expand Down
4 changes: 2 additions & 2 deletions bsp/sifive-hifive1-revb/metal.ramrodata.lds
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ ENTRY(_enter)

MEMORY
{
rom (irx!wa) : ORIGIN = 0x20040000, LENGTH = 0x3a120
ram (arw!xi) : ORIGIN = 0x80000000, LENGTH = 0x4000
itim (airwx) : ORIGIN = 0x8000000, LENGTH = 0x2000
ram (arw!xi) : ORIGIN = 0x80000000, LENGTH = 0x4000
rom (irx!wa) : ORIGIN = 0x20040000, LENGTH = 0x3a120
}

SECTIONS
Expand Down
4 changes: 2 additions & 2 deletions bsp/sifive-hifive1-revb/metal.scratchpad.lds
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ ENTRY(_enter)

MEMORY
{
rom (irx!wa) : ORIGIN = 0x20040000, LENGTH = 0x3a120
ram (arw!xi) : ORIGIN = 0x80000000, LENGTH = 0x4000
itim (airwx) : ORIGIN = 0x8000000, LENGTH = 0x2000
ram (arw!xi) : ORIGIN = 0x80000000, LENGTH = 0x4000
rom (irx!wa) : ORIGIN = 0x20040000, LENGTH = 0x3a120
}

SECTIONS
Expand Down
2 changes: 1 addition & 1 deletion bsp/sifive-hifive1/metal.default.lds
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ ENTRY(_enter)

MEMORY
{
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
ram (airwx) : ORIGIN = 0x80000000, LENGTH = 0x4000
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
}

SECTIONS
Expand Down
2 changes: 1 addition & 1 deletion bsp/sifive-hifive1/metal.ramrodata.lds
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ ENTRY(_enter)

MEMORY
{
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
ram (airwx) : ORIGIN = 0x80000000, LENGTH = 0x4000
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
}

SECTIONS
Expand Down
2 changes: 1 addition & 1 deletion bsp/sifive-hifive1/metal.scratchpad.lds
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ ENTRY(_enter)

MEMORY
{
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
ram (airwx) : ORIGIN = 0x80000000, LENGTH = 0x4000
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000
}

SECTIONS
Expand Down
15 changes: 15 additions & 0 deletions scripts/check-bsps-updated
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

set -e
set -o pipefail
set -x

pushd $(dirname "$0")/../bsp && ./update-targets.sh && popd

DIFF=$(git diff)

if [ "${DIFF}" != "" ] ; then
>&2 echo "BSP files change if bsp/update-targets.sh is run."
>&2 echo "Please re-run update-targets.sh to keep BSP files up-to-date."
exit 1
fi
2 changes: 1 addition & 1 deletion scripts/ldscript-generator
2 changes: 1 addition & 1 deletion wit-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"source": "git@github.com:sifive/devicetree-overlay-generator.git"
},
{
"commit": "c3c867cc55aaeaaeee3ca2c49092ffd87aa9b01c",
"commit": "171cbb82c006793538ca687cab91ffcd38f63e55",
"name": "ldscript-generator",
"source": "git@github.com:sifive/ldscript-generator.git"
},
Expand Down

0 comments on commit 235634e

Please sign in to comment.