From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Sat, 27 Sep 2014 14:54:34 +0200 Subject: [U-Boot] [PATCH] tools: mkimage can read input on /dev/stdin In-Reply-To: References: Message-ID: <20140927125434.B9C8F382279@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: > > I would like to give /dev/stdin to the flag -d of mkimage. The only What would be the benefit of doing so? Do you have an example for a practical use case where this makes sense? > This patch replaces the use of mmap(2) with read(2). If accepted, I > could give a look to accept /dev/stdout as output file (which is > currently also required to be a file). What is the size and performance impact of the suggested change for typical use cases? 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 Q: Why do PCs have a reset button on the front? A: Because they are expected to run Microsoft operating systems.