From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aneesh V Date: Thu, 02 Feb 2012 22:18:04 +0530 Subject: [U-Boot] [PATCH 1/1] arm: mmc: omap: spl size reduction by removing write/erase ops In-Reply-To: References: <1328187876-31539-1-git-send-email-balajitk@ti.com> Message-ID: <4F2ABE44.6090303@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Tom, On Thursday 02 February 2012 10:02 PM, Tom Rini wrote: > On Thu, Feb 2, 2012 at 6:04 AM, Balaji T K wrote: >> spl for OMAP4 does not use mmc read/write. >> Add CONFIG_MMC_NO_ERASE, CONFIG_MMC_NO_WRITE to platforms where mmc >> write/erase operation is not needed in spl. >> Use these CONFIGS to remove write/erase code in mmc.c and omap_hsmmc.c >> This reduces the spl size by ~1128 Bytes > > Are you running into a size limitation again? If not, I think we want We are always on the border. Minor fluctuations are affecting us. And our EMU boards(secure devices) are permanently broken due to this. I am not sure if this one helps EMU devices though. > to wait until we sort out how SPL includes/excludes stuff moving > forward as this shows there's probably a lot of other unused code > being pulled in. > We use -ffunction-sections -fdata-sections and --gc-sections while building SPL. So, un-necessary stuff will not be included unless the function pointers are set in some structures and not used. I think that is what is happening in this case. Other than that I am not expecting much scope for improvement. One key experiment I want to do is Thumb mode build. I have some old patches that I may cleanup and post sometime soon. But Thumb mode had some tool-chain related issues last time I tried. br, Aneesh