From patchwork Fri Mar 3 10:20:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schmidt, Adriaan" X-Patchwork-Id: 2710 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 03 Mar 2023 11:20:55 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f64.google.com (mail-wm1-f64.google.com [209.85.128.64]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 323AKtG4028305 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 3 Mar 2023 11:20:55 +0100 Received: by mail-wm1-f64.google.com with SMTP id j6-20020a05600c1c0600b003eaf882cb85sf786860wms.9; Fri, 03 Mar 2023 02:20:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1677838849; cv=pass; d=google.com; s=arc-20160816; b=B2A8QyqS6wI9OINnVzFX85iEJ4hKe+00BPDpJocYrImmuODWSZcMNBaWEpU2xvELJP Rv4IlBc6M30uiDyFMZKNju09JuX9jFb2QrXXZp37a/LzsyOdgJcwvaNlvHIx/UeoIamC 8CqpkxlSAx7BsChw4wj+xcODwfKE6wWDGocJDWEINVqs7CCA152//CrGTU6r92QACJYw 9OXv9Ut3cuOc4P9sIkSlj+Z3AqiEFdsshHrjHsVUUz0ibCOv2tRvx1msoy7X5iXs1yJQ ORD7Bk6uxbURF1tEZ+R9VQO88qF9LLTu+gqKFaiOimHJ92D6MLKyA1TQkO8fVRBqTa2A xgcg== 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:references :in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=0sd0TX1V03H24G3Z9U/obXJyuKt+dDstlugAfTo88Vs=; b=Xh9mixS3nJYFWMYTwKyOfyMq9AmStprynU9zDetjRnZQO2lHWsKLKX3YkCBI6WzLTD zu4wxgNNfNzhTQ//4BsXboHCIF9DNhVXuAJY1GO0DPZ19+a3OJxkcG4tlGnY5feQ0oAE zCrK6p37xqpZA0dkYv5Cqgy8qWOMuzhggG90wG4gqLXKmZld3tdY7OJK+wZrnb4zJBlI qb/qHmlkEU5c2StM32vpaYYDQKmWMdlBax97H94dhEsIAvfEmxD7J+ppwv30jgVOHn01 fJJkTBQ67IK27JaTJDRfutifAcCPGNLWm0Hhn6mu0zMmp2bSc78b2lX81B2tRhsOxMMx W55w== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=VLG5Xs8O; spf=pass (google.com: domain of fm-526363-202303031020474186f11981a560fafc-6mh35z@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-526363-202303031020474186f11981a560fafc-6Mh35Z@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; t=1677838849; 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:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=0sd0TX1V03H24G3Z9U/obXJyuKt+dDstlugAfTo88Vs=; b=ipyTAn9Tl+sCFcIeHCHjJ1hq3NaQdIrs1VsMB6wAW9bzSNKDp4dtmTBR/qUy/tfvkw vBltq6aG2kjgFXEBXB/pwwpoePpdYyCqagj2ChVyLafZiwYJ3x5e1AsI+AbEnaOclmKR uc/uPuKGtmkx0nudvGpkEkJ/Bv7rZoqrnuk6bpcrhcEDbI3jMU3TodZvjYyXP/ooSsmm WO7qgSOgGKSztLQspzVUfep5f8gTdv7KA9UZnYmcOLGsSgB6RIraMJ3Z6rnVG+0KN818 nSp1hztVBl3DnOQkjSc21q5hGZb+KCtXOcoaUCWjihiR42Z6Tj7DdIJOrSXQQH2T0+Z1 oKLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677838849; 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:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=0sd0TX1V03H24G3Z9U/obXJyuKt+dDstlugAfTo88Vs=; b=NXhzsLlK+jkCue7+nlEGXLrMEJTqKpqGykqIxs8UVw6gJzqFQcOyhX4op7YrqCtjA3 dCHQX1GahBS2OcnuFvlB226kSF9n4wo9HhXeWCAGAPr7YPJLGOp/gmmv5GpM2dsH5pwU u3J/IMf4nUZ/jODXvOsrycQ+K68O6rQj+iLaF3qohsi9NhLKghw4tram5T74cCh+oD+n hdJiZm1vVOgm7u22GdNjMk6IwfUPg90uJB8NBHXUIJNWN5p0zfQjWpCSRIAVgq1melZ0 E9cVoCxoWytxgqIINuUV+mL/AFUlxBsY9Ri2O6y6WCmBme+PwbbbqpQx0lD+R4iaJ5aQ Xt1Q== Sender: isar-users@googlegroups.com X-Gm-Message-State: AO0yUKWWBvFXcNxUfW4NkDB0aCHXFZd+RgHHEEMkexfRcyuXKC7MOgeQ MZTtpDVFSNJGuFs/4WPTsGg= X-Google-Smtp-Source: AK7set+JsVdQX5bkkTYvaAraAob9RhBNsYdJ7rnDphNqfORBNmEuhqBOakhXU41BZHGBz4//+ssHAw== X-Received: by 2002:adf:f80e:0:b0:2c3:f972:cef with SMTP id s14-20020adff80e000000b002c3f9720cefmr1169000wrp.0.1677838849330; Fri, 03 Mar 2023 02:20:49 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:64ca:0:b0:2c5:557d:88a3 with SMTP id f10-20020a5d64ca000000b002c5557d88a3ls3574222wri.3.-pod-prod-gmail; Fri, 03 Mar 2023 02:20:48 -0800 (PST) X-Received: by 2002:adf:e98c:0:b0:2cc:459b:8bc8 with SMTP id h12-20020adfe98c000000b002cc459b8bc8mr941531wrm.6.1677838848087; 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=nlUJfbklgVnEc0i8YRRI2mn7N/hF1n0+Ne3RXJ7gEp1pxZmxQ3yozC7yd9hIWRGig7 1TyNnHJEPJCToO30eICMmY8IGnGJ8L6BR79ebwkSIYqaiAUvzhpe53gIDu+j51TBOMJf Da22MtiwxfJE3NtczgtVtdDK//gZco0Q+0Typnk0pee1lHOgxNTwryZJV7J+x5hovYNP mPXPoYjfycxmkzkgbtKYfkdtiWRMh68rVEGkUAyWcLKkxDoHxJoAem8nie554ymIYnQa dA54ER+ZpRyPM9ogiX8L0utRnpv+q0ASY4u9HUjyaHhHvZjjYXIEQtl4ynTzD3IeH46D rU0Q== 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=7yJVSAsyhvIiKabZDkdkki1ZZCPNPVU0GjkwcPW3WCk=; b=h3pdIJmzemgnK70F6njdwT5h+TO1zRzh7cEF9pVU3MBbIAzASftOtlUzYlaV14R5jh Dt4redy73bVQlVj6+lMCIgi/5mW3DMbWPROJ8hNb7AEUbawMjHLQTgXa0lq6cJ7YH0qM qClphjgQXLQv9U6Eft4sDLXk24zBDvdcvFQfkO1ZEHwJYTjpnKUztPLbMnqcNOf3wqY2 RCJ5QTo/hJaBgi8Wm/5QDMVvzBYS59DUnuHDWVgNXjQG+vIoXKDD6nXUmCGF5pHuXKgd XnpnReFRrQ3bS8ljeGPIMGL2U6Zx4H5H9JWNCr6UKVLQuM2ZLHgu2uRvH1/qWj7xkmT0 i0Wg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=VLG5Xs8O; spf=pass (google.com: domain of fm-526363-202303031020474186f11981a560fafc-6mh35z@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-526363-202303031020474186f11981a560fafc-6Mh35Z@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 bn3-20020a056000060300b002c59bef13d2si71560wrb.8.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-202303031020474186f11981a560fafc-6mh35z@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 202303031020474186f11981a560fafc for ; Fri, 03 Mar 2023 11:20:47 +0100 From: Adriaan Schmidt To: isar-users@googlegroups.com Cc: Adriaan Schmidt Subject: [PATCH v4 1/4] bitbake.conf: use PACKAGE_ARCH in overrides Date: Fri, 3 Mar 2023 11:20:42 +0100 Message-Id: <20230303102045.4140027-2-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 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=VLG5Xs8O; spf=pass (google.com: domain of fm-526363-202303031020474186f11981a560fafc-6mh35z@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-526363-202303031020474186f11981a560fafc-6Mh35Z@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 replaces `DISTRO_ARCH` with `PACKAGE_ARCH` in the `OVERRIDES` list. Note that `PACKAGE_ARCH` defaults to `DISTRO_ARCH`, so this only has an effect when `PACKAGE_ARCH` is explicitly set in a recipe. Signed-off-by: Adriaan Schmidt --- meta/conf/bitbake.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index c9f52a86..05ccb7b8 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -67,8 +67,8 @@ KERNEL_FILE:mipsel ?= "vmlinux" KERNEL_FILE:riscv64 ?= "vmlinux" KERNEL_FILE:arm64 ?= "vmlinux" -OVERRIDES = "${DISTRO_ARCH}:${COMPAT_OVERRIDE}:${MACHINE}:${DISTRO}:${BASE_DISTRO_CODENAME}:forcevariable" -FILESOVERRIDES = "${DISTRO_ARCH}:${MACHINE}" +OVERRIDES = "${PACKAGE_ARCH}:${COMPAT_OVERRIDE}:${MACHINE}:${DISTRO}:${BASE_DISTRO_CODENAME}:forcevariable" +FILESOVERRIDES = "${PACKAGE_ARCH}:${MACHINE}" COMPAT_OVERRIDE = "${@'compat-arch' if d.getVar('ISAR_ENABLE_COMPAT_ARCH') == '1' else ''}" # Setting default QEMU_ARCH variables for different DISTRO_ARCH: From patchwork Fri Mar 3 10:20:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schmidt, Adriaan" X-Patchwork-Id: 2713 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 03 Mar 2023 11:20:57 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f62.google.com (mail-wm1-f62.google.com [209.85.128.62]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 323AKv17028312 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 3 Mar 2023 11:20:57 +0100 Received: by mail-wm1-f62.google.com with SMTP id u19-20020a05600c00d300b003eb24ce58cesf734135wmm.9; Fri, 03 Mar 2023 02:20:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1677838852; cv=pass; d=google.com; s=arc-20160816; b=RBqbEUpBjrRLb9nuemXcBA9USJjTYalJtxDW5DiyO0drrMK7HHUC1r6wjdQj1CjKHE Rz70wFsJeDmMug4CZKKT2mTR3/cI/+pmqwVof+WtU3XxsA+VPSKKtwvQEHRMUSA5I2mN 1chw1wpoDWx6T9ZvJJBPlIO2cI4sr91a6SaCP1/kbDC9y/4XE6Ypcfz/9g0c2ZBPech6 PY3EzGA7ANCONcIS4/oBCbZeFeWMoCmP6vV+hWmpzvG/Xv41t2kSDL9UHqdSRyTcmbds kb6tOy+QSimtumAncKKRH9BXhO0YUbuAYrHW2w6Hilfhaqaz18Bm0l2XAXQ+p2mJQieW /rTw== 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:references :in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=BKFrtsK4AjFthCc17/jyTcGN6cvYYXtEbxpB7cx6jeg=; b=xkmW9S7cNQX1gEsWYhKafJlbWWbvUYGsxwKCflRcK2YpAN7Lj8VFcIv51UtTBKxmPE YQ2A+DSyLg6FCf6SrYi0W88gtqolFw5fxL6VKn8eG3KOfd4DB5b4mrzVmlv+kfikKjbm HCxbWwxT7QgiLjxIgtw7GscJhz7IOTEIwOzDj9BQ4I9Y96u6emLiQRd1uEV12GRxYjTF JJ4aM/9imIeFJ3p69VwarXECG0iqq6wdmqNbulPqwnhcEIql9jst3RP4FuEo/6uP7G7E hRgaW0oI/yeKwIBipkJp6mpoRcSB6vbcH2Q5Hqa/LEe3PI0D5+SGnGhtWYyIY04toSy/ du7w== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b="WvZCN9d/"; spf=pass (google.com: domain of fm-526363-202303031020474ff111b8856d67bf42-uvd6ra@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) smtp.mailfrom=fm-526363-202303031020474ff111b8856d67bf42-UVD6Ra@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; t=1677838852; 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:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=BKFrtsK4AjFthCc17/jyTcGN6cvYYXtEbxpB7cx6jeg=; b=E0WU/AP1fSfSbric5MGaIuwNK8lWt1qehfISS4ye0lCykLewablKBe3mHLyHOPfV8x KZB7XKR2SDtsQ3eRzHERZFbbE4rf9FE7VXOpkaeFiB7IjNrhi33CCyoH43I7lBpXl28i 3orUeoM6CZKFx4RGffQAEcyaIKISeyhkNKwKiKNIg1zl1yT0DCwjy95WpaSv60zjtUQi UiGt+YuQfxNFZum5S8RxBl7czuzwIX0JXsXX1RYwAbGkpYJx1oc9m1BvzLX5fDMwGmhv iIbluclSu7byvaEAof4PjCtDWyISp6Is/d2EabB61DbWTaGGTnD0xtS2FxoiU9ciLkMq eFxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677838852; 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:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=BKFrtsK4AjFthCc17/jyTcGN6cvYYXtEbxpB7cx6jeg=; b=o2C8VNTJwet/xrhPQAs7nJOHAFSPrqBkt5qCZbpuFK5Vh43sZyA6wZCN4PwO9jsjDG /yqwieOyA9h78U5nzVNwkUE7u7FYQIx28Nim1chsnMfc249azJZ5HsuitSthA5w2O8Qy VEzWE8nWDYHBSjrh08Py4NilWCLKdCmEzU9isbpPe4fM0y9uNRJly3M13SbNmldIleYz Pe3v/Yk8Y5ytnvm9oqvPMUyK+zuySAexwbjzssFj9RFGcyGNqKiblG5JZs+9/UXWEdSZ s6yHrydbtV4iXQQ9XKaKASp/u19rXmGSdn5gf+tDDWJUaUpUbH0ilSTgj4DKhpWcbw2+ nAdA== Sender: isar-users@googlegroups.com X-Gm-Message-State: AO0yUKUSACrzF4ByuDDubNOzCNlIYUE5LQ7W45fTEuJQJZUS5MSxaevI k1dMTEi6AlIDqBAsnQpBsjw= X-Google-Smtp-Source: AK7set8WwVzjh2Y5PDMIY81xqP3rwYV7o6Smb/ozqdKRtSbyw7Ix8FQpR0AG07A929kCTrh5RmSl5Q== X-Received: by 2002:a05:600c:a695:b0:3e2:1a3f:4ea2 with SMTP id ip21-20020a05600ca69500b003e21a3f4ea2mr272405wmb.7.1677838851944; Fri, 03 Mar 2023 02:20:51 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6000:1842:b0:2c5:55ca:3a3b with SMTP id c2-20020a056000184200b002c555ca3a3bls3607622wri.1.-pod-prod-gmail; Fri, 03 Mar 2023 02:20:50 -0800 (PST) X-Received: by 2002:a5d:4001:0:b0:2cc:be:be0 with SMTP id n1-20020a5d4001000000b002cc00be0be0mr848713wrp.41.1677838850532; Fri, 03 Mar 2023 02:20:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677838850; cv=none; d=google.com; s=arc-20160816; b=MY+If5z+vvWH/AgCxCIpuCw1V1sn4YyKdxQsJV6tK2iLRV1ZnOyloMrTIfd3BzKYHc 8kXwfkFvrnVOme9z6UVSGHuezIPzk7zJmD63i9WNMFWv71vUhqnZ+SZ818brXFg7rhKF Ii3KwklMzHiUUvfH0Ls7HOOX6xW47Q8j/SIaiFQ+1xyAcd5mAkkrydITKoRDo18J45P7 Ky0+50Ftms6XYdaVURA9Hc+h5cPeZt3GKIDs2jHOADC7meUD0EJHzsHL/a9NWY1S32Bp N5LWp9bnteQtY8Dof7Dor4POKGg7tqbwg6YcgPdK8tOPI4yPA/paHkTdw0XNK2hzQFH2 FRxw== 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=af3spI14J16s5Kw4UXhT7+eK2OnfoHm7r7HjqaghG4w=; b=V8eENIxrLuFnQJOxpv5ar7Qo9KBcsLLPDQWvpzZhySiDlfc/ssTKTrciU0mI/xQ2Or ZdodpnESqwZXeLVv2eA7I51qZiUckJ/5OrZsDSEe7D41rHD60cTPVxKzTAJ6SdJCa7FW n1G0L72jmKyh93LhKKcKTInkaueH6XfadxzUwnEaUYZGaP1bI9vJfwMDQ6NVdw+Xacqo hRrK7vTe25Qf6oWzD0EXM5dHKhRy2qHdDb+E0UL55HiTC/Qiv7+tpBLbsxxWj6XV4oIQ aQeQvpoVIBAOF/IYxZUPIE0k3iOxgvbF1m6FTu3nBJAtNyME2zqj58eiJIAZ7Ov1rOMP qfXA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b="WvZCN9d/"; spf=pass (google.com: domain of fm-526363-202303031020474ff111b8856d67bf42-uvd6ra@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) smtp.mailfrom=fm-526363-202303031020474ff111b8856d67bf42-UVD6Ra@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mta-64-225.siemens.flowmailer.net (mta-64-225.siemens.flowmailer.net. [185.136.64.225]) by gmr-mx.google.com with ESMTPS id ba19-20020a0560001c1300b002c6eaaaac82si71944wrb.7.2023.03.03.02.20.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Mar 2023 02:20:50 -0800 (PST) Received-SPF: pass (google.com: domain of fm-526363-202303031020474ff111b8856d67bf42-uvd6ra@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) client-ip=185.136.64.225; Received: by mta-64-225.siemens.flowmailer.net with ESMTPSA id 202303031020474ff111b8856d67bf42 for ; Fri, 03 Mar 2023 11:20:48 +0100 From: Adriaan Schmidt To: isar-users@googlegroups.com Cc: Adriaan Schmidt Subject: [PATCH v4 2/4] add multiarch support Date: Fri, 3 Mar 2023 11:20:43 +0100 Message-Id: <20230303102045.4140027-3-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 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="WvZCN9d/"; spf=pass (google.com: domain of fm-526363-202303031020474ff111b8856d67bf42-uvd6ra@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) smtp.mailfrom=fm-526363-202303031020474ff111b8856d67bf42-UVD6Ra@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 support for building packages for native and compat architectures to dpdk-base.bbclass. Thus, all package recipes automatically have a *-native and *-compat target, which can be used in DEPENDS/RDEPENDS definitions. Additionally those targets can be used in IMAGE_INSTALL, where they are automatically converted to install the correct debian package: foo-compat -> foo:${COMPAT_DISTRO_ARCH} foo-native -> foo:${HOST_ARCH} Note that the switch ISAR_ENABLE_COMPAT_ARCH still exist and controls addition of the compat architecture during bootstrapping. Signed-off-by: Adriaan Schmidt --- .../recipes-app/samefile/samefile_2.14.bb | 2 +- meta/classes/compat.bbclass | 40 +++++++++ meta/classes/debianize.bbclass | 2 +- meta/classes/dpkg-base.bbclass | 1 + meta/classes/image.bbclass | 4 +- meta/classes/multiarch.bbclass | 88 +++++++++++++++++++ meta/classes/native.bbclass | 10 +++ meta/classes/sdk.bbclass | 2 +- meta/conf/bitbake.conf | 1 + .../isar-bootstrap/isar-bootstrap.inc | 2 + .../sbuild-chroot/sbuild-chroot.inc | 14 +-- 11 files changed, 156 insertions(+), 10 deletions(-) create mode 100644 meta/classes/compat.bbclass create mode 100644 meta/classes/multiarch.bbclass create mode 100644 meta/classes/native.bbclass diff --git a/meta-isar/recipes-app/samefile/samefile_2.14.bb b/meta-isar/recipes-app/samefile/samefile_2.14.bb index 5e36a2ac..c53c9445 100644 --- a/meta-isar/recipes-app/samefile/samefile_2.14.bb +++ b/meta-isar/recipes-app/samefile/samefile_2.14.bb @@ -21,7 +21,7 @@ do_prepare_build() { # deb_debianize. Pre-exisiting files will not be recreated, changelog # will be prepended unless its latest entry is for CHANGELOG_V. cat << EOF > ${WORKDIR}/changelog -${PN} (0.1) unstable; urgency=low +${BPN} (0.1) unstable; urgency=low * a long long time ago there was an early version diff --git a/meta/classes/compat.bbclass b/meta/classes/compat.bbclass new file mode 100644 index 00000000..f0a23b6b --- /dev/null +++ b/meta/classes/compat.bbclass @@ -0,0 +1,40 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 Siemens AG +# +# SPDX-License-Identifier: MIT + +# this class is "dual-use": it can be inherited (e.g., by bootstrap and image +# classes) to access variables and functions, and it's also added via BBCLASSEXTEND +# when inheriting multiconfig.bbclass. + +################################################################################ +# generic functions +################################################################################ + +# determine COMPAT_DISTRO_ARCH and ISAR_ENABLE_COMPAT_ARCH +# this must always use the DISTRO_ARCH override (not PACKAGE_ARCH), so needs +# to happen in a modified environment +python() { + distro_arch = d.getVar('DISTRO_ARCH') + package_arch = d.getVar('PACKAGE_ARCH') + overrides = d.getVar('OVERRIDES').split(':') + + localdata = bb.data.createCopy(d) + new_overrides = [distro_arch] + [o for o in overrides if not o == package_arch] + localdata.setVar('OVERRIDES', ':'.join(new_overrides)) + isar_enable_compat_arch = localdata.getVar('ISAR_ENABLE_COMPAT_ARCH') + compat_distro_arch = localdata.getVar('COMPAT_DISTRO_ARCH') + + d.setVar('COMPAT_DISTRO_ARCH', compat_distro_arch) + d.setVar('ISAR_ENABLE_COMPAT_ARCH', isar_enable_compat_arch) +} + +def isar_can_build_compat(d): + return (d.getVar('COMPAT_DISTRO_ARCH') is not None and + d.getVar('ISAR_ENABLE_COMPAT_ARCH') == '1') + +################################################################################ +# package recipe modifications when building *-compat: +################################################################################ + +PACKAGE_ARCH:class-compat = "${COMPAT_DISTRO_ARCH}" diff --git a/meta/classes/debianize.bbclass b/meta/classes/debianize.bbclass index a6694a00..1b98c02d 100644 --- a/meta/classes/debianize.bbclass +++ b/meta/classes/debianize.bbclass @@ -31,7 +31,7 @@ deb_add_changelog() { date=$(LANG=C date -R -d @${timestamp}) cat < ${S}/debian/changelog -${PN} (${changelog_v}) UNRELEASED; urgency=low +${BPN} (${changelog_v}) UNRELEASED; urgency=low * generated by Isar diff --git a/meta/classes/dpkg-base.bbclass b/meta/classes/dpkg-base.bbclass index ad28f7b3..55cc6655 100644 --- a/meta/classes/dpkg-base.bbclass +++ b/meta/classes/dpkg-base.bbclass @@ -5,6 +5,7 @@ # SPDX-License-Identifier: MIT inherit sbuild +inherit multiarch inherit debianize inherit terminal inherit repository diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index ef7d5a2a..ce7c549c 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -79,9 +79,11 @@ image_do_mounts() { buildchroot_do_mounts } +inherit multiarch + ROOTFSDIR = "${IMAGE_ROOTFS}" ROOTFS_FEATURES += "clean-package-cache clean-pycache generate-manifest export-dpkg-status clean-log-files clean-debconf-cache" -ROOTFS_PACKAGES += "${IMAGE_PREINSTALL} ${IMAGE_INSTALL}" +ROOTFS_PACKAGES += "${IMAGE_PREINSTALL} ${@isar_multiarch_packages('IMAGE_INSTALL', d)}" ROOTFS_MANIFEST_DEPLOY_DIR ?= "${DEPLOY_DIR_IMAGE}" ROOTFS_DPKGSTATUS_DEPLOY_DIR ?= "${DEPLOY_DIR_IMAGE}" ROOTFS_PACKAGE_SUFFIX ?= "${PN}-${DISTRO}-${MACHINE}" diff --git a/meta/classes/multiarch.bbclass b/meta/classes/multiarch.bbclass new file mode 100644 index 00000000..c1846ab0 --- /dev/null +++ b/meta/classes/multiarch.bbclass @@ -0,0 +1,88 @@ +# This software is a part of ISAR. +# Copyright (C) 2021-2022 Siemens AG +# +# SPDX-License-Identifier: MIT + +BPN = "${PN}" + +inherit compat +python() { + # provide compat only when we can build it + if isar_can_build_compat(d): + d.appendVar('BBCLASSEXTEND', ' compat') + + # build native separately only when it differs from the target variant + if d.getVar('HOST_ARCH') == d.getVar('DISTRO_ARCH'): + pn = d.getVar('PN') + if not pn.endswith('-native') and not pn.endswith('-compat'): + provides = (d.getVar('PROVIDES') or '').split() + for p in provides: + d.appendVar('PROVIDES', f' {p}-native') + d.appendVar('PROVIDES', f' {pn}-native') + else: + d.appendVar('BBCLASSEXTEND', ' native') +} + +python multiarch_virtclass_handler() { + # In compat/native builds, ${PN} includes the -compat/-native suffix, + # so recipe-writers need to be careful when using it. Most of the time, + # they probably want to use ${BPN}, and in general, it's their responsibility + # to do so. If they don't, then it's ok for the build of the compat/native + # variant to fail. However, some variables are evaluated at parse time, + # and this will break the recipe even when compat/native is not requested. + # e.g., SRC_URI="file://${PN}" will try to checksum the local file at + # parse time, and parsing always happens for all build variants. So in those + # few variables, we automatically replace ${PN} with ${BPN}. + def fixup_pn_in_vars(d): + vars = 'SRC_URI FILESPATH'.split() + for var in vars: + v = d.getVar(var, expand=False) + if v is not None: + d.setVar(var, v.replace('${PN}', '${BPN}')) + + # When building compat/native, the corresponding suffix needs to be + # propagated to all bitbake dependency definitions. + def fixup_depends(suffix, d): + vars = 'PROVIDES RPROVIDES DEPENDS RDEPENDS'.split() + for var in vars: + multiarch_var = [] + val = d.getVar(var) + if val is None: + continue + for v in val.split(): + if v.endswith('-compat') or v.endswith('-native'): + multiarch_var.append(v) + else: + multiarch_var.append(v + suffix) + d.setVar(var, ' '.join(multiarch_var)) + + pn = e.data.getVar('PN') + if pn.endswith('-compat'): + e.data.setVar('BPN', pn[:-len('-compat')]) + e.data.appendVar('OVERRIDES', ':class-compat') + fixup_pn_in_vars(e.data) + fixup_depends('-compat', e.data) + elif pn.endswith('-native'): + e.data.setVar('BPN', pn[:-len('-native')]) + e.data.appendVar('OVERRIDES', ':class-native') + fixup_pn_in_vars(e.data) + fixup_depends('-native', e.data) +} +addhandler multiarch_virtclass_handler +multiarch_virtclass_handler[eventmask] = "bb.event.RecipePreFinalise" + +# function to convert bitbake targets to installable debian packages, +# e.g., "hello-compat" to "hello:i386". +def isar_multiarch_packages(var, d): + bb_targets = (d.getVar(var) or '').split() + packages = [] + compat_distro_arch = d.getVar('COMPAT_DISTRO_ARCH') + host_arch = d.getVar('HOST_ARCH') + for t in bb_targets: + if t.endswith('-compat') and compat_distro_arch is not None: + packages.append(t[:-len('-compat')] + ':' + compat_distro_arch) + elif t.endswith('-native'): + packages.append(t[:-len('-native')] + ':' + host_arch) + else: + packages.append(t) + return ' '.join(packages) diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass new file mode 100644 index 00000000..d2581ac1 --- /dev/null +++ b/meta/classes/native.bbclass @@ -0,0 +1,10 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 Siemens AG +# +# SPDX-License-Identifier: MIT + +################################################################################ +# package recipe modifications when building *-native: +################################################################################ + +PACKAGE_ARCH:class-native = "${HOST_ARCH}" diff --git a/meta/classes/sdk.bbclass b/meta/classes/sdk.bbclass index 01eb3a67..da8f6c89 100644 --- a/meta/classes/sdk.bbclass +++ b/meta/classes/sdk.bbclass @@ -58,7 +58,7 @@ python __anonymous() { # rootfs/image overrides for the SDK ROOTFS_ARCH:class-sdk = "${HOST_ARCH}" ROOTFS_DISTRO:class-sdk = "${HOST_DISTRO}" -ROOTFS_PACKAGES:class-sdk = "sdk-files ${TOOLCHAIN} ${SDK_PREINSTALL} ${SDK_INSTALL}" +ROOTFS_PACKAGES:class-sdk = "sdk-files ${TOOLCHAIN} ${SDK_PREINSTALL} ${@isar_multiarch_packages('SDK_INSTALL', d)}" ROOTFS_FEATURES:append:class-sdk = " clean-package-cache generate-manifest export-dpkg-status" ROOTFS_MANIFEST_DEPLOY_DIR:class-sdk = "${DEPLOY_DIR_SDKCHROOT}" ROOTFS_DPKGSTATUS_DEPLOY_DIR:class-sdk = "${DEPLOY_DIR_SDKCHROOT}" diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 05ccb7b8..dd21319a 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -81,6 +81,7 @@ QEMU_ARCH:riscv64 = "riscv64" # Codename of the repository created by the caching class DEBDISTRONAME ?= "isar" +NATIVELSBSTRING ?= "isarnative" # Strings used in sstate signature files TARGET_VENDOR = "" diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc index 99d75e21..21a2d92f 100644 --- a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc @@ -274,6 +274,8 @@ do_bootstrap[dirs] = "${DEPLOY_DIR_BOOTSTRAP}" do_bootstrap[depends] = "base-apt:do_cache isar-apt:do_cache_config" do_bootstrap[network] = "${TASK_USE_NETWORK_AND_SUDO}" +inherit compat + do_bootstrap() { if [ "${ISAR_ENABLE_COMPAT_ARCH}" = "1" ]; then if [ -z "${COMPAT_DISTRO_ARCH}" ]; then diff --git a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc index fb061dac..fd8bb648 100644 --- a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc +++ b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc @@ -9,6 +9,7 @@ LIC_FILES_CHKSUM = "file://${LAYERDIR_core}/licenses/COPYING.GPLv2;md5=751419260 PV = "1.0" inherit rootfs +inherit compat python() { distro_gcc = d.getVar('DISTRO_GCC') @@ -20,18 +21,19 @@ python() { d.appendVar('SBUILD_CHROOT_PREINSTALL_COMMON', ' libstdc++-{}-dev:{}'.format(distro_gcc, distro_arch)) - if d.getVar('ISAR_ENABLE_COMPAT_ARCH') == '1': - compat_arch = d.getVar('COMPAT_DISTRO_ARCH') + if d.getVar('ISAR_ENABLE_COMPAT_ARCH') == '1': + compat_arch = d.getVar('COMPAT_DISTRO_ARCH') + d.appendVar('SBUILD_CHROOT_COMPAT_PREINSTALL', + ' libc6-dev:{}'.format(compat_arch)) + d.appendVar('SBUILD_CHROOT_COMPAT_PREINSTALL', + ' crossbuild-essential-{}'.format(compat_arch)) + if d.getVar('DISTRO_GCC'): d.appendVar('SBUILD_CHROOT_COMPAT_PREINSTALL', ' libgcc-{}-dev:{}'.format(distro_gcc, compat_arch)) d.appendVar('SBUILD_CHROOT_COMPAT_PREINSTALL', ' libstdc++-{}-dev:{}'.format(distro_gcc, compat_arch)) } -SBUILD_CHROOT_COMPAT_PREINSTALL:compat-arch = " \ - libc6-dev:${COMPAT_DISTRO_ARCH} \ - crossbuild-essential-${COMPAT_DISTRO_ARCH}" - SBUILD_CHROOT_PREINSTALL_COMMON = " \ ${SBUILD_CHROOT_COMPAT_PREINSTALL} \ libc6-dev:${DISTRO_ARCH} \ From patchwork Fri Mar 3 10:20:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schmidt, Adriaan" X-Patchwork-Id: 2711 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 03 Mar 2023 11:20:55 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f60.google.com (mail-wm1-f60.google.com [209.85.128.60]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 323AKtvd028306 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 3 Mar 2023 11:20:55 +0100 Received: by mail-wm1-f60.google.com with SMTP id r7-20020a05600c35c700b003eb3f2c4fb4sf793397wmq.6; Fri, 03 Mar 2023 02:20:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1677838849; cv=pass; d=google.com; s=arc-20160816; b=nmV3W2GHXzx96Y76+Hi6c8UJEuu4qm2VBlMItw+k8mthHfij3ZGRpksNVn/K33kn/g 65A8JRhNaDvY6lFDn/DHX9zzKFCO0WXyIhlkBe7Hg7AGTSrZ9sIlvRaqbVJqv36jdGmn 8Yc2QQdYTZf7W69LyQDPKQ4Q+hQS4ZZmqAdhzGey1M29/wZIF6k6Z011fIPbpDGEwAoi 1ZrUZMi4yTSErkbSMdxioCOvgGu4NRD7M44vi4VIV7SMKcJ4jJs98Ku5lb0EOGAV8JTv d96tnmxolLiJUzbTnFbBkaXcOKHWZcIGby0f12Cnf2KLnEuFsSIVzqxwjGfdlJKHa6Vd If/A== 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:references :in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=BouaszmueVdY6I7LkPmWgNS0RNM2nyxPw1Wzy8lZ2QA=; b=hIOSG5DSDLssuelcepiBO90vapayFcgDxmRzmF86bWAjd+xqIMWcr1WPZ3ctjYRAhF GNA0JwBF2AEhOTBP4nV+nZbSbrDDf/fn9hqAZ9jMuR3Gt7/s8wV95ySouo1qFCmP44f1 tuDO+7z18QYAVjOVrDcX4Yi+XYmwq8q7hrGz1Q9XJTJ+PJxmy9cIOYyBqTR50Af7k+Hg AUWA/4pqBLR0HzQC6RjXlzJv+Y9Cnt64NKu389CznffH15rEm/ZGKM+gBT8BAPuDCmXW yY/v8GwO7lVklN9cS3bc2yD1ytsouxbbbjc6riISFaD+qC4Ub0L5kboJsoxe59GLi4vV H/GQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=PowWZv8U; spf=pass (google.com: domain of fm-526363-202303031020482f4e88450e27f58469-jus69_@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-526363-202303031020482f4e88450e27f58469-juS69_@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; t=1677838849; 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:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=BouaszmueVdY6I7LkPmWgNS0RNM2nyxPw1Wzy8lZ2QA=; b=I+oF4wsbJoNuPRLDtl34Nrm9Lpy413C9zTW6BUKxHYhb6F/uig9wdUJP3EryziM0kn pCpSZCdvsS0+xuGcToxuDWrngP8meTkikWbDhPrhMA8PRosGRagx7Ashg8j97XkqXMLe WXOeJuspEZ9BLH0oITqZa+D7xiU/q+ZmLA1piO7rG/LMhY0T4dou+tNBQ7JHgBI5K/PC YHcQaQfSdW95t/zIDLp2EKjcl4proSRwEActeh9userFXtMmNmrTQh+oXVDJbv0TWUFT KuX/yiKTtuEQUtPlBSUjfNW7sYhPXzPrFyl5t9iHqPuwgpYGA2TGQpMKjznstUAWLCkp ywtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677838849; 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:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=BouaszmueVdY6I7LkPmWgNS0RNM2nyxPw1Wzy8lZ2QA=; b=AcGEaYfIHaEVdzCyJdJD2ZqMAcCEjAcColmj+TQA4HwonsNZcPQ5mXrj9u0CdhN6h7 3gv9Snn2hXahEvgDd2D0NCRRStlFvMijmbtveZFQimENNHCsrnuERZgDeEykNZbEHLQz nwnAMjV8Ckiprg4PDOmYi8nyCpHKeA/zi33d++eL0rM52kdh2jw2ysVgdp3CP42vFIyK /zBl9RGcKr3mSdVBISgBNReEkF0Fr0LYxhGKBL0v5gb/U6DgbsKIbmsKtTzj9L6gj21F EUrMXPsds72J8+zuDzXui7qb6+q2B0ZI7RjaCrJ1zdukXKI7pz8g7IlO8jzXUHJkudsQ iDNw== Sender: isar-users@googlegroups.com X-Gm-Message-State: AO0yUKVlKrvRsK7lSZvcPpneBf/xxPCg5JAprWvqylJ91AlQErtR2cV9 VuGFmRNa69refd6Dm29geMs= X-Google-Smtp-Source: AK7set8erZL331khOnoK+dD9pc4ao8uOFTNHkf9pREQg7HzosVwLf0JOL+tQPD6pF+XB1+n3VwFH/w== X-Received: by 2002:adf:e6d1:0:b0:2c7:91c7:8020 with SMTP id y17-20020adfe6d1000000b002c791c78020mr326953wrm.5.1677838849574; Fri, 03 Mar 2023 02:20:49 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:64ca:0:b0:2c5:557d:88a3 with SMTP id f10-20020a5d64ca000000b002c5557d88a3ls3574233wri.3.-pod-prod-gmail; Fri, 03 Mar 2023 02:20:48 -0800 (PST) X-Received: by 2002:a5d:46c8:0:b0:2c7:df1:a09d with SMTP id g8-20020a5d46c8000000b002c70df1a09dmr877303wrs.4.1677838848268; 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=xezebJJ7trPeDXJQ6XfC+W47UEwuVCPFormIfbKrVXS2Mc6yvLWqbuP2wQCY7Ec4wq YZ6wPjJdoOMdEitbEUyjj7xTGg3mco45Kv2H+zOZetS4gzCiQgQoMdK7/eJif2Y4pv+o tmseF7iFRUx5LRuTOXLk/o1Zhk55N3UTYCAJUqWATHFMfA5j1nsjMGgGt+5gz4Bgcgv9 aUG4Ik58Y/Ekvy9m7G5r4o1DClJDn96abwwopNoFN/Vn0ZULw04T1C8i121bnzCB+bPM HTfrGvi5f7QuU8YPx0r4c43ytdign9xf4Vx7KM05IEnwSj+ymEZgkh7hiBZkbR3t7PX3 Z1eQ== 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=vKkoPpa+B2w0W2ZW56K4PkShC1/AQscOxWjigjSSCMk=; b=AOWT+djEpYFCcKUDbbOPs50gtzxAPgIyvUGv4lb1Fn6K/nD+xxnOCUHNjgRD9cPWUY SvjsqlU0+Xa3lgCMaFOgs46GgLGKtxVQSrC84CTmX7IRyYCLLd09pEyO3OVGjYO2EmWV vnvQ51FLeFQQa5L/SqD85l7+uOtSetsbztqoVhcpMQfhc2AnF99n0xOw0Kc78Vm4z+ug H6vjt6/tND5ODL9CX6Vkj+2OTWaEWIhbKhYxlgpRBc/wlq+X47flPLfXGX7T+KW1ISGk 71ad0aRIQom4IHZtGdvzyD9na1TTRDkHTcwxcNWo42SePRqW1duJsrkX9/RzS/iwg4g/ +hsQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=PowWZv8U; spf=pass (google.com: domain of fm-526363-202303031020482f4e88450e27f58469-jus69_@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-526363-202303031020482f4e88450e27f58469-juS69_@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 bn3-20020a056000060300b002c59bef13d2si71560wrb.8.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-202303031020482f4e88450e27f58469-jus69_@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 202303031020482f4e88450e27f58469 for ; Fri, 03 Mar 2023 11:20:48 +0100 From: Adriaan Schmidt To: isar-users@googlegroups.com Cc: Adriaan Schmidt Subject: [PATCH v4 3/4] remove obsolete compat-arch override Date: Fri, 3 Mar 2023 11:20:44 +0100 Message-Id: <20230303102045.4140027-4-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 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=PowWZv8U; spf=pass (google.com: domain of fm-526363-202303031020482f4e88450e27f58469-jus69_@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-526363-202303031020482f4e88450e27f58469-juS69_@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?= The compat-arch override is no longer needed, as PACKAGE_ARCH is controlled by DEPENDing on -compat. Also change the compat test: adding the compat package now happens via IMAGE_INSTALL in the config. Signed-off-by: Adriaan Schmidt --- meta-isar/recipes-app/hello-isar/hello-isar.bb | 3 --- meta-isar/recipes-app/libhello/libhello.bb | 3 --- meta/conf/bitbake.conf | 3 +-- testsuite/cibuilder.py | 4 ++++ 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/meta-isar/recipes-app/hello-isar/hello-isar.bb b/meta-isar/recipes-app/hello-isar/hello-isar.bb index 39ddecb9..7d9f8322 100644 --- a/meta-isar/recipes-app/hello-isar/hello-isar.bb +++ b/meta-isar/recipes-app/hello-isar/hello-isar.bb @@ -20,7 +20,4 @@ SRC_URI = " \ file://yet-another-change.txt;apply=yes;striplevel=0" SRCREV = "a18c14cc11ce6b003f3469e89223cffb4016861d" -# NOTE: This is just to test 32-bit building on 64-bit archs. -PACKAGE_ARCH:compat-arch = "${COMPAT_DISTRO_ARCH}" - inherit dpkg diff --git a/meta-isar/recipes-app/libhello/libhello.bb b/meta-isar/recipes-app/libhello/libhello.bb index 3770fdb4..8b10842f 100644 --- a/meta-isar/recipes-app/libhello/libhello.bb +++ b/meta-isar/recipes-app/libhello/libhello.bb @@ -13,7 +13,4 @@ PV = "0.1-98f2e41" SRC_URI = "git://github.com/ilbers/libhello.git;protocol=https;branch=master;destsuffix=${P}" SRCREV = "98f2e41e7d05ab8d19b0c5d160b104b725c8fd93" -# NOTE: This is just to test 32-bit building on 64-bit archs. -PACKAGE_ARCH:compat-arch = "${COMPAT_DISTRO_ARCH}" - inherit dpkg diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index dd21319a..0c79a5b6 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -67,9 +67,8 @@ KERNEL_FILE:mipsel ?= "vmlinux" KERNEL_FILE:riscv64 ?= "vmlinux" KERNEL_FILE:arm64 ?= "vmlinux" -OVERRIDES = "${PACKAGE_ARCH}:${COMPAT_OVERRIDE}:${MACHINE}:${DISTRO}:${BASE_DISTRO_CODENAME}:forcevariable" +OVERRIDES = "${PACKAGE_ARCH}:${MACHINE}:${DISTRO}:${BASE_DISTRO_CODENAME}:forcevariable" FILESOVERRIDES = "${PACKAGE_ARCH}:${MACHINE}" -COMPAT_OVERRIDE = "${@'compat-arch' if d.getVar('ISAR_ENABLE_COMPAT_ARCH') == '1' else ''}" # Setting default QEMU_ARCH variables for different DISTRO_ARCH: QEMU_ARCH:amd64 = "x86_64" diff --git a/testsuite/cibuilder.py b/testsuite/cibuilder.py index 5eebd5aa..34438f7f 100755 --- a/testsuite/cibuilder.py +++ b/testsuite/cibuilder.py @@ -97,7 +97,11 @@ class CIBuilder(Test): with open(self.build_dir + '/conf/ci_build.conf', 'w') as f: if compat_arch: f.write('ISAR_ENABLE_COMPAT_ARCH:amd64 = "1"\n') + f.write('IMAGE_INSTALL:remove:amd64 = "hello-isar"\n') + f.write('IMAGE_INSTALL:append:amd64 = " hello-isar-compat"\n') f.write('ISAR_ENABLE_COMPAT_ARCH:arm64 = "1"\n') + f.write('IMAGE_INSTALL:remove:arm64 = "hello-isar"\n') + f.write('IMAGE_INSTALL:append:arm64 = " hello-isar-compat"\n') f.write('IMAGE_INSTALL += "kselftest"\n') if cross: f.write('ISAR_CROSS_COMPILE = "1"\n') From patchwork Fri Mar 3 10:20:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schmidt, Adriaan" X-Patchwork-Id: 2712 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 03 Mar 2023 11:20:56 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-ed1-f64.google.com (mail-ed1-f64.google.com [209.85.208.64]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 323AKtMA028307 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 3 Mar 2023 11:20:55 +0100 Received: by mail-ed1-f64.google.com with SMTP id m8-20020a056402430800b004cdaaa4f428sf457362edc.20; Fri, 03 Mar 2023 02:20:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1677838850; cv=pass; d=google.com; s=arc-20160816; b=jVMjYJqbN2gfboimvolQFLL8yydw8jAsUN+m8DpIeDK+eo4KJBS5yaleqcrPsQFboQ NZQ8ZsE4c870JuAqzwoDCSxgQHFQoK/TINsjIK0npzasBwS4Rb/hkXVzhplbbD52Slh7 5a0QJWPHOLiTIzPyASuX2GhRMUn6meuI54hXurxxiFsyQjzlZDNqBl27uAjt1yr8FHCT QtEPIJlzFyIR+fQuXfyNlJdQbCLYnKQSyLoCgEiebMuSb63gcIPuAkgWIJ91LBghWupQ sDGVarOJ3A75IzimUbzaphDv2r2BgqFuz99uZZyMXktGmKcA6jGDsY6YmsuimtLWAOmz a41g== 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:references :in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=04qgN9vEPpd1fXTiMp5XW9OTOydLi++lzdvOfb5WB4E=; b=ELYyiar7NPSabSgDt/sAKNna18tDrRNKauQnjuE/aOjRzWOZPN5DnpltQGdlFlsocb ypGA78Pf+uPRVGIChTb7uNJCsqEJB2pD9U3LZpPNc52123WvMXCmgCPbSMeYOsVOVRe6 T8gnEFe13S+UYmInxaW7imkMnc5gKq5qwnTlTDtgGcIti+ZboZx1R11ezfHRA2CcCVTT Ko/Sp105W9RSZEI7ub0aq/o03zisOBRRmT9PqwmTsfLVjGyK8kD8nb/5paRicnAtWCCu /kgi0dUzbh0kZS83KQglsGYSE9ordz3p11YJVrxYh3qLJmm6wZKqil/GB8NuJY5Zsf8j Wetg== ARC-Authentication-Results: i=2; 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1677838850; 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:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=04qgN9vEPpd1fXTiMp5XW9OTOydLi++lzdvOfb5WB4E=; b=rDrK+GLgRcL6GsaZj7Szw58qLib7DVQ5ZMn70wMmpjwDAlTmahFZryDiTTSuSIV+Hm jHT+PpanzaTBpQOpSb4pWBdkVM+jrJ1nEVDgLallZ6/xTpCXORg/fU5PH/yV6f5Tp9OW ezYMFSwapYy0NhflN2vQ1yAYLhfncum4yLGJdC55vkT9cxsqHWIB8eolMuOeaH8zCrlj hpilMaNKXY5jGmRD46FfHsM/h7wXdYt1djQnsmcmFf6HHg38JcKnO0K50gjhoPpGowXa 0f2mFPpsIgIcdXE0YLDp4/0aOg18UZ6AqbVeeIjEiczM8/x8klE4qXlhQs6bCkwcGMDL rJqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677838850; 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:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=04qgN9vEPpd1fXTiMp5XW9OTOydLi++lzdvOfb5WB4E=; b=d9jEpKSyk3kgyV6zGKqrDHBKiCKnOoeNq5y6ci/uAPxswTJW2Wb2sGp7uWbtaljWkz JJFdMLd01rQY6ZHl/wTS5mVTJKXhQeuWMhUDtG1sQlV8+VPL/SBdwbwq4HXOv5vfICU7 Kz5QKXy1zSUAUscxmIBFX+de9vajaxOdj/z5Oy183XPcqxr0QOVHNa66Z/Q1IYiXPdrv CjO/9otHL/iCJb8v+GXflNUo3FH1eV5hJSLKuf+6nQPEqCX7KZDiOtYi4qrvVtrtw0Wg SbvLe67TnEYmgEubojKcuviLKbwRODLGIPG/hUmYZkbJ/S7Rv4P+w36f0ibvp1thSBUC YuuA== Sender: isar-users@googlegroups.com X-Gm-Message-State: AO0yUKUERmROXAqtRUg1BolNfUjrbDVnV01mifjDUX2E3av1k9CnTVsO ZsRyo+9QXxtSmq55tELtFPM= X-Google-Smtp-Source: AK7set/zbWX1fDBlc5UmP+kgDwDAnlm3EFJhCFu6gjXaBMzPFdkeFgiR3AX/5DvaJ/7Ms3oWwjueQA== X-Received: by 2002:a17:906:399a:b0:87f:e5af:416e with SMTP id h26-20020a170906399a00b0087fe5af416emr569949eje.7.1677838850275; 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-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 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; Received: by mta-65-225.siemens.flowmailer.net with ESMTPSA id 20230303102048bc37d55b8ef8b3c311 for ; Fri, 03 Mar 2023 11:20:48 +0100 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 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="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 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?= 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