From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7197016923412889600 X-Received: by 2002:a05:600c:3b98:b0:3e2:2099:8b7e with SMTP id n24-20020a05600c3b9800b003e220998b7emr1358472wms.2.1677248676297; Fri, 24 Feb 2023 06:24:36 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:1d09:b0:3e1:e754:51ac with SMTP id l9-20020a05600c1d0900b003e1e75451acls1473890wms.1.-pod-control-gmail; Fri, 24 Feb 2023 06:24:34 -0800 (PST) X-Google-Smtp-Source: AK7set9ys6HtaU2sl8vccnK0o0q+lV8xhqWGQ6fRi+pOqXfeZQjv56To0SDMmA4wge1hSs8TccAS X-Received: by 2002:a05:600c:1e20:b0:3ea:f6c4:5f25 with SMTP id ay32-20020a05600c1e2000b003eaf6c45f25mr2518278wmb.36.1677248674913; Fri, 24 Feb 2023 06:24:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677248674; cv=none; d=google.com; s=arc-20160816; b=QH4e9drAdESlszQtkl3DTKc1y0B1U2aFTYMtCVj4NKkFiZM8FcciAvvvS/rs68fIty rYCQJA/Dhy+4FlMCjznfP+BMmCTjHN3HCpXjHDbpcwdaLis11dsi+YnOqWWR+6slC9Yb nbVbEBBN708PUtNFg5vyx8va8ug8Pn+J77qRdYsl9nh87rVJTOKEBz3FmgSmm/L/sskb S5DlEjydv5a+Fku4lkeYAOcURAKaMUGdG1LdpasgDkRz5IaIY+JVvytwJxVVATkC2RUP pYPIuDwSJiG5VukaYhIu7cKI0ZQAO9VmZlRypsRsr4lez7cBWtNka2c9xcfzGIcyaXWy NrzA== 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=YwI19RncXg9xWkO8V+F5VWDLl4yTQYRFJawKvbdt+HU=; b=U6ngCSFAPv+n0306B3XVcdsQZTkK3b5gpQG+isbqIobk4BJrmP7a8ufQytVgknO/0N 1KLW5leST30Cb/gEXuy0r12f9TZnr6teO07gelhfG12lCwtQpA6z4sN1PgTxe4E3eIBp fANXtTRKikHM5i/9AlfIwRxMAj6B8U6J4jgnzl1IpF4mXRCULAdD4/86mL5UbFkMaKNJ 3/dLrTXnf4cTPBmndYjbonIhPXb9CFxQ6rphbdHR5nxzB2rxAmppx393Dk8hY0lVViiY 79wIJarX13M8PKOP24IUxmqqeGpYrGkVJir/6g8v7uSVs7sNqfUHwZ+Kwo612ofeaKLF /ZiA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b="N1KROF/Q"; spf=pass (google.com: domain of fm-526363-20230224142434e6d691484eda22a315-sbnw4b@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-526363-20230224142434e6d691484eda22a315-SBNw4b@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net. [185.136.64.227]) by gmr-mx.google.com with ESMTPS id cc13-20020a5d5c0d000000b002c6eaaaac82si524674wrb.7.2023.02.24.06.24.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Feb 2023 06:24:34 -0800 (PST) Received-SPF: pass (google.com: domain of fm-526363-20230224142434e6d691484eda22a315-sbnw4b@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) client-ip=185.136.64.227; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b="N1KROF/Q"; spf=pass (google.com: domain of fm-526363-20230224142434e6d691484eda22a315-sbnw4b@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-526363-20230224142434e6d691484eda22a315-SBNw4b@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 20230224142434e6d691484eda22a315 for ; Fri, 24 Feb 2023 15:24:34 +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=YwI19RncXg9xWkO8V+F5VWDLl4yTQYRFJawKvbdt+HU=; b=N1KROF/QvSkqMsNwQTrrpuNCoamkM7Z7rkYT/yn1BeuPy3AmcjNDkdV0HbfQpfchGbm6Fk 9IA5cJksuelEC8w33BJyVV3Vfj1COSgX8WWOxQ6veQAhDa3KWzFIzy1opR+PVXU6I+G3ERal KVHz+/MzYXeBkq+sMbzFGkU37w2sE=; From: Adriaan Schmidt To: isar-users@googlegroups.com Cc: Adriaan Schmidt Subject: [PATCH v3 4/4] doc: add compat/native targets to user manual Date: Fri, 24 Feb 2023 15:24:32 +0100 Message-Id: <20230224142432.3767746-5-adriaan.schmidt@siemens.com> In-Reply-To: <20230224142432.3767746-1-adriaan.schmidt@siemens.com> References: <20230224142432.3767746-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: DOm/z4hnuIWJ Signed-off-by: Adriaan Schmidt --- doc/user_manual.md | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) 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