fedora-copr / copr

RPM build system - upstream for https://copr.fedorainfracloud.org/
115 stars 61 forks source link

Faster armhfp builds (current emulation is slow) #2619

Open praiskup opened 1 year ago

praiskup commented 1 year ago

Original issue: https://bugzilla.redhat.com/show_bug.cgi?id=1879599 Opened: 2020-09-16 15:26:17 Opened by: Nicolas Chauvet (kwizart)


Nicolas Chauvet (kwizart) commented at 2020-09-16 15:26:17:

Description of problem: Using armhfp emulation on x86_64 host in slow on copr, but works for small tasks/packages well enough. With

Version-Release number of selected component (if applicable): current copr

How reproducible: always

Steps to Reproduce:

  1. enable a chroot as a base (x86_64)
  2. edit it , adding a target such as --target armv7hl
  3. the result of such repository will be merged with the content of the related armhfp repository (if enabled).

Actual results: With target enabled by "hand" (using the appropriate defines such as __target_cpu , _host and others) it was possible to cross compile a kernel https://copr.fedorainfracloud.org/coprs/kwizart/cross-armhfp/build/1325073/

Expected results: This feature is about to send the results to the basearch related to the target, so both native (userspace packages ) and cross-compiled (kernel) content are provided in the same repository.

Additional info: It should also be possible to use a dedicated --target on a given arch also. Setting the additional toolchain option would still need to be done using the defines (_host / _build / etc).


Nicolas Chauvet (kwizart) commented at 2020-09-16 15:28:58:

Description of problem: (missing text) Using armhfp emulation on x86_64 host in slow on copr, but works for small tasks/packages well enough. With a --target option, it should be possible to cross compile packages

This would be particularly relevant for the kernel or bootloaders that are easier to deal with as cross compilation in the fedora infra

praiskup commented 1 year ago

There are some boxes in fedora infra that @nirik mentioned some time ago; going with native builders would be better.