[U-Boot] [PATCH] armv8: layerscape: set HWCONFIG_BUFFER_SIZE

Priyanka Jain priyanka.jain at nxp.com
Fri Nov 8 05:51:54 UTC 2019

>-----Original Message-----
>From: U-Boot <u-boot-bounces at lists.denx.de> On Behalf Of Michael Walle
>Sent: Monday, October 21, 2019 11:04 PM
>To: u-boot at lists.denx.de
>Cc: Tom Rini <trini at konsulko.com>
>Subject: [U-Boot] [PATCH] armv8: layerscape: set HWCONFIG_BUFFER_SIZE
>Set the HWCONFIG_BUFFER_SIZE if it is not already set. Otherwise
>compilation will fail if CONFIG_HWCONFIG and HWCONFIG_BUFFER_SIZE are
>not set.
>Taken from arch/powerpc/include/asm/config.h.
>Signed-off-by: Michael Walle <michael at walle.cc>
> arch/arm/include/asm/arch-fsl-layerscape/config.h | 4 ++++
> 1 file changed, 4 insertions(+)
>diff --git a/arch/arm/include/asm/arch-fsl-layerscape/config.h
>index a83c70ece2..24bf854cbe 100644
>--- a/arch/arm/include/asm/arch-fsl-layerscape/config.h
>+++ b/arch/arm/include/asm/arch-fsl-layerscape/config.h
>@@ -12,6 +12,10 @@
> #define CONFIG_STANDALONE_LOAD_ADDR	0x80300000
>+  #define HWCONFIG_BUFFER_SIZE 256
This breaks compilation for platform like lx2160ardb.
Error snippet:

include/configs/lx2160a_common.h:173: warning: "HWCONFIG_BUFFER_SIZE" redefined                                                             
 #define HWCONFIG_BUFFER_SIZE  128                                    
In file included from include/configs/lx2160a_common.h:10,
                 from include/configs/lx2160ardb.h:9,
                 from include/config.h:5,
                 from include/common.h:23,
                 from common/malloc_simple.c:10:
./arch/arm/include/asm/arch/config.h:16: note: this is the location of the previous definition                                              
   #define HWCONFIG_BUFFER_SIZE 256  


More information about the U-Boot mailing list