Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow cross-build for selected packages #10

Closed
jan-kiszka opened this issue May 24, 2017 · 4 comments
Closed

Allow cross-build for selected packages #10

jan-kiszka opened this issue May 24, 2017 · 4 comments

Comments

@jan-kiszka
Copy link
Contributor

Specifically for large packages like the kernel during development cycle, it would be more efficient to allow building those packages from source via the Debian cross-toolchain. Should be selectable in the recipe, maybe also globally via local.conf.

What is required to allow this? Any concrete ideas? We may have someone here who could contribute to this.

@ismagulb
Copy link
Contributor

Hello Jan,

we have a working implementation for Isar's predecessor. We'll evaluate and let you know. When do you need it?

@jan-kiszka
Copy link
Contributor Author

Ideally short-term: We will build up a scenario for an ARM board over the next weeks, and accelerated building for kernel or u-boot would be a useful feature. Whatever you can share early would be welcome, but it won't be a blocker not having it.

@flenorm
Copy link
Contributor

flenorm commented May 30, 2017

Hello Jan,

A proof-of-concept of this feature was implemented and the commits pushed on the lenormf/uefi_wic_amd64-20170428 branch.

For the purpose of testing this branch, an archive of the debianized source code of u-boot v2016.11 was added alongside its corresponding recipe, which ISAR cross-compiles by default. To run a build, use the following commands:

$ source isar-init-build-env b-armhf
$ bitbake multiconfig:qemuarm:isar-image-base

The above generates an armhf image, and cross-compiles a RaspberryPi2 version of u-boot; you can also try cross-compiling an arbitrary package (e.g. hello) by making its recipe inherit from dpkg-cross instead of dpkg only.

@myo73
Copy link
Contributor

myo73 commented Mar 28, 2019

Cross-compilation support was added in Release v0.6

@myo73 myo73 closed this as completed Mar 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants