[PATCH] arm: imx: RELOCATABLE default yes on IMX_MULTI_BOARDS

Sascha Hauer s.hauer at pengutronix.de
Wed Aug 19 02:45:00 EDT 2020


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 at 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 |



More information about the barebox mailing list