Skip to contentSkip to conversation

arm: imx: RELOCATABLE default yes on IMX_MULTI_BOARDS

PATCH Superseded Lars Pedersen 2 participants 2 messages Aug 17, 2020 – Aug 19, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: imx: RELOCATABLE default yes on IMX_MULTI_BOARDS

Set relocatable to default yes when compiling for multiple i.MX boards, since setting a suitable TEXT_BASE value across multiple boards is impossible.

---
 common/Kconfig | 1 +
 1 file changed, 1 insertion(+)
common/Kconfig +1 -0
index 658437f01..c37339793 100644
@@ -349,6 +349,7 @@ config KALLSYMS
 config RELOCATABLE
 	depends on PPC || ARM
 	bool "generate relocatable barebox binary"
+	default y if IMX_MULTI_BOARDS
 	help
 	  A non relocatable barebox binary will run at it's compiled in
 	  link address in RAM. This leads to smaller image sizes but may
Signature · 7 lines
2.26.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

Hi Lars,

Quoted 13 lines · Lars Pedersen

Set relocatable to default yes when compiling for multiple i.MX boards, since setting a suitable TEXT_BASE value across multiple boards is impossible.

---
 common/Kconfig | 1 +
 1 file changed, 1 insertion(+)
common/Kconfig +0 -0
index 658437f01..c37339793 100644

common/Kconfig config KALLSYMS · line 352

Quoted 4 lines
common/Kconfig +1 -0
@@ -349,6 +349,7 @@ config KALLSYMS
 config RELOCATABLE
 	depends on PPC || ARM
 	bool "generate relocatable barebox binary"
+	default y if IMX_MULTI_BOARDS

I would rather just select RELOCATABLE from IMX_MULTI_BOARDS. This makes it impossible to deselect RELOCATABLE for many boards, but I can't think of any valid case where this is really needed, at least not in mainline.

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox