From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Sat, 27 Sep 2014 15:25:25 +0200 Subject: [U-Boot] [PATCH] tools: mkimage can read input on /dev/stdin In-Reply-To: References: <20140927125434.B9C8F382279@gemini.denx.de> Message-ID: <20140927132525.7EB02382279@gemini.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 Dear Julien, In message you wrote: > On Sat, Sep 27, 2014 at 2:54 PM, Wolfgang Denk wrote: > > What would be the benefit of doing so? Do you have an example for a > > practical use case where this makes sense? > > In my case, I have a TFTP server that dyncamically generates uboot > bootfiles when a specific file is requested. The input template file > being generated, I need to create a temporary file to store it before > calling mkimage. Except the mmap, there's no technical restriction for > mkimage to be able to read on a pipe. Sorry, but I don't understand this. Where are the image(s) coming from, then? Who or what is feeding the pipe? > > What is the size and performance impact of the suggested change for > > typical use cases? > > None. The behaviour is exactly the same. I don't believe you. Sizes rare certainly not identical, and neither is the performance. Did you do any real measurements? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de All women should know how to take care of children. Most of them will have a husband some day. - Franklin P. Jones