summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNathaniel Graff <nathaniel.graff@sifive.com>2019-05-02 20:04:34 +0000
committerGitHub <noreply@github.com>2019-05-02 20:04:34 +0000
commit139149a670354a74cb2a5693c270bb24ea39dc05 (patch)
tree01ff5eda110417a43bcbff9c6b76fb62a6a5191d /scripts
parentb178ea51465fdaf68e848dc8f55be03bd140013a (diff)
parentb555941a3d06c31e03ecf51eef608c7356bdb3b9 (diff)
Merge pull request #239 from sifive/bare-header
Update to use metal-platform.h (bare header)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/libmetal.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/libmetal.mk b/scripts/libmetal.mk
index c45972a..bd89173 100644
--- a/scripts/libmetal.mk
+++ b/scripts/libmetal.mk
@@ -5,6 +5,7 @@
METAL_SOURCE_PATH ?= freedom-metal
METAL_LDSCRIPT = $(BSP_DIR)/metal.$(LINK_TARGET).lds
METAL_HEADER = $(BSP_DIR)/metal.h
+PLATFORM_HEADER = $(BSP_DIR)/metal-platform.h
METAL_PREFIX = $(abspath $(BSP_DIR)/install)
METAL_BUILD_DIR = $(abspath $(BSP_DIR)/build/$(CONFIGURATION))
@@ -26,6 +27,7 @@ $(METAL_BUILD_DIR)/Makefile:
--with-preconfigured \
--with-machine-name=$(TARGET) \
--with-machine-header=$(abspath $(METAL_HEADER)) \
+ --with-platform-header=$(abspath $(PLATFORM_HEADER)) \
--with-machine-ldscript=$(abspath $(METAL_LDSCRIPT)) \
--with-builtin-libgloss
touch -c $@