From: Tom Rini Date: Mon, 31 Mar 2014 14:30:14 -0400 Subject: [U-Boot] [PATCH 0/6] Adjust command macros to allow smaller U-Boot size In-Reply-To: <1395676271-9040-1-git-send-email-sjg@chromium.org> References: <1395676271-9040-1-git-send-email-sjg@chromium.org> Message-ID: <20140331183014.GX16360@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Mar 24, 2014 at 09:51:05AM -0600, Simon Glass wrote: > A large chunk of U-Boot's executable size is the code to process and > execute commands. This is reasonable, since commands and scripts are > an important part of U-Boot's feature set and provide much of its > flexibility. > > However, for some applications only a very limited set of commands is > required. Where image size is important, it is desirable to be able to > easily remove unwanted code. > > This series introduces a new board_run_command() function which can > be used to run a small subset of commands as required by the board > (typically load and bootm), thus allowing the rest of the commands > to be automatically and reliably dropped from the image using toolchain > dead code elimination. This is an interesting concept certainly. Can you also provide a non-trivial example here? -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: