mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] arm: imx: RELOCATABLE default yes on IMX_MULTI_BOARDS
@ 2020-08-17 11:03 Lars Pedersen
  2020-08-19  6:45 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Lars Pedersen @ 2020-08-17 11:03 UTC (permalink / raw)
  To: barebox; +Cc: a.fatoum, 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.

Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
---
 common/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/Kconfig b/common/Kconfig
index 658437f01..c37339793 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -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
-- 
2.26.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] arm: imx: RELOCATABLE default yes on IMX_MULTI_BOARDS
  2020-08-17 11:03 [PATCH] arm: imx: RELOCATABLE default yes on IMX_MULTI_BOARDS Lars Pedersen
@ 2020-08-19  6:45 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2020-08-19  6:45 UTC (permalink / raw)
  To: Lars Pedersen; +Cc: barebox, a.fatoum

Hi Lars,

On Mon, Aug 17, 2020 at 01:03:46PM +0200, Lars Pedersen wrote:
> Set relocatable to default yes when compiling for multiple i.MX boards,
> since setting a suitable TEXT_BASE value across multiple boards is impossible.
> 
> Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
> ---
>  common/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/common/Kconfig b/common/Kconfig
> index 658437f01..c37339793 100644
> --- a/common/Kconfig
> +++ b/common/Kconfig
> @@ -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

-- 
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-19  6:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-17 11:03 [PATCH] arm: imx: RELOCATABLE default yes on IMX_MULTI_BOARDS Lars Pedersen
2020-08-19  6:45 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox