----- Original Message -----
> From: "Peter Maydell" <peter.mayd...@linaro.org>
> Sent: Tuesday, November 7, 2017 9:24:35 AM

> On 7 November 2017 at 15:20, Aaron Sierra <asie...@xes-inc.com> wrote:
>> I had that thought, too, as being the cleanest and simplest to implement,
>> but it didn't work out as a practical solution. Having execution depend
>> on the name of the file would require a lot of tuning of magics, masks,
>> and interpreters in /proc/sys/fs/binfmt_misc to get the behavior that I
>> depend on. It would require one entry per binary.
>>
>> With the implementation that I've proposed, I only need two fairly generic
>> entries (ppc and ppc64) stock from Ubuntu's qemu-user-static package.
>> With Docker it's trivial to bind <any_path>/qemu-ppc.e500mc to
>> /usr/bin/qemu-ppc-static within the container. Which gives me complete
>> control over how the container is emulated.
> 
> If you don't need the binfmt-invokes-the-right-QEMU magic to work
> out of the box, why can't you just use a wrapper script here?

Because there is no mechanism to evaluate a script within the fully PowerPC
container without emulation being available right from the very first
instruction.

I _do_ depend on the right QEMU binary being correctly mapped before
launching the container.

-Aaron S.

> thanks
> -- PMM

Reply via email to