summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorGuo Ren <guoren@linux.alibaba.com>2021-04-27 10:00:25 +0300
committerAnup Patel <anup@brainfault.org>2021-04-28 13:08:22 +0300
commitbf3ef53bb7f59edd2a54b34e080fd4462d938630 (patch)
tree76483a92e2a94a215eb4de85d2202c863a2b011f /firmware
parent0d56293817315073b2b07471d5889a5bdf6550ee (diff)
downloadopensbi-bf3ef53bb7f59edd2a54b34e080fd4462d938630.tar.xz
firmware: Enable FW_PIC by default
Let's have FW_PIC enabled by default so that OpenSBI firmware can by default run from any physical address. Tested with qemu_rv32 & rv64, T-HEAD all hardwares. Suggested-by: Anup Patel <anup.patel@wdc.com> Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Tested-by: Guo Ren <guoren@linux.alibaba.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'firmware')
-rw-r--r--firmware/objects.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/objects.mk b/firmware/objects.mk
index c1f632e..ce91c2f 100644
--- a/firmware/objects.mk
+++ b/firmware/objects.mk
@@ -13,6 +13,10 @@ firmware-cflags-y +=
firmware-asflags-y +=
firmware-ldflags-y +=
+ifndef FW_PIC
+FW_PIC := y
+endif
+
ifeq ($(FW_PIC),y)
firmware-genflags-y += -DFW_PIC
firmware-asflags-y += -fpic