From: Wolfgang Denk Date: Sun, 02 Sep 2012 14:43:20 +0200 Subject: [U-Boot] [PATCH] hwconfig: Move HWCONFIG_BUFFER_SIZE into hwconfig.h In-Reply-To: <1345226412.6510.38.camel@oslab-l1> References: <1345078436-25476-1-git-send-email-yorksun@freescale.com> <4BFABD7F-B36A-4EF6-A21D-97C026CB410C@kernel.crashing.org> <1345226412.6510.38.camel@oslab-l1> Message-ID: <20120902124320.B41D4203B2F@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear York Sun, In message <1345226412.6510.38.camel@oslab-l1> you wrote: > On Fri, 2012-08-17 at 12:54 -0500, Kumar Gala wrote: > > On Aug 15, 2012, at 7:53 PM, York Sun wrote: > > > > > Before proper environment is setup, we extract hwconfig and put it into a > > > buffer with size HWCONFIG_BUFFER_SIZE. We need to enlarge the buffer to > > > accommodate longer string. Since this macro is used in multiple files, we > > > move it into hwconfig.h. > > > > > > Signed-off-by: York Sun > > > --- > > > > > > arch/powerpc/cpu/mpc85xx/cpu_init.c | 2 -- > > > arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c | 2 -- > > > arch/powerpc/cpu/mpc8xxx/ddr/options.c | 1 - > > > include/hwconfig.h | 2 ++ > > > 4 files changed, 2 insertions(+), 5 deletions(-) > > > > 1. I don't think HWCONFIG_BUFFER_SIZE should be getting set in include/hwconfig.h, this is unique to FSL 8xxx usage not to hwconfig > > If no one else uses this feature, I can move it to > arch/powerpc/include/asm/config.h. How about that? I cannot see in which way arch/powerpc/include/asm/config.h would be more FSL 8xxx specific ? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The average woman would rather have beauty than brains, because the average man can see better than he can think.