From: Tom Rini Date: Mon, 22 May 2017 10:07:37 -0400 Subject: [U-Boot] [PATCH 2/2] cmd: fsfitxtract: Extract a part of a FIT multi-image stored on a filesystem In-Reply-To: <20170520065020.28287-2-lexszero@gmail.com> References: <20170520065020.28287-1-lexszero@gmail.com> <20170520065020.28287-2-lexszero@gmail.com> Message-ID: <20170522140737.GK23727@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 Sat, May 20, 2017 at 09:50:20AM +0300, Alexey Ignatov wrote: > Sometimes we interested only in one single small subimage from big multipart > FIT. This command tries to avoid reading out the whole FIT because of memory > or time considerations. > Since we don't have mmap() in U-Boot, this is done by reading the file in > small chunks and trying to parse FIT until requested image is found or > total read size limit exceeded. > > Signed-off-by: Alexey Ignatov > --- > cmd/Kconfig | 7 ++ > cmd/ximg.c | 226 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 233 insertions(+) We need to add an entry for cmd/Makefile as CMD_XIMG and CMD_FSFITXIMG do not depend on eachother. I also think you need to guard the CMD_XIMG specific code in cmd/ximg.c when adding this for when the old command is disabled and the new one is enabled, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: