Skip to contentSkip to conversation

platform: generic: Enable FW_PIC=y as default

PATCH New [email protected] 2 participants 2 messages Apr 27, 2021 – Apr 28, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 platform: generic: Enable FW_PIC=y as default

From: Guo Ren <[email protected]>

Tested with qemu_rv32 & rv64, T-HEAD all hardwares. I think it's time to enable it as default.

Thx Vincent's commit: 0f20e8adcf42

---
 firmware/objects.mk | 4 ++++
 1 file changed, 4 insertions(+)
firmware/objects.mk +4 -0
index c1f632e..ce91c2f 100644
@@ -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
Signature · 1 line
2.7.4
Applied
#1 lore raw

PATCH v2 1/1 platform: generic: Enable FW_PIC=y as default

Quoted 16 lines

-----Original Message-----
From: guoren at kernel.org <[email protected]>
Sent: 27 April 2021 12:30
To: guoren at kernel.org; anup at brainfault.org
Cc: opensbi at lists.infradead.org; Guo Ren <[email protected]>; Anup Patel <[email protected]>; Vincent Chen <[email protected]>
Subject: [PATCH v2] platform: generic: Enable FW_PIC=y as default

From: Guo Ren <[email protected]>

Tested with qemu_rv32 & rv64, T-HEAD all hardwares. I think it's time to enable it as default.

Quoted 7 lines

Thx Vincent's commit: 0f20e8adcf42

Replaced patch subject prefix with "firmware:" and also updated commit description.

Applied this patch to the riscv/opensbi repo

Regards,
Anup

Quoted 21 lines
---
 firmware/objects.mk | 4 ++++
 1 file changed, 4 insertions(+)
firmware/objects.mk index renamed from firmware/objects.mk +0 -0

c1f632e..ce91c2f 100644

firmware/objects.mk +4 -1
@@ -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
--

2.7.4