From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7197016923412889600 X-Received: by 2002:a17:906:128e:b0:8f1:4c6a:e77 with SMTP id k14-20020a170906128e00b008f14c6a0e77mr571453ejb.12.1677838850369; Fri, 03 Mar 2023 02:20:50 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:906:784:b0:8b1:49bd:b751 with SMTP id l4-20020a170906078400b008b149bdb751ls1586427ejc.11.-pod-prod-gmail; Fri, 03 Mar 2023 02:20:48 -0800 (PST) X-Google-Smtp-Source: AK7set94FI9uTWUanRJfK6FnxN/x+npmLu94ipYoqYYndgbSTuxMKi7LNezzC2hCJdKlPU8V+KCZ X-Received: by 2002:a17:906:11c6:b0:8b1:3191:286f with SMTP id o6-20020a17090611c600b008b13191286fmr1126877eja.25.1677838848942; Fri, 03 Mar 2023 02:20:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677838848; cv=none; d=google.com; s=arc-20160816; b=B7vg6R67/8CacRwxQoXttYTwIV8pbocZ3iLvJ9kPITTpzkwl5BGnMBWO1QtZa/JTHb DcPxgRdYjp1tvazMexfuWzAbEngAvJqqEqDQ/vrQ6OEth9RBVdyBMgVMrwBL0G1NR70n 1Z92CkUd66bRgWOPoRsP/s5+EdT9Kv5ph00lAS+KRTp2nTopJherlqywIoE1Sh8Bkv+L CAh0gd1Q1EARQ/o7GCXr7HwMuNplINvhMzMn18d6J96O3uZSMpEDS7Oovtf8HKhl6Ayd dwLZ+/LXDex344bJk0GHy0BqUJMVdTzcKo2VLta96WNpEJpPgAWvyk4i0x//wN7SmR6R XLBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=Gppn0vhnxlE96SD0hWM2NEmiCXfDe9v47NqAHKHlobY=; b=zP/a9cq6Skf3qzj75dCaEjuxXbZroQd0WXCScBR/ZJ35uxg/tHCPSIRNx/daUIDvLX JK+nQ/dJQTS77yj2EcOp03kLRTGcRrWMVUvE27nHyQ+zy0jVYueXGHSLPHUam1R+3ocg tZJoygpJAjulYSWjriKpV90AiTyoK0GOm93jd1tUb9sLpivNzoFt8OLAoi5/0SXOW3XX 7f7nezveHJzIvO23KUZWiwoQvBRjscLSfkiAHgekexNuPZzhCWtHLIeFZTXwRZNKb63Y I5Dw0W+IHy1VVLTUCQg6h5Ba/uIjtz/DYTvXWQlvJnYZkTwFSKnGVmbCkPUPbfuYCzxF FdQw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b="mzLPll/n"; spf=pass (google.com: domain of fm-526363-20230303102048bc37d55b8ef8b3c311-7iqslm@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-526363-20230303102048bc37d55b8ef8b3c311-7IQSlm@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from mta-65-225.siemens.flowmailer.net (mta-65-225.siemens.flowmailer.net. [185.136.65.225]) by gmr-mx.google.com with ESMTPS id mm11-20020a170906cc4b00b008b14694acaesi77242ejb.2.2023.03.03.02.20.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Mar 2023 02:20:48 -0800 (PST) Received-SPF: pass (google.com: domain of fm-526363-20230303102048bc37d55b8ef8b3c311-7iqslm@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) client-ip=185.136.65.225; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b="mzLPll/n"; spf=pass (google.com: domain of fm-526363-20230303102048bc37d55b8ef8b3c311-7iqslm@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-526363-20230303102048bc37d55b8ef8b3c311-7IQSlm@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: by mta-65-225.siemens.flowmailer.net with ESMTPSA id 20230303102048bc37d55b8ef8b3c311 for ; Fri, 03 Mar 2023 11:20:48 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=adriaan.schmidt@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=Gppn0vhnxlE96SD0hWM2NEmiCXfDe9v47NqAHKHlobY=; b=mzLPll/n0q0ux/Qdm2tCB0hdbIaG1+NJrM/ltJfzz+UrFYoNG1AO2AdsMEkMjOx8KwRJHi rQrk/YrBZYoNTv+zQujPOV+7yxXBDJp8ygILhHlSYuTft83Ms20gnKIwgGRQpDxc1J1FGVN7 OYOqUUmOCx67pcTmg1IP18EWbuWOY=; From: Adriaan Schmidt To: isar-users@googlegroups.com Cc: Adriaan Schmidt Subject: [PATCH v4 4/4] doc: add compat/native targets to user manual Date: Fri, 3 Mar 2023 11:20:45 +0100 Message-Id: <20230303102045.4140027-5-adriaan.schmidt@siemens.com> In-Reply-To: <20230303102045.4140027-1-adriaan.schmidt@siemens.com> References: <20230303102045.4140027-1-adriaan.schmidt@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-526363:519-21489:flowmailer X-TUID: 4CHvzn9NaMnQ Signed-off-by: Adriaan Schmidt --- RECIPE-API-CHANGELOG.md | 8 ++++++++ doc/user_manual.md | 19 ++++++++++++------- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md index e48c98c7..b7fc710e 100644 --- a/RECIPE-API-CHANGELOG.md +++ b/RECIPE-API-CHANGELOG.md @@ -476,3 +476,11 @@ Bitbake 2.0 for better performance. It also requires isar-sstate script to be migrated to zstd. Mixing old Gzip-based and new ZStandatd-based sstate cache is not recommended and should be avoid for correct compatibility. + +### The `compat-arch` override was removed + +Recipes inheriting dpkg-base now automatically have a bitbake target +`-compat`, if `ISAR_ENABLE_COMPAT_ARCH == "1"`, and if a compat architecture +exists for the current `DISTRO_ARCH`. +In that case the compat package can be built by adding `-compat` +to `DEPENDS` or `IMAGE_INSTALL`. diff --git a/doc/user_manual.md b/doc/user_manual.md index b9a0bb64..3db5eb26 100644 --- a/doc/user_manual.md +++ b/doc/user_manual.md @@ -963,18 +963,24 @@ Debian cross-compilation works out of the box. Currently the following build con Experimental support for riscv64 is available as well. -### Cross-building for a compat architecture +### Building for a compat and/or native architecture Some architectures, under Isar amd64 and arm64 so far, support running 32-bit legacy applications on 64-bit kernels. Debian supports this via the multiarch concept. Isar can build 32-bit packages as part of a 64-bit image build and also enable -the image with the necessary packages. To activate the compat mode of a build, -set `ISAR_ENABLE_COMPAT_ARCH = "1"` in `local.conf`. Packages that shall be -built for the compat arch need to be tagged individually by setting -`PACKAGE_ARCH = "${COMPAT_DISTRO_ARCH}"` in the package recipe. Non-tagged -packages will continue to be built for the primary target architecture. +the image with the necessary packages. To activate compat support, +set `ISAR_ENABLE_COMPAT_ARCH = "1"` in `local.conf`. This will install neccessary +build dependencies in the buildchroot. + +For all dpkg package recipes, Isar automatically provides a `-compat` +target that builds the package for the `COMPAT_DISTRO_ARCH`. This can be +referenced using the `DEPENDS` and `IMAGE_INSTALL` variables. + +To explicitly build a package for the build host architecture (in cross build +scenarios, or when generating an SDK), Isar automatically provides a +`-native` target for all dpkg package recipes. ### Cross Support for Imagers @@ -987,7 +993,6 @@ In case your setup does not support cross-imaging, you can disable this just for the particular image by adding `ISAR_CROSS_COMPILE = "0"` to your image recipe. - ## Examining and debugging package generation inside their buildchroot Just like OpenEmbedded, Isar supports a devshell target for all dpkg package -- 2.30.2