Bob Peters wrote:
> My workstation is 64 Bits and my target is 32 bits both x86 when I tried
> this command to build the kernel, when I was chrooted in the Menlow image:
>
> dpkg-buildpackage -b
>
> I got an error, something about the 32 and 64 bits incompatibility. Now my
> question is how can I compile the kernel on my workstation for the 32 bits
> target.
Whlie you can cross compile, it typically requires significant
changes to the package, and can be confusing. Personally, I find it
far more convenient to take advantage of the ability of the amd64
architecture to run i386 code. Because of this, it is possible to
configure an i386 chroot on an amd64 host, and use this to build
packages. While this can be done by configuring a chroot and building
the packages therein with dpkg-buildpackage -b, there are also tools
that have been designed to handle the chroot definition, installation
of required build dependencies, building of the package, and reporting
on this process. One such tool is pbuilder, for which there is a
lengthy HOWTO page (1), which includes specific instructions for
creating i386 build chroots for an amd64 host.
Note that when you are using a build tool such as pbuilder, you
will need to separately create the source package. This may be done
with `dpkg-buildpackage -S` (or debuild -S if you use debuild). The
source package is then separately passed to the build system for the
build. In addition to the ability to build for different related
architectures, this mechanism allows verification that the
Build-Dependencies of the package are correct, and that they are built
against the intended targets, rather than what may be installed on the
developer workstation. If you are building many packages that
build-depend upon each other, you may want to have a separate local
repository in which these are stored: just be sure to enable that
repository in your pbuilder chroot.
1: https://wiki.ubuntu.com/PbuilderHowto
--
Emmet HIKORY
--
Ubuntu-mobile mailing list
[email protected]
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile