Cross compilation
John Paul Adrian Glaubitz
glaubitz at physik.fu-berlin.de
Tue Jul 11 10:02:58 UTC 2017
On 07/11/2017 11:53 AM, Andrew Haley wrote:
>> Just make sure you have at least Debian Jessie for openjdk-8.
>
> I've always assumed that you must have a target system to test on,
> so all you have to do is install everything on the target and then
> copy an image of its root filesystem. I've even taken a drive
> out of a target system and plugged it into my host.
You can use QEMU for that. I use qemu-user in Debian to create a
complete build environment for emulator-based cross-building [1].
You basically create a chroot for the target, copy the qemu-user
binary for the target architecture into it and then just configure
sbuild to use it.
Note: If you create the chroot for armhf, you must not use the
debian-ports mirror but the regular mirror:
> debootstrap --variant=buildd --foreign --arch=armhf unstable sid-armhf-sbuild http://ftp.debian.org/debian/
And you don't need to overwrite the etc/apt/sources.list in the
case of armhf.
Let me know if you need anymore help.
Adrian
> [1] https://wiki.debian.org/SH4/sbuildQEMU
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz at debian.org
`. `' Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
More information about the build-dev
mailing list