From a4c2f50b640a4e93e0192718cfabb9686c6ca9a0 Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Mon, 29 Apr 2019 12:11:06 +0530 Subject: 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 Reviewed-by: Alistair Francis --- platform/qemu/sifive_u/config.mk | 1 + platform/qemu/virt/config.mk | 1 + platform/sifive/fu540/config.mk | 1 + platform/template/config.mk | 8 +++++++- 4 files changed, 10 insertions(+), 1 deletion(-) 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 @@ -45,6 +45,13 @@ platform-ldflags-y = # Firmware load address configuration. This is mandatory. FW_TEXT_START=0x80000000 +# +# Dynamic firmware configuration. +# Optional parameters are commented out. Uncomment and define these parameters +# as needed. +# +FW_DYNAMIC= + # # Jump firmware configuration. # Optional parameters are commented out. Uncomment and define these parameters @@ -83,4 +90,3 @@ endif # Allow linking against static libc for standard functions (memset, memcpy, etc) # # PLATFORM_INCLUDE_LIBC=y - -- cgit v1.2.3