From patchwork Mon Oct 28 11:13:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 3892 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 28 Oct 2024 12:13:58 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-pf1-f186.google.com (mail-pf1-f186.google.com [209.85.210.186]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 49SBDacm005827 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 28 Oct 2024 12:13:37 +0100 Received: by mail-pf1-f186.google.com with SMTP id d2e1a72fcca58-71e6a7f3b67sf4642159b3a.3 for ; Mon, 28 Oct 2024 04:13:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1730114011; cv=pass; d=google.com; s=arc-20240605; b=ZmdEEDni/jDfGYYZRkxOusRXMbMgyWQfPvU8LgTg8OgSgXLoI6b8/e+yn6DLc4kmep L+QRNR2vPZq0hhmAnrb1RHayDb3Eyu9UknXCpd2SLL6iVytB1nRgOd0oX/0A8PWc1Dbx MfHTn1mZ/DsnVx+LgmhNMeqLcNqSKeL11HViRgorImRI3wDTJqDAztrD2FRrcSAFG5Tm UUqmVFouoz3A860IYmsGNkFi6Qo7RlY3eHnMoEWNpauu+pTRqjDOcxJZwhHrK66Kbzok 6Bol3vj3oMMt+tiNUz3tIr4sON5E2De87TjrcXBMnIgGdEKneoWkz25ITRBOqqStbi+q 7ygg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0RdEIcvui1agcKiWl81/rEv9MRbX5BY1ygQaYRvo/9Y=; fh=KUe6FcXcNS2i8coucal7J8qUiz3Bg9bxs6rh1hHmZM8=; b=if+C52dzb6iTSp9etN2Y7XHHMjjgEY4Y9n1Y/XOAU5DF20VcFTNh3lwqGu84o0syId Qwj4OtKW29Oe5cc6v0p7nbT9AkiMspUuM03DVxnPH57IThCLlmrDdjnTeQFGAWJsLnoY Jia0wzrJ6jU+K4xWPXOo405svGeaEo9ZjAxFDcoEdsdfIrAFshqDWmV4KP+VbOfrsYSA Wr2aYFqq2ZmC0J+FdMKTakYBoSrzrmAstfjY4tQsol2eY7v9frarTcAwjXLxTSVNxqtC wukJIZuaF0EsLhKN5xqCedhAPzHdsaiAv3jnx+58/OAa9z3ygEeT/FRF0hCaRkzpQOe0 u47A==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=Yr3OqIHD; spf=pass (google.com: domain of fm-294854-202410281113267dddaf30d8ccaa90e3-1iicvq@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) smtp.mailfrom=fm-294854-202410281113267dddaf30d8ccaa90e3-1IIcVQ@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1730114011; x=1730718811; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=0RdEIcvui1agcKiWl81/rEv9MRbX5BY1ygQaYRvo/9Y=; b=T34KEAIntpgmyfAm6gYPBXEa0cSjQADJW0DPtbfLvLNTWUtJD0zJTPHrkK8TAovzvh Bv49OA301v1a5ed8AabB87gKCCnHyarDPWqZ0aXEPmb7HXJm5fgXUmcMPx0qMr4dvbma emQdFWcnkaJ078ohXRNfNGrYJjvfcp984yHhO6ajmKHaXsuoAxholEsBAz8LEs04ksK7 gCbk05lXgx8Q6CONy+tb9prA78dmi3+f0uUykO9KHFqVGGX1wIpX/GyaSWxfCiRcj++I J2W9HoJgQrPBDv1ydsuVJ1umzE8W0f5uAwAIxOlIID7HFnNMi/Nbc/AySV+PUeD7aHTU Muwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730114011; x=1730718811; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-beenthere:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0RdEIcvui1agcKiWl81/rEv9MRbX5BY1ygQaYRvo/9Y=; b=B6wZDAvZ9Z5VfrlSzE0DqCw0ugYoWS0nZ1a5cB/Ukegs0fGkSeLxxp03u5IdS3V67i K9Bo+l1/YSgeFAGU1NZKUztlKmqRvDyn9gjOITscV7P/fPQ75NIXCrkPjXvm/BhTW7hX jEJsfEQj/Qi+MuGZWDasV2EaauJtjWzf/hw8hpuLe1Vm813iGVT5RTixsa3txx650z4F Oqn5/pJBL+KhDtCBG3D/NghR6TNQCpbpjcajXDEikKts9A5RhRPOQlJMUuiMaz89qfhl AHasML02ZhTzUD8s4L3exZAM7LC86KUWcoh4RVr0NcuKgde/2OP1YRGQ0TQ8KDxR8XoB YR9A== X-Forwarded-Encrypted: i=2; AJvYcCXRtAMkIYhPWMcgarHrgJ8wZo/SUxpgjefuCV33aYQH4WIGB720WvKoo6g5tcrZ5DxcP+Gc7c4=@isar-build.org X-Gm-Message-State: AOJu0Yx0y2oG/CmB5qtdfqXjlLZj1qIxSquJ8rH+WiT0z1swMju6YCeL bd0qwT6IYhgERwWgKAlxCs7U+7tIKWRITBTFAyFIRZvkMRkyROWe X-Google-Smtp-Source: AGHT+IFxL8Q8ldxRMWRAldCUZrruXJM2IokgKp41a5zlYIaQu1uydY2nSPUVhoxfExj3e0W9YCSkbQ== X-Received: by 2002:a05:6a21:4d8b:b0:1d9:b78:2dd3 with SMTP id adf61e73a8af0-1d9a840aaf4mr11095450637.26.1730114010618; Mon, 28 Oct 2024 04:13:30 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:90a:fb8c:b0:2e1:ce6d:34d5 with SMTP id 98e67ed59e1d1-2e77a93030fls1103236a91.1.-pod-prod-07-us; Mon, 28 Oct 2024 04:13:29 -0700 (PDT) X-Received: by 2002:a17:90a:cb0f:b0:2e2:e82d:48cf with SMTP id 98e67ed59e1d1-2e8f106c5b9mr9176236a91.16.1730114009167; Mon, 28 Oct 2024 04:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1730114009; cv=none; d=google.com; s=arc-20240605; b=aq0NpaOPc+E8Fp/GSyCye+6sePb7VEvQXwgqs9SSkX+xsELOax4T9Pfi2tES0qlVXy tWXIJr73ApTEXGXR0eNEqcCGLTHy4OGSlyAUrp088wisCw15VXTG7yw8BobiZmuIJBiW 0xA8q4mdhieV0u9xelbvoKVUxtrzhTu9zHAW8o/IaeL0FlyynKdJbp9NtjHwrBIvcaxP ekFE83OybJS+vbyTzCAE7UHhtj+oWEnnn1CY3hYaWjzkSn3HHWzmoH5b2xuZD/w1luao RdxoTzBUSUcbcK84ls6eR55w3H7LeWLIY9uh8zBFeIN8JELwHUeSigRa30ZboOmbzMdo Xnvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=feedback-id:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=saZuDrPyTQorU1a6icEIycJDbI9YtfHDMJTJ+jnVsf0=; fh=ulED1J3d26Y4adt580w0jhpOwKZtxU8dixW6JiIfxVE=; b=A2iT+A4Bh+tYtI/B0HN/D3DPYB1ztTSY0etfceY4yVgyh7bUezeVNQoDIXjCi1Ayen buwa/M49MNDdlcv9DaeGWU1uFwJUHQvh1zSWNlZK31a8s5E5Qi/nfjH5+iJZtbzZwP+t E4VFUPKgkdwtcbWPJxD5b5zjx7pYx4ULvX+XpuYSZvV2n5TlRXquDZuo51W+3haOxrUw K9FJdZ1BvoW0njNvoAlsOd+WO6EY6LZ/O2hiPI5uD9OnvB62ksk6eRYKtzXG6ZAnt578 A/YL3n0Ue3WHX/umCpoZKJDihyLM9rsoIKLv8seH+YIh5bjXfNEIEUzIta5m7UdtrGqu 8Ouw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=Yr3OqIHD; spf=pass (google.com: domain of fm-294854-202410281113267dddaf30d8ccaa90e3-1iicvq@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) smtp.mailfrom=fm-294854-202410281113267dddaf30d8ccaa90e3-1IIcVQ@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT 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 98e67ed59e1d1-2e77e4a073dsi403976a91.1.2024.10.28.04.13.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Oct 2024 04:13:28 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-294854-202410281113267dddaf30d8ccaa90e3-1iicvq@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 202410281113267dddaf30d8ccaa90e3 for ; Mon, 28 Oct 2024 12:13:26 +0100 X-Patchwork-Original-From: "'Jan Kiszka' via isar-users" From: Jan Kiszka To: isar-users Cc: Stefan Koch , Cedric Hombourger , Florian Bezdeka , Clara Kowalsky Subject: [PATCH 2/2] linux-custom: Add support for arm64 compat vDSO Date: Mon, 28 Oct 2024 12:13:24 +0100 Message-ID: <1152ee8621ae69c6422890214dd3fbc3866cb05f.1730114004.git.jan.kiszka@siemens.com> In-Reply-To: References: MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-294854:519-21489:flowmailer X-Original-Sender: jan.kiszka@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=Yr3OqIHD; spf=pass (google.com: domain of fm-294854-202410281113267dddaf30d8ccaa90e3-1iicvq@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) smtp.mailfrom=fm-294854-202410281113267dddaf30d8ccaa90e3-1IIcVQ@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Jan Kiszka Reply-To: Jan Kiszka 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=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS, T_SPF_HELO_TEMPERROR 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?= From: Jan Kiszka To build the 32-bit vDSO for arm64 kernels, we need to set CROSS_COMPILE_COMPAT during the build as well. Do that if ISAR_ENABLE_COMPAT_ARCH is enabled. Signed-off-by: Jan Kiszka --- meta/recipes-kernel/linux/files/debian/isar/build.tmpl | 1 + meta/recipes-kernel/linux/files/debian/isar/common.tmpl | 7 ++++++- meta/recipes-kernel/linux/linux-custom.inc | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/meta/recipes-kernel/linux/files/debian/isar/build.tmpl b/meta/recipes-kernel/linux/files/debian/isar/build.tmpl index bafc5ca4..b4c105c1 100644 --- a/meta/recipes-kernel/linux/files/debian/isar/build.tmpl +++ b/meta/recipes-kernel/linux/files/debian/isar/build.tmpl @@ -43,6 +43,7 @@ print_settings() { # --------------- # ARCH=${ARCH} # CROSS_COMPILE=${CROSS_COMPILE} +# CROSS_COMPILE_COMPAT=${CROSS_COMPILE_COMPAT} # KBUILD_BUILD_TIMESTAMP=${KBUILD_BUILD_TIMESTAMP} EOF } diff --git a/meta/recipes-kernel/linux/files/debian/isar/common.tmpl b/meta/recipes-kernel/linux/files/debian/isar/common.tmpl index 5ba11289..f9cc2f02 100644 --- a/meta/recipes-kernel/linux/files/debian/isar/common.tmpl +++ b/meta/recipes-kernel/linux/files/debian/isar/common.tmpl @@ -21,6 +21,11 @@ then CROSS_COMPILE=$(dpkg-architecture -f -A ${DISTRO_ARCH} -q DEB_TARGET_GNU_TYPE)- fi +# Required from building a compat vDSO on arm64 +if [ "${ISAR_ENABLE_COMPAT_ARCH}" = "1" ] && [ "${DISTRO_ARCH}" = "arm64" ]; then + CROSS_COMPILE_COMPAT=$(dpkg-architecture -f -A ${COMPAT_DISTRO_ARCH} -q DEB_TARGET_GNU_TYPE)- +fi + # Constants KCONF=.config @@ -51,7 +56,7 @@ main() { done # variables to be exported - export ARCH CROSS_COMPILE + export ARCH CROSS_COMPILE CROSS_COMPILE_COMPAT # are we cross-compiling? BUILD_ARCH=$(dpkg-architecture -qDEB_BUILD_ARCH) diff --git a/meta/recipes-kernel/linux/linux-custom.inc b/meta/recipes-kernel/linux/linux-custom.inc index 0f23d6f0..f6486096 100644 --- a/meta/recipes-kernel/linux/linux-custom.inc +++ b/meta/recipes-kernel/linux/linux-custom.inc @@ -87,6 +87,8 @@ TEMPLATE_VARS += " \ DISTRIBUTOR \ KERNEL_EXTRA_BUILDARGS \ HEADERS_INSTALL_EXTRA \ + ISAR_ENABLE_COMPAT_ARCH \ + COMPAT_DISTRO_ARCH \ " inherit dpkg