Re: [PATCH] polystrap-binfmt for preparing the build host

Johannes Schauer <[email protected]>
Newsgroups gmane.linux.debian.devel.embedded
Message-ID <20110629083720.GB27004@hoothoot>
Hi,

On Tue, Jun 28, 2011 at 11:42:49PM +0200, Hector Oron wrote:
> 2011/6/28 Yann Dirson <[email protected]>:
> > As can be seen in your script, the use of binfmt support is not
> > without problems.
> >
> > +        case $ARCH in
> > +                alpha|amd64|arm|armeb|i386|m68k|mips|mipsel\
> > +               |powerpc|ppc64|sh4|sh4eb|sparc|sparc64)
> > +                       BINFMT_ARCH=$ARCH ;;
> > +                armel)         BINFMT_ARCH=arm ;;
> > +                lpia)          BINFMT_ARCH=i386 ;; # not yet verified FIXME
> > +                *) echo "unknown architecture: $ARCH"; exit 1;;
> > +        esac
> >
> > The most prominent problem IMHO is that it requires a system-wide
> > setting, and that in turn ties a qemu arch name to a particular
> > distro/ABI version.
> May I suggest the use of `dpkg-architecture` environment variables?
dpkg-architecture will print the architecture of the host or check for
architecture equality. how would I abuse it to convert a debian
architecture $ARCH to a cpu architecture $BINFMT_ARCH that exists as a
"qemu-${BINFMT_ARCH}-static" binary?

sorry for my ignorance

cheers, josch


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/20110629083720.GB27004@hoothoot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.