From patchwork Mon Feb 20 09:05:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schmidt, Adriaan" X-Patchwork-Id: 71 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 20 Feb 2023 10:05:27 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f61.google.com (mail-lf1-f61.google.com [209.85.167.61]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 31K95QZH001957 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Feb 2023 10:05:27 +0100 Received: by mail-lf1-f61.google.com with SMTP id i9-20020a196d09000000b004d861df2daesf222019lfc.13; Mon, 20 Feb 2023 01:05:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1676883921; cv=pass; d=google.com; s=arc-20160816; b=qeNI2B7V5tlGmHNISQJaK9XMposnYE5GVBNEIf13Bn5UjTzNXKek891ao6qTU7MkrG vk5T0VjzMLrsu0aB5YW4VpPQuWT0t88WIAWTu+eetdZR7YRIGXTcoLq7N++EDXxivYQ5 iw4HjCtQv+n5phxugFmpf0001WSsJjw2swZhAH1omqul0vLhkJyJ2Amm/m+OaRxu2lGp ucNfP114gEAxtIKEJoeSyvMt7ZDmgPKZNkkkVn1xacAOIJey8VRzfWSMwlA+z+mVYdua IXSnUlnt+izHHT+OGP4H1eNzap6mgY8uNcwvZKfkyQ/EQp1wPk5EbpImhniYgKDsInws ZYCA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:feedback-id:mime-version:message-id :date:subject:cc:to:from:sender:dkim-signature; bh=GbjgkUlBbGFqgqswPOX5JDv+xSa4NdXFK1/+Rtl9k1E=; b=MUJylWLbB6tWbRQtCK3pRBBntyN63Z+v5AiJva3pY/Unq17IQKWcg1lkmMX4SiQRiT SEYz/+TEiSEOlEbbimMQWoIGpeV0cAFCoM346m0pggDQ2aqht5ukh2rxdkstCThgtuiE 0+pQzI69SWQUZuWbEEUxGVNUJjTP2MwMtSIk8idsnD7b2vIbASJ+QHEht78W02wEQiyK V4b7Z5v7CjVe/PIdGgLUkcVe1GzjYjihzj7oO1j3vQdv8QrRS1xDmn+YCFVOBe29VYP3 NQUXAnCG2QiyvAmcL67V6aOTxYdnbTI8vGNX9W04HrjUw84WTrWfc9xPP/IBwkE+XezR SoZw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b="BFF/fRNj"; spf=pass (google.com: domain of fm-526363-202302200905189acec2fb6261fcf12d-nygtpa@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-526363-202302200905189acec2fb6261fcf12d-nYgtpa@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:feedback-id:mime-version:message-id:date:subject :cc:to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=GbjgkUlBbGFqgqswPOX5JDv+xSa4NdXFK1/+Rtl9k1E=; b=dkrzrSZGHKJalGDZEq4HI4keD/ty+lhYuB4huGh7xjikSjzdzWt7BPRbPg1OuZBUjU onXK6ODqeQnl7Ia3KlL049UiXox901v2g5uqNZRBvI//4fWUKf67irqLblA8kMY4cTFv DlDIfVfmF/UBVM3hpJDXjafK4/ifjMAmuSKJfInTiFBj464VjEHxotH54sXTGKY2crEf Bc5Qk6Nxi2IALpakCoXAnfL7k713fK0oBN5q+buONPfcdNwGhTuYx/maUovdlGJrjNux ndZOPWx/lq9OFTW5Wwjrz1VH94yFwefwdL5NYQ+AbvMFpqB3tkDgMRIHOtCPz712CwRn e+Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:feedback-id :mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=GbjgkUlBbGFqgqswPOX5JDv+xSa4NdXFK1/+Rtl9k1E=; b=yZ+x163cY9ZWqKb8L+6L5+Yw/V0E9R5DictusnOfhHmqwyJVAhNH1fzjiCXhnzm4WC V1a8tl6sthTcPH0xEmkEVY4bDnHRRJZN/+mY0gmvDQ0SO3TOsLMjfXpadhq5bYw8Gn2v gHk2lr9eVTsxbHEeeI2g54L0F0ZwK4iBPmEP0qI2JPciTMLPX4hpSc0K1KMfmpUe1G+C 0F1pLl0vwTHLoKcuqLcwIkVGIStdSpjMVo5sJ7+qAwH1Kh2xxsDZkRgbxP9+8lc+kMlf eCV2teBs48fVa4K11S1HF9EKy6nWzHznJlJLh/2yI+Dz0xEgvHgMTk8LxWsiFXWaz8Rc DXyw== Sender: isar-users@googlegroups.com X-Gm-Message-State: AO0yUKXtiF+PUyFiQyFK5SKRKiOfo+SlI7SaSs74wkYRjxsYCPeRlGyu YUA40rEhMbFW0s8+rjHJGnk= X-Google-Smtp-Source: AK7set/Mp6yoX7D/X+GBpB3FE/9pnUKY1ZxaaCt5rWakRDLLUYchkxPIaY4kwSo35bdXDV61dYZiCA== X-Received: by 2002:a2e:8e30:0:b0:293:5000:cd9c with SMTP id r16-20020a2e8e30000000b002935000cd9cmr458145ljk.1.1676883920982; Mon, 20 Feb 2023 01:05:20 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:a552:0:b0:293:4d60:102b with SMTP id e18-20020a2ea552000000b002934d60102bls84965ljn.1.-pod-prod-gmail; Mon, 20 Feb 2023 01:05:19 -0800 (PST) X-Received: by 2002:a05:651c:2c7:b0:293:4e08:1aab with SMTP id f7-20020a05651c02c700b002934e081aabmr269191ljo.10.1676883919403; Mon, 20 Feb 2023 01:05:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676883919; cv=none; d=google.com; s=arc-20160816; b=aCqP424Tu8rXSG1rqicw7GpYSdAua4BM6F5ocjRChwpBF2u9kF0M9Us0YO4oORXkfX u+I75OwucabTpPW+srY1pMk4kO2gtoUhr33ObfIjpbJxFhlrVDckHvpumLUPxxYzef1T e2ehPf7nn076/snzSUuR9dtwbC5imyEFKPkR8Psvq7orzKF5qJfUp6niLvjllxPfhzN9 hFWt4HKxuUgI2i/OkEG0qej3TL05eWpQHsYH2Jj5LvA1UOsaMfvju3IX8PpICkUqrL7Z 1X0BsDCJyjnOmNM3bnVv4bcWZB7YJ4s729gPCs3jomLoHRcadNGSInixnEy4psGDnkb/ UZTQ== 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:message-id:date :subject:cc:to:from:dkim-signature; bh=unC3RpfDqey4SW27WyMzt/pF+5F9Sn4hcuVYxNMuXlg=; b=d3R/DqD36lpBzs0fIcf8I9z5V6RQ5oK/TzXl1jV+XpcZHS2ZsCH5e7hcWvCwjy7YAn fEIRjt7qis90e7rMyWKZ7mdMNG1Km1eiA1LUWy3yQlp7AT3+oWgD/66n32FjElFo4sPE gbJV4ac9Hqh4tMcj3JchluVaWq0ik2he/lPnWgBRTcqlOwdh/ZhuwtzqzbdDspSrMwc5 BUjxP5Pd9ikaQtA72l6JoZaS55IjwlRL/5AEuqnS/P/S215FP6w/pLozWtvnJMkoYQeA 3iku/MJ6un6wNp+vYSR+uQpea8E7lQTZxQd17kywZ6e+9OL/KEwY3t4prfn8Hm8x3LZN Yg/A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b="BFF/fRNj"; spf=pass (google.com: domain of fm-526363-202302200905189acec2fb6261fcf12d-nygtpa@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-526363-202302200905189acec2fb6261fcf12d-nYgtpa@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com 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 b17-20020a05651c033100b002934b954ec9si34732ljp.7.2023.02.20.01.05.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Feb 2023 01:05:19 -0800 (PST) Received-SPF: pass (google.com: domain of fm-526363-202302200905189acec2fb6261fcf12d-nygtpa@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) client-ip=185.136.64.227; Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 202302200905189acec2fb6261fcf12d for ; Mon, 20 Feb 2023 10:05:18 +0100 From: Adriaan Schmidt To: isar-users@googlegroups.com Cc: Adriaan Schmidt Subject: [PATCH v2 0/4] multiarch support Date: Mon, 20 Feb 2023 10:05:07 +0100 Message-Id: <20230220090511.2524881-1-adriaan.schmidt@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-526363:519-21489:flowmailer X-Original-Sender: adriaan.schmidt@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b="BFF/fRNj"; spf=pass (google.com: domain of fm-526363-202302200905189acec2fb6261fcf12d-nygtpa@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-526363-202302200905189acec2fb6261fcf12d-nYgtpa@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= This adds `-compat` and `-native` bitbake targets to all recipes inheriting dpkg-base. The new -compat build variant replaces the old compat mechanism. Note that `ISAR_ENABLE_COMPAT_ARCH="1"` is still required to ensure that the bootstrap and buildchroot is prepared correctly. Adriaan changes since v1: - fixed an issue that prevented arch overrides of ISAR_ENABLE_COMPAT_ARCH, which is used in testsuite - added `-native` expansion to contents of IMAGE_INSTALL - documentation in user_manual Adriaan Schmidt (4): bitbake.conf: use PACKAGE_ARCH in overrides add multiarch support remove obsolete compat-arch override doc: add compat/native targets to user manual doc/user_manual.md | 19 +++-- .../recipes-app/hello-isar/hello-isar.bb | 3 - meta-isar/recipes-app/libhello/libhello.bb | 3 - .../recipes-app/samefile/samefile_2.14.bb | 2 +- meta/classes/compat.bbclass | 46 ++++++++++++ meta/classes/debianize.bbclass | 2 +- meta/classes/dpkg-base.bbclass | 1 + meta/classes/image.bbclass | 4 +- meta/classes/multiarch.bbclass | 71 +++++++++++++++++++ meta/classes/native.bbclass | 10 +++ meta/conf/bitbake.conf | 6 +- .../isar-bootstrap/isar-bootstrap.inc | 2 + .../sbuild-chroot/sbuild-chroot.inc | 14 ++-- testsuite/cibuilder.py | 2 + 14 files changed, 160 insertions(+), 25 deletions(-) create mode 100644 meta/classes/compat.bbclass create mode 100644 meta/classes/multiarch.bbclass create mode 100644 meta/classes/native.bbclass