summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorNathaniel Graff <nathaniel.graff@sifive.com>2019-04-29 14:49:56 -0700
committerNathaniel Graff <nathaniel.graff@sifive.com>2019-05-02 11:09:59 -0700
commitf45383993efe41542c0de2ca030a1ff05f765b6e (patch)
treec8e74c959d67e413e458f596def222df7a5dbfaa /bsp
parentb178ea51465fdaf68e848dc8f55be03bd140013a (diff)
Update Metal and build scripts for platform header
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
Diffstat (limited to 'bsp')
-rwxr-xr-xbsp/update-targets.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/bsp/update-targets.sh b/bsp/update-targets.sh
index c659f7d..b05731a 100755
--- a/bsp/update-targets.sh
+++ b/bsp/update-targets.sh
@@ -69,6 +69,7 @@ DTC=dtc
MEE_HEADER_GENERATOR=freedom-metal_header-generator
LDSCRIPT_GENERATOR=freedom-ldscript-generator
MAKEATTRIB_GENERATOR=freedom-makeattributes-generator
+BARE_HEADER_GENERATOR=freedom-bare_header-generator
DTS_FILENAME=design.dts
DTB_FILENAME=temp.dtb
@@ -77,6 +78,7 @@ LDS_DEFAULT_FILENAME=metal.default.lds
LDS_RAMRODATA_FILENAME=metal.ramrodata.lds
LDS_SCRATCHPAD_FILENAME=metal.scratchpad.lds
SETTINGS_FILENAME=settings.mk
+BARE_HEADER_FILENAME=metal-platform.h
update_target() {
TARGET=$1
@@ -99,6 +101,7 @@ update_target() {
$LDSCRIPT_GENERATOR -d $TARGET/$DTB_FILENAME -l $TARGET/$LDS_RAMRODATA_FILENAME --ramrodata || die "Failed to produce $TARGET/$LDS_RAMRODATA_FILENAME"
$LDSCRIPT_GENERATOR -d $TARGET/$DTB_FILENAME -l $TARGET/$LDS_SCRATCHPAD_FILENAME --scratchpad || die "Failed to produce $TARGET/$LDS_SCRATCHPAD_FILENAME"
$MAKEATTRIB_GENERATOR -d $TARGET/$DTB_FILENAME -b $TARGET_TYPE -o $TARGET/$SETTINGS_FILENAME || die "Failed to produce $TARGET/$SETTINGS_FILENAME"
+ $BARE_HEADER_GENERATOR -d $TARGET/$DTB_FILENAME -o $TARGET/$BARE_HEADER_FILENAME || die "Failed to produce $TARGET/$BARE_HEADER_FILENAME"
# Remove temporary .dtb
rm $TARGET/$DTB_FILENAME