diff options
author | Guo Ren <guoren@linux.alibaba.com> | 2021-04-27 07:00:25 +0000 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2021-04-28 15:38:22 +0530 |
commit | bf3ef53bb7f59edd2a54b34e080fd4462d938630 (patch) | |
tree | 76483a92e2a94a215eb4de85d2202c863a2b011f /firmware | |
parent | 0d56293817315073b2b07471d5889a5bdf6550ee (diff) |
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.mk | 4 |
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 |