From patchwork Mon Feb 6 12:20:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schmidt, Adriaan" X-Patchwork-Id: 63 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 06 Feb 2023 13:21:28 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-ej1-f56.google.com (mail-ej1-f56.google.com [209.85.218.56]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 316CLRGv005194 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 6 Feb 2023 13:21:27 +0100 Received: by mail-ej1-f56.google.com with SMTP id d14-20020a170906c20e00b00889f989d8desf8492186ejz.15; Mon, 06 Feb 2023 04:21:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1675686082; cv=pass; d=google.com; s=arc-20160816; b=AhvgiZLqmrljqiyYYhwPUBkiseL3c5l3HCrH7P6BI/zyqaqmZt8tNQ0kkrhBhuwBQP L3xy8vLjM7rbehsc/mWXbHA3K1Q+gkmmvImp5cAl7XXwV05F/IHRcK4B5Ocq91XcdvDu ZkHTx227G7JR46I7ePXgcxFHWPXKcpKP8RDqc4ZYFUpNNbk8m5pZuRyNRAJ6xDD3UMOP dPKTI6SjeEqqt5HjrpyjkmaY3/Ttwk8qMo+yfiOwbN38ASLiuNm5KAdn8FPm10I2+iC6 iBn/G5Ih0GUUXcKB1tsOwdO8BtUnAHjF4uuXgtKroRKi/bv+LbxLCaSOsCOCRD72Kp0j B+Mg== 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=QxFx/U4ap65AwaBDhq59a34G45uBs4nUacKkBCcO18M=; b=I3V+4slcBPnno81XayxIdniqk+8azX+wr2QlJO9dNsmKH58YOrkzbZld9kS1L9UZOT vl2NZJr1elU2VJ0SN/H798LkYbI4XQtrTzaCCdJzghas4XTg2d9Dd8KlC0PnXzyJUfoI NMTrMnM+R7LY1uZ5lCAoR0rNhsHjpPEefX0FTMheKugaoUIu/mvSNQz9wQCEMtMbooG1 MQLgL95vj1eJyNrOLY3Vb9svJXR/ec/gLJyg3k05pk4iptZKGZzC0NtCDqA2SsaNPOEo on0VQNTX8N4D4ktgJdRmu0KAGQDgQzqIIEFPZiLsIgju8zbViuL4WdwGS8fd02zyiTHq IeoQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=SnMkeVx8; spf=pass (google.com: domain of fm-526363-202302061221203032a9be36be38af4d-4_gcoa@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-526363-202302061221203032a9be36be38af4d-4_gCoA@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=QxFx/U4ap65AwaBDhq59a34G45uBs4nUacKkBCcO18M=; b=sdA3ErbZTWO+L96sE/Nb3NMzIJ0d5oJiYMCVeq1f/aBTgfk2Se6qqhHja36zZXO5pL 2mAxVNZSguTwP0CDcrjKl74USjGkIHISr9xGd9Q4DHaC1MTOYMHYGgOchdb4CMjg0Jsn pRJxekb1eilxMNU6O4QzLqIQYo4qWQOu/autUabHS1ElueYIRE4Pcty3bXdZ3Ppi4ven gRCaQcEVcTMxP4oQvSmKR8CptFMuDXJuZLMNSyimvihlBAnhNwklkvo5up0cM9NxeA0f Fgbobkpc9c7tyD/gOGHKt/PsRt2UuS7BkrMnxiuSYV/mLMX1CbSAcE83vP23ZRbREGbL Q3qw== 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=QxFx/U4ap65AwaBDhq59a34G45uBs4nUacKkBCcO18M=; b=f9r3ZTS+6VuGTAmRlXZobecqmUXgco68z09ItVpVLQYwkXaVG7ClZCP2jikB7han4d rmG/Eby7AXYy9QxoMCA131SkLuWOcJA6aMmIlYflmpdKRp55E1ZMG3/PQtfyYMO4R/vG 0rvVkHZcxpd1x0rCgnOHca+PLDDpEWROD7hNwQgUX4wJ82dTxpUD9Bu3Ezg50GN32T01 4O+vNGSOyn4IYojfHmA8/wroO5sZD9AAu2ufYLV0sMXrcDW4PjPNyvIUhqa9Vk+x2Sfs e3gf/udlGNlfc94oGOE3kSpPz4wiliFyYPDGF4xqwcJTC4dKmwZZADQkxTp9inxlkEhG QN6g== Sender: isar-users@googlegroups.com X-Gm-Message-State: AO0yUKVXJR4+Jkix2pkJka934NAtAKlWmxXrrJRGfnKN6TRQ7Uefs2Gi IpCucjXmK3ZFWZ5AizfSUNQ= X-Google-Smtp-Source: AK7set9EE8v2mEEi5Fxf6iAOWg81e2GyRfkTASJf5m9pG1f1RbtSV16/6EiXfS+xYSry7G2XV5hKww== X-Received: by 2002:a50:8ad7:0:b0:4aa:a9c7:4230 with SMTP id k23-20020a508ad7000000b004aaa9c74230mr1362091edk.14.1675686082352; Mon, 06 Feb 2023 04:21:22 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:907:9d17:b0:84d:1543:d10e with SMTP id kt23-20020a1709079d1700b0084d1543d10els7325438ejc.1.-pod-prod-gmail; Mon, 06 Feb 2023 04:21:21 -0800 (PST) X-Received: by 2002:a17:906:5ac7:b0:882:1b70:8962 with SMTP id x7-20020a1709065ac700b008821b708962mr17192106ejs.76.1675686081040; Mon, 06 Feb 2023 04:21:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675686081; cv=none; d=google.com; s=arc-20160816; b=UqPZDKXUabeAbFNPMcD5KSc7X/oLFw633/1z7nTRx+7DWtcjRc1ANDOzukm5lsc7gq qlB21blLUHo/dLJpaF+FQv/m3gY6ZnbmJN0EiFWxApn9ScW80egUZyQWC6Wm8lqarQ/Q aAlz0QGw3YUuryScFC5O0KPyqfiBaOOjBc5yfhypyQKU0wv3m388lWlk/b6qHlCJylq8 pjGeH5VvXmBQEMKecJukZ9dNs2TRgLvxq7IREItMActWbyGQglw5qJL4US/y56rty5M5 SjUwkbh3O3MpDq39UYPZ9A+3Ae5/yW9Fi06qqhs7OtQ+2HtThbPwty6BHAFI6UYAHS5+ V7Bg== 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=eQEysjuk+0B7Sqy2LBEmOs4eX04qS8tSmxaEQaJyT38=; b=ryxPBQIUAvYTyD/ZAymbX5YlB0jEz3Adb/NRJqwtS5qgLKg7W2AGFy1NA97ALFQhck nvSntrp0wO71ZaingPtPEVJmhc73BDAHWY+M/ggbs0Lh2OZSLwOfHyHMwUwq3hRxDJsY bL0cU5gtBn74K2iGy9dw2h3w90X01clyItoVQEbIC1czisZ4TLmYt1/N/igTvYI6alJm elVzyl/mDfr9zFNrtjQ+NicZ5JcRC2z8kdnOCw8hyJpn5rwaK0mWWkAbH/WhXG0bufzl EYx1Cnt9hWB39Ins+PqVKVxrZ+FT6p8jThyr+G7mxnhCB2D4fWQksWi76b3f4Ef52oXb sp4g== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=SnMkeVx8; spf=pass (google.com: domain of fm-526363-202302061221203032a9be36be38af4d-4_gcoa@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-526363-202302061221203032a9be36be38af4d-4_gCoA@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 qb27-20020a1709077e9b00b008778ede684dsi564026ejc.1.2023.02.06.04.21.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Feb 2023 04:21:21 -0800 (PST) Received-SPF: pass (google.com: domain of fm-526363-202302061221203032a9be36be38af4d-4_gcoa@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 202302061221203032a9be36be38af4d for ; Mon, 06 Feb 2023 13:21:20 +0100 From: Adriaan Schmidt To: isar-users@googlegroups.com Cc: jan.kiszka@siemens.com, Adriaan Schmidt Subject: [PATCH 0/3] multiarch support Date: Mon, 6 Feb 2023 13:20:47 +0100 Message-Id: <20230206122050.337270-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=SnMkeVx8; spf=pass (google.com: domain of fm-526363-202302061221203032a9be36be38af4d-4_gcoa@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-526363-202302061221203032a9be36be38af4d-4_gCoA@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.8 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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?= Hi, this is my first working draft of multiarch support, which extends all package recipes (inheriting dpkg-base) with *-compat and *-native variants. My current use case/test subject is meta-iot2050, which contains a patched openssl, needed in the SDK (as -native package), and on the target (as -compat). [1] has this patchseries (plus pre-bitbake2 backporting), if someone would like to test. In addition, the compat test from the testsuite works (building hello-isar-compat). Still missing: - not sure if -native also needs IMAGE_INSTALL logic to convert bitbake to debian names - documentation - test case for -native (maybe add libhello-native to the SDK?) - probably other things... Adriaan [1] https://github.com/adriaan42/meta-iot2050/tree/adriaan/multiarch Adriaan Schmidt (3): bitbake.conf: use PACKAGE_ARCH in overrides add multiarch support remove obsolete compat-arch override .../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 | 49 +++++++++++++++++++ meta/classes/debianize.bbclass | 2 +- meta/classes/dpkg-base.bbclass | 1 + meta/classes/image.bbclass | 4 +- meta/classes/multiarch.bbclass | 44 +++++++++++++++++ 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 + 13 files changed, 124 insertions(+), 18 deletions(-) create mode 100644 meta/classes/compat.bbclass create mode 100644 meta/classes/multiarch.bbclass create mode 100644 meta/classes/native.bbclass