[U-Boot] [PATCH 3/3] Kconfig: move CONFIG_STANDALONE_LOAD_ADDR to Kconfig

Max Filippov jcmvbkbc at gmail.com
Mon Sep 24 17:55:14 UTC 2018


On Sun, Sep 23, 2018 at 1:02 PM, Daniel Schwierzeck
<daniel.schwierzeck at gmail.com> wrote:
> Create a new Kconfig menu called 'Standalone programs' with
> 'Program load address' as menu entry. It's possible now to build without
> the standalone example. Anyway the default value for CONFIG_STANDALONE
> is 'y' to maintain the current behavior.
>
> Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck at gmail.com>

[...]

> diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig
> index 2ba7132c20..e228f15660 100644
> --- a/arch/xtensa/Kconfig
> +++ b/arch/xtensa/Kconfig
> @@ -8,6 +8,9 @@ config SYS_ARCH
>  config SYS_CPU
>         string "Xtensa Core Variant"
>
> +config STANDALONE_LOAD_ADDR
> +       default 0x00800000
> +

This doesn't preserve current address assignment for xtensa
XTFPGA boards:

> --- a/include/configs/xtfpga.h
> +++ b/include/configs/xtfpga.h
> @@ -74,22 +74,6 @@
>  #define CONFIG_SYS_MEMTEST_START       MEMADDR(0x01000000)
>  #define CONFIG_SYS_MEMTEST_END         MEMADDR(0x02000000)
>
> -/* Load address for stand-alone applications.
> - * MEMADDR cannot be used here, because the definition needs to be
> - * a plain number as it's used as -Ttext argument for ld in standalone
> - * example makefile.
> - * Handle noMMU vs MMUv2 vs MMUv3 distinction here manually.
> - */
> -#if XCHAL_HAVE_PTP_MMU
> -#if XCHAL_VECBASE_RESET_VADDR == XCHAL_VECBASE_RESET_PADDR
> -#define CONFIG_STANDALONE_LOAD_ADDR    0x00800000
> -#else
> -#define CONFIG_STANDALONE_LOAD_ADDR    0xd0800000
> -#endif
> -#else
> -#define CONFIG_STANDALONE_LOAD_ADDR    0x60800000
> -#endif

OTOH I don't see any way to express this in Kconfig.

-- 
Thanks.
-- Max


More information about the U-Boot mailing list