From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Thu, 15 Jul 2010 09:59:41 +0200 Subject: [U-Boot] mkconfig "arch" link generation In-Reply-To: <4C3DB966.30003@sirius-es.it> References: <4C3D83F3.1040606@sirius-es.it> <4C3D8D09.1050106@denx.de> <4C3DB966.30003@sirius-es.it> Message-ID: <4C3EBFED.1050306@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 Matteo Facchinetti wrote: > Hi Stefano, Hi Matteo, > Yes, you're rigth, > but I'm tring to write nand_spl driver for add nand boot support for my > TWR-MPC5125 evaluation board. > In first step I take what I need from LTIB (freescale) and then I > adjust the code for uboot mainline. > The part takes from LTIB of 2k first stage nandboot code uses directly > SRAMBAR and SWCRR defines. > > Now, I suppose, correct develop is to use the common c code in nand_spl > directory and eventually customizing for my board unless use > "include/asm/arch/..." for powerpc arch. > Is it true? Yes, and if you see under nand_spl/boar you have some examples how to find additional files. You see that in Makefiles some local link are created, and you could use the same mechanism to have a local asm-offsets.h However, I agree that we should not generate broken link and IMHO the position of asm-offsets.h is wrong. But again, the best thing should be to generate this file automatically importing the mechanism from the kernel. Best regards, Stefano -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================