From: York Sun Date: Tue, 18 Apr 2017 08:34:50 -0700 Subject: [U-Boot] [PATCH v5] ls1046ardb: SPL size reduction In-Reply-To: <1490847793-29733-1-git-send-email-sumit.garg@nxp.com> References: <1490847793-29733-1-git-send-email-sumit.garg@nxp.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 03/29/2017 09:55 AM, Sumit Garg wrote: > Using changes in this patch we were able to reduce approx 4k > size of u-boot-spl.bin image. Following is breif description of > changes to reduce SPL size: > 1. Changes in board/freescale/ls1046ardb/Makefile to remove > compilation of eth.c and cpld.c in case of SPL build. > 2. Changes in board/freescale/ls1046ardb/ls1046ardb.c to keep > only ddr_init and board_early_init_f funcations in case of SPL > build. > 3. Changes in ls1046a_common.h & ls1046ardb.h to remove driver > specific macros due to which static data was being compiled in > case of SPL build. > 4. Disable MMC driver from bieng compiled in case of SPL NAND > build and NAND driver from bieng compiled in case of SPL MMC build. > > Signed-off-by: Vinitha Pillai > Signed-off-by: Sumit Garg > --- > > Changes in v5: > Move macros from rdb specfic header file to common header file. > > Changes in v4: > Rename macros in header files. > > Changes in v3: > Reorganised way to remove driver macros in ls1046a_common.h & ls1046ardb.h > files for easy maintainability. > > Changes in v2: > Rebased and fixed compilation warning on ls1046aqds. > Applied to u-boot-fsl-qoriq master, awaiting upstream. Thanks. York