From patchwork Mon Oct 28 11:13:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 3891 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:43 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-oi1-f187.google.com (mail-oi1-f187.google.com [209.85.167.187]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 49SBDYVs005800 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 28 Oct 2024 12:13:35 +0100 Received: by mail-oi1-f187.google.com with SMTP id 5614622812f47-3e5f4437768sf4050572b6e.3 for ; Mon, 28 Oct 2024 04:13:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1730114009; cv=pass; d=google.com; s=arc-20240605; b=K3U9ki9j+o9lXmgP0XwQZr5CcqDNI2puVlEhmBUTZGwkZ2dkwJt5KYoRfHfzB6fN55 frdmEKta7msuysCW2YBX3UYO0l1YEWLtEKjdmqs4kNFzj54VlGF5qlg7ySrWJdiXHtC4 ai60ef1IcgeGxqOZ2sZLmyVGCQ9QZfZhPfjULVAwrTD+7SP0djfXNH5gzHuP/ls72K06 P7B5oi8RJk8je5r7YN+isg5ByIRXmNl2D61Wf0+Z5pkKV8EZjOU/my5KBDcNltEi1CuR MDwNQHM3OAXzqHm2SjKHyb0rOiQgjfkdkkrfERJ30mXCb7GAozL/HOSKC9h/Lj+DNKd0 zRfQ== 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=qzyokcVSrb6vCLSudzXCLz9td2jbZ6ZB89WOjulHsNU=; fh=dtT8uWYJGdylxr6RDHo3QZbM+hRoc7sPbwi3jyHL9F4=; b=V4lYBx8Q5GodFkNa2r/xWlISkZEDsaV/B1arUNYKNsrKjrpx77SuuCO5cuILBl/VCp 0W/5GS7/UWH3vsjIIuobZT2IIRj6XZHgoGlxRddLTxhpsJen9YEx6xMehgGTZnjV9soH KLU9cwkSCjfppnqddHsKUXRsUbepfNFm2+jQf0yRImPt+r4yx2C7CP1n9D1TmXkKlhLj HvnDxvq7X1kjFbXn9hon12RPDpSz/pfUqwzZAJwJAwVFg7Tl12pGqU2MSqoPmSNV9Tbr P8D+HyQ4sDWT+m9gXU7a3+9bHwXx5gEQwrddvJfcm7Jf9002GpvsgC0C2c/w/uFKGEpw rJVQ==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=bZ6TDhNC; spf=pass (google.com: domain of fm-294854-20241028111325da1582ccce5bfd3bc6-4iqby9@rts-flowmailer.siemens.com designates 185.136.64.228 as permitted sender) smtp.mailfrom=fm-294854-20241028111325da1582ccce5bfd3bc6-4iqBY9@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=1730114009; x=1730718809; 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=qzyokcVSrb6vCLSudzXCLz9td2jbZ6ZB89WOjulHsNU=; b=YazKbdWDuNz/XrBtWH7YNFj5PpL2MmNkbNY5JAPDGel8EStKEuU01jvle6cTfImmxr rYXTGLTIk7t+15XRJOmOzZUQk9uLOdYocw5pLX+ikgQ/2KkCtvZxS4RYurMqUOc0Txql YeVvYQpUaayB03Q3DdTjy9rulKHsF9EQA1mblmMuiTYENNwSE9je77dOS3Y5+gwbVyeS UR/NMAd7ZkE8JVr1hZAdWSskC/DCQh+KJoZ51er1mBBwJZidsdjxm2HCte6f/0yI2owo 7Th/Fnvcqde70jh0LhJeJW5ZeX2wMs71x/R+NUEIOm+8AMBXodn/fVal0/vtdaCXIlfz E+lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730114009; x=1730718809; 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=qzyokcVSrb6vCLSudzXCLz9td2jbZ6ZB89WOjulHsNU=; b=iaP8peHj32U2SKVFfHL0IdwIrEFQh/IzgXxvjt4We/VHNrnuV2WJq38DOz1XaaqgeL 5Ndo91dfOlxoZ7Wnc3ChBDvQOb6wBPFnBw739eEDLWkaQCBZYUZqm2SrtWG5p/9PLiii euEU2dz0wR2ICv40my+ybjSyvz/Yjydlr1w7+bxo1dbx6G50luqPJgNN5QsDt2tSCzkw AvYPMF7xx9JKrlF3fh2/cFmBPKCzejq8iGTycGJaMxyRuRcPqdn0TVsFtnZANWO34oK9 fyhlEwfINypbdyf8Nw2P/53BfITZ1A7x6mxd6BemaPccOzBPxHtFpP8EfmGcBBtJVe/G exUg== X-Forwarded-Encrypted: i=2; AJvYcCWLhHU2ONyheHa7kBcJLkjqTO/QOo9yq3y1Jq8o0IesYXL2F2nkUfKInM11W1ZD7EmX6Xm3xKI=@isar-build.org X-Gm-Message-State: AOJu0Yx0dLC7sP7him1tkoF4yvT4evEhal5ybUm/T3hgqg8EhJJEisp/ gqsy6w2lmMUJ/vQMJuG6rWSY7fVdTG9P82oSTZ0S2wcry4lO1Cqn X-Google-Smtp-Source: AGHT+IG8LLkrsPdEJ2pQob/MiU1AjpeUWqUljoL5FRvHVxQ2ONyKdt75j5coCcb7rJ5XJfu+xT2zCg== X-Received: by 2002:a05:6871:70c:b0:25e:fb:af8c with SMTP id 586e51a60fabf-29051b74c4dmr5937610fac.18.1730114009065; Mon, 28 Oct 2024 04:13:29 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6870:9b0e:b0:24f:f4eb:3558 with SMTP id 586e51a60fabf-28ce477687fls3657464fac.2.-pod-prod-01-us; Mon, 28 Oct 2024 04:13:28 -0700 (PDT) X-Received: by 2002:a05:6870:c98a:b0:288:67e7:a862 with SMTP id 586e51a60fabf-29051bfbb11mr5639488fac.25.1730114008147; Mon, 28 Oct 2024 04:13:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1730114008; cv=none; d=google.com; s=arc-20240605; b=OG7eCIPLGqU+ojXgN1m0AJrS98tUXxGHVbfV0jOHqWLb/DRZH7Kcw+EC89yQ1MDhpE fcY4WBMtJQMrztmFKJ7JteDEVbmTuehRDr7rZGMZN2uCGgVWSUkwvc551FMg6vnbaRId hQ5g1jEx5/DDS2mg3zAkDz/4J5nZfZxceinYXSiJc9cTzvoPVZLb8qsQk5mg9ge5WeeC nTysEcPw2in6LmvTS3Wu85mwWg9vmLDP4rWscnXWCvHNpmmFqfe8sBt6tZETwzG8I1kE zauOpyoHR36twMc5WXbsLdQtL4jFdHK7Px52xY++Pa018IoFMjm5vJzR58/aL7C7Kdpn NJJA== 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=o1GktqF0LBH7CbrJw4F/EH3jlNm3mR3Ek8V5b1BTsbA=; fh=ulED1J3d26Y4adt580w0jhpOwKZtxU8dixW6JiIfxVE=; b=Mk0TkUKExkAllU03ZaIZVOXue+/mpM4yt5MogM0yNl1oboG7GZJAnLWQ4ZlDZZfJ26 fvMQiVMBlGPetx3+gZd583tI8eq6OaoxC3GUF1+4OdG59StI7jQ22TWIx2mT7ZrrhIec xzrYWBGu5GD99EZfx3SKHl0u/ox9WaRw8RqCD0iQ7VhOLB5z6rgWLvv58qhO/hDheFZq 6Eg/mexw58EcxqbykLpHAhj3HNu2ymno8BJMgtYgCrHwswFPki/BR941BfT2EBF16tx4 QblNrN5dtG7fU0WrwP56/BVG1ig/Jew9u/afM3Q0ZkvproLT9Q9naEYvZDGWZTzbbHCL 9Alw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=bZ6TDhNC; spf=pass (google.com: domain of fm-294854-20241028111325da1582ccce5bfd3bc6-4iqby9@rts-flowmailer.siemens.com designates 185.136.64.228 as permitted sender) smtp.mailfrom=fm-294854-20241028111325da1582ccce5bfd3bc6-4iqBY9@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-64-228.siemens.flowmailer.net (mta-64-228.siemens.flowmailer.net. [185.136.64.228]) by gmr-mx.google.com with ESMTPS id 586e51a60fabf-2903810d627si267749fac.3.2024.10.28.04.13.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Oct 2024 04:13:27 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-294854-20241028111325da1582ccce5bfd3bc6-4iqby9@rts-flowmailer.siemens.com designates 185.136.64.228 as permitted sender) client-ip=185.136.64.228; Received: by mta-64-228.siemens.flowmailer.net with ESMTPSA id 20241028111325da1582ccce5bfd3bc6 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 1/2] linux-custom: Drop redundant setting of CROSS_COMPILE Date: Mon, 28 Oct 2024 12:13:23 +0100 Message-ID: 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=bZ6TDhNC; spf=pass (google.com: domain of fm-294854-20241028111325da1582ccce5bfd3bc6-4iqby9@rts-flowmailer.siemens.com designates 185.136.64.228 as permitted sender) smtp.mailfrom=fm-294854-20241028111325da1582ccce5bfd3bc6-4iqBY9@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_H2,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,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?= From: Jan Kiszka Since ac2bbd7ca249, we set CROSS_COMPILE in isar/common[.tmpl] if needed. As this is run before every target, we can drop initialization in the rules file. Signed-off-by: Jan Kiszka --- meta/recipes-kernel/linux/files/debian/isar/common.tmpl | 2 +- meta/recipes-kernel/linux/files/debian/rules.tmpl | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/meta/recipes-kernel/linux/files/debian/isar/common.tmpl b/meta/recipes-kernel/linux/files/debian/isar/common.tmpl index def8480e..5ba11289 100644 --- a/meta/recipes-kernel/linux/files/debian/isar/common.tmpl +++ b/meta/recipes-kernel/linux/files/debian/isar/common.tmpl @@ -51,7 +51,7 @@ main() { done # variables to be exported - export ARCH + export ARCH CROSS_COMPILE # are we cross-compiling? BUILD_ARCH=$(dpkg-architecture -qDEB_BUILD_ARCH) diff --git a/meta/recipes-kernel/linux/files/debian/rules.tmpl b/meta/recipes-kernel/linux/files/debian/rules.tmpl index e8ae3daa..598ae93f 100755 --- a/meta/recipes-kernel/linux/files/debian/rules.tmpl +++ b/meta/recipes-kernel/linux/files/debian/rules.tmpl @@ -1,7 +1,5 @@ #!/usr/bin/make -f -CROSS_COMPILE:=$(DEB_HOST_GNU_TYPE)- - MAINTAINER := $(shell sed -ne 's,^Maintainer: .[^<]*<\([^>]*\)>,\1,p' debian/control) DISTRIBUTOR := ${DISTRIBUTOR} SOURCE_DATE := $(shell dpkg-parsechangelog -SDate) @@ -13,7 +11,6 @@ deb_top_dir:=$(S)/debian # Dynamic variables to be passed to Isar build scripts isar_env=$(strip \ - export CROSS_COMPILE='$(CROSS_COMPILE)' && \ export DEB_BUILD_PROFILES='$(DEB_BUILD_PROFILES)' && \ export DEB_HOST_GNU_TYPE='$(DEB_HOST_GNU_TYPE)' && \ export MAKE='$(MAKE)' && \ 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