Override dh_gencontrol architecture
Steve Langasek
steve.langasek at linaro.org
Wed Sep 29 16:59:07 UTC 2010
On Wed, Sep 29, 2010 at 10:33:59AM -0600, Tim Gardner wrote:
> I'm working on building in ARM cross compile support to the Ubuntu
> kernel packaging. I am encountering the following error:
> fakeroot debian/rules binary-omap arch=armel
> .....
> dh_gencontrol -plinux-image-2.6.35-22-omap
> dpkg-gencontrol: error: current host architecture 'amd64' does not
> appear in package's architecture list (armel)
> dh_gencontrol: dpkg-gencontrol -plinux-image-2.6.35-22-omap
> -ldebian/changelog -Tdebian/linux-image-2.6.35-22-omap.substvars
> -Pdebian/linux-image-2.6.35-22-omap returned exit code 255
> make: *** [binary-omap] Error 9
> I have not successfully found a way to override the architecture. Anyone
> have any ideas? I've tried the various forms of
> dh_gencontrol -p$(pkgimg) -a$(arch)
> dh_gencontrol -p$(pkgimg) -- -a$(arch)
> export DH_OPTIONS="-a$(arch)" && dh_gencontrol -p$(pkgimg)
Cross-building of Debian packages is meant to be handled by using the
'dpkg-buildpackage -a${target_arch}' interface. This sets the environment
variables shown in the output of 'dpkg-architecture -a${target_arch}'.
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
slangasek at ubuntu.com vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20100929/53964ee1/attachment.sig>
More information about the kernel-team
mailing list