public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] install crossbuild-essential into base schroot
@ 2022-08-03 16:44 Felix Moessbauer
  2022-08-04  6:07 ` Jan Kiszka
  2022-08-04  7:35 ` Anton Mikanovich
  0 siblings, 2 replies; 9+ messages in thread
From: Felix Moessbauer @ 2022-08-03 16:44 UTC (permalink / raw)
  To: isar-users; +Cc: jan.kiszka, Felix Moessbauer

This patch always installs the crossbuild-essential-<distro>
package into the lower dir of the host sbuild schroot.

This avoids having to install this package in the upper-dir
when cross-compiling, and is identical to build-essential when natively
compiling.
By that, the parallel cross-build of packages is significantly faster.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb
index aa82846b..f7c7d11b 100644
--- a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb
+++ b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb
@@ -9,5 +9,10 @@ SBUILD_VARIANT = "host"
 
 require sbuild-chroot.inc
 
+# always add the crossbuild-essentials package which is
+# a noop for the host distro, but significantly reduces
+# the download + install time when cross-compiling
+SBUILD_CHROOT_PREINSTALL_COMMON += "crossbuild-essential-${DISTRO_ARCH}"
+
 ROOTFS_ARCH = "${HOST_ARCH}"
 ROOTFS_DISTRO = "${HOST_DISTRO}"
-- 
2.30.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-08-10 14:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-03 16:44 [PATCH] install crossbuild-essential into base schroot Felix Moessbauer
2022-08-04  6:07 ` Jan Kiszka
2022-08-04  6:22   ` Uladzimir Bely
2022-08-04  7:17     ` Moessbauer, Felix
2022-08-04  7:40     ` Jan Kiszka
2022-08-04  7:35 ` Anton Mikanovich
2022-08-04  7:56   ` Moessbauer, Felix
2022-08-04  8:09     ` Uladzimir Bely
2022-08-10 14:45     ` Anton Mikanovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox