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

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

On Wed, Jun 29, 2011 at 10:07:17AM +0000, Hector Oron wrote:
> Just a proof of concept....
> 
> $ ./PoC.sh
> I: Set dpkg-architecture cross architecture: armel
> I: configure --build=x86_64-linux-gnu --host=arm-linux-gnueabi
> I: Debian armel maps to GNU arm architecture
> I: Unset dpkg-architecture cross architecture
> I: For further instructions: man dpkg-architecture
> 
> $ cat PoC.sh
> #! /bin/sh
> 
> ARCH=armel
> 
> echo "I: Set dpkg-architecture cross architecture: ${ARCH}"
> eval $(dpkg-architecture -a${ARCH} -s 2> /dev/null)
> 
> DEB_BUILD_GNU_TYPE=$(dpkg-architecture -qDEB_BUILD_GNU_TYPE)
> DEB_HOST_GNU_TYPE=$(dpkg-architecture -qDEB_HOST_GNU_TYPE)
> DEB_HOST_ARCH_CPU=$(dpkg-architecture -qDEB_HOST_ARCH_CPU)
> 
> echo "I: configure --build=${DEB_BUILD_GNU_TYPE} --host=${DEB_HOST_GNU_TYPE}"
> echo "I: Debian ${ARCH} maps to GNU ${DEB_HOST_ARCH_CPU} architecture"
> 
> echo "I: Unset dpkg-architecture cross architecture"
> eval $(dpkg-architecture -u 2> /dev/null)
> 
> echo "I: For further instructions: man dpkg-architecture"
> exit 0
ah I totally misread the meaning of the dpkg-architecture "-a" option.

indeed that works for some debian architectures but for example for
ARCH=powerpc, QEMUARCH should be ppc but dpkg-architectures only prints
powerpc for the DEB_HOST_ARCH_CPU.

cheers, josch
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.