summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2019-04-29 09:41:06 +0300
committerAnup Patel <anup@brainfault.org>2019-05-10 09:56:22 +0300
commita4c2f50b640a4e93e0192718cfabb9686c6ca9a0 (patch)
tree57c6d3ffadd2ae5cc1493ad3baf86fbb73b2e8ab
parentbae54f764570f3fa5c592f313b45352d9f6f1d8a (diff)
downloadopensbi-a4c2f50b640a4e93e0192718cfabb9686c6ca9a0.tar.xz
platform: Enable dynamic firmware for appropriate platforms
This patch enables FW_DYNAMIC option (i.e. dynamic firmware) for all appropriate/applicable platforms. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
-rw-r--r--platform/qemu/sifive_u/config.mk1
-rw-r--r--platform/qemu/virt/config.mk1
-rw-r--r--platform/sifive/fu540/config.mk1
-rw-r--r--platform/template/config.mk8
4 files changed, 10 insertions, 1 deletions
diff --git a/platform/qemu/sifive_u/config.mk b/platform/qemu/sifive_u/config.mk
index 097fcdb..87e12ee 100644
--- a/platform/qemu/sifive_u/config.mk
+++ b/platform/qemu/sifive_u/config.mk
@@ -24,6 +24,7 @@ PLATFORM_SYS_CLINT=y
# Blobs to build
FW_TEXT_START=0x80000000
+FW_DYNAMIC=y
FW_JUMP=y
ifeq ($(PLATFORM_RISCV_XLEN), 32)
# This needs to be 4MB alligned for 32-bit system
diff --git a/platform/qemu/virt/config.mk b/platform/qemu/virt/config.mk
index ad58b72..2b0709c 100644
--- a/platform/qemu/virt/config.mk
+++ b/platform/qemu/virt/config.mk
@@ -24,6 +24,7 @@ PLATFORM_SYS_CLINT=y
# Blobs to build
FW_TEXT_START=0x80000000
+FW_DYNAMIC=y
FW_JUMP=y
ifeq ($(PLATFORM_RISCV_XLEN), 32)
# This needs to be 4MB alligned for 32-bit system
diff --git a/platform/sifive/fu540/config.mk b/platform/sifive/fu540/config.mk
index 352c156..fbb5db8 100644
--- a/platform/sifive/fu540/config.mk
+++ b/platform/sifive/fu540/config.mk
@@ -20,6 +20,7 @@ PLATFORM_SYS_CLINT=y
# Blobs to build
FW_TEXT_START=0x80000000
+FW_DYNAMIC=y
FW_JUMP=y
FW_JUMP_ADDR=0x80200000
FW_JUMP_FDT_ADDR=0x82200000
diff --git a/platform/template/config.mk b/platform/template/config.mk
index 5623a9b..5ba8efc 100644
--- a/platform/template/config.mk
+++ b/platform/template/config.mk
@@ -46,6 +46,13 @@ platform-ldflags-y =
FW_TEXT_START=0x80000000
#
+# Dynamic firmware configuration.
+# Optional parameters are commented out. Uncomment and define these parameters
+# as needed.
+#
+FW_DYNAMIC=<y|n>
+
+#
# Jump firmware configuration.
# Optional parameters are commented out. Uncomment and define these parameters
# as needed.
@@ -83,4 +90,3 @@ endif
# Allow linking against static libc for standard functions (memset, memcpy, etc)
#
# PLATFORM_INCLUDE_LIBC=y
-