Hi,

On Tue, Sep 05, 2017 at 09:13:23AM +0200, Marc Kleine-Budde wrote:
> On 09/05/2017 08:20 AM, Michael Olbrich wrote:
> > On Mon, Sep 04, 2017 at 06:00:18AM +0000, Denis OSTERLAND wrote:
> >> as far as I know, this will require a change in Barebox 
> >> scripts/imx/imx-image.c,
> >> because in this version it expects input file as command line option
> >> and does not understand piped input anymore.
> >>
> >> This is how I deal with this issue, but it wont work with both versions.
> > 
> > Marc, you added the initial support. Can you comment on this?
> 
> Maybe you can parse the output of "cst --version"? No, it's the same for
> both versions :( But you can parse the output of "cst", the new version
> does have the "-i" parameter.
> 
> Another option would be to let imx-image first try the "-i" approach, if
> this doesn't work then try the stdin. I think this would be the best.

This would break all old barebox versions without this fix. Maybe we could
add a wrapper script to ptxdist that adds '-i /dev/stdin' if no '-i'
argument is given?

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
[email protected]

Reply via email to