From patchwork Tue May 30 11:26:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Righi X-Patchwork-Id: 1787406 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=tF+ekcxz; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QVqq53pqsz20Tw for ; Tue, 30 May 2023 21:26:40 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1q3xUf-00085s-L7; Tue, 30 May 2023 11:26:25 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1q3xUd-00084t-3R for kernel-team@lists.ubuntu.com; Tue, 30 May 2023 11:26:23 +0000 Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id C34673F10B for ; Tue, 30 May 2023 11:26:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1685445982; bh=an0f0ToH5ijQnoHX2h5AS8TxKQ5D5lwv46rXQN+hRuE=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tF+ekcxz8M6BkSz6tXpwm+S2SEBCJkwlb7NBcfpSnZHpRDJYBhGcSEJ5PcimsL0Q7 piH8O4U7D8fc1OwBCvPqzrgPiJ6IGsHX78Zak/sQp/eh45VvTAa4EjiQiLZn4CKwiq aBYtOB/cjcWKonUWIoFSYstvoGhm2q+o1O+C2TNLtrxNlnkZqoQ4KM+zlgI42DehEH DIcM4ZI1+7NIFet5yW05ZIxmBGLnMOTpfGQgAkR0zGhabdA/dZwIPa/wmd7NXLsX/O YbVoxD2RF33a/6/GoRSHl18fWxGw6xSqmjHhvve14NaIhAiY5mJofPFioGWgUwuz2T jMWcv2XNWajLQ== Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-95847b4b4e7so484797866b.3 for ; Tue, 30 May 2023 04:26:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685445982; x=1688037982; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=an0f0ToH5ijQnoHX2h5AS8TxKQ5D5lwv46rXQN+hRuE=; b=k5W30g9oxXpCyssyAC+hjiCfnliQybde+uUY5gpKDc1sGIu64XobT7VDBcav9h6E6C iVOU+6CYhqBbokBGkO9VNA2qQJqPx6JoNnJQRJ2kKXmTUJN+woy8kiJDyYwKeDJO51Ki NtZC4tlgvylS3ITpQXazjD0yfKcRMn86F7pRQki1xTJMU/wiGuyiJ2W8OC4F/5tSl2yJ pXquIscZeWO2XKCETUL4xjd+kI6hGU+B55ApkF+9aePcR7Eh+c4SGvGt6fcZLi0gC7V4 sYAd6wAOH/Q6qDJ6oAvFPTQ+89PkT0VENJE0ksOZGReZM4RY9j2h3b0Vs9Z1n4kBeQpg TL7Q== X-Gm-Message-State: AC+VfDzJFDTpfguUqJGWG2mzFwrHrh3zqeISVWYARX/6S1HP5tWoMLd0 k6Tc+SETAtUIKGRdgwewMksceO5HWSRh59VTYWVVWOAJz5rYjKqSTN0hfvsOBd8/wP4IatrsIux QcsN1PkOxzduT5b9m//dh5cBW8ECEAU/BCdy4Vhdk+wSD5zIAzg== X-Received: by 2002:a17:907:6e25:b0:973:ea41:3f0c with SMTP id sd37-20020a1709076e2500b00973ea413f0cmr2315422ejc.20.1685445982481; Tue, 30 May 2023 04:26:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ52J8sbJ2gUrVh71QVQ1whG9R/v/3ZJNKhKKnLY17TsXom+HS+YGqj/gI6RaNDSoGuYXXPxtQ== X-Received: by 2002:a17:907:6e25:b0:973:ea41:3f0c with SMTP id sd37-20020a1709076e2500b00973ea413f0cmr2315404ejc.20.1685445982148; Tue, 30 May 2023 04:26:22 -0700 (PDT) Received: from righiandr-XPS-13-7390.homenet.telecomitalia.it (host-82-57-63-8.retail.telecomitalia.it. [82.57.63.8]) by smtp.gmail.com with ESMTPSA id s10-20020a170906a18a00b0096f00d79d6asm7258476ejy.54.2023.05.30.04.26.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 04:26:22 -0700 (PDT) From: Andrea Righi To: kernel-team@lists.ubuntu.com Subject: [SRU][M][U][PATCH 1/1] UBUNTU: [Packaging] enable rust only in the generic kernel for amd64 Date: Tue, 30 May 2023 13:26:18 +0200 Message-Id: <20230530112618.116669-3-andrea.righi@canonical.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230530112618.116669-1-andrea.righi@canonical.com> References: <20230530112618.116669-1-andrea.righi@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2021605 This allows to avoid building any kind of Rust artifact in other kernels, except for the generic one and only on amd64. Signed-off-by: Andrea Righi --- debian.master/rules.d/amd64.mk | 1 + debian/rules.d/2-binary-arch.mk | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian.master/rules.d/amd64.mk b/debian.master/rules.d/amd64.mk index d0384f0227a4..afed3e50966b 100644 --- a/debian.master/rules.d/amd64.mk +++ b/debian.master/rules.d/amd64.mk @@ -21,3 +21,4 @@ do_extras_package = true do_tools_common = true do_tools_acpidbg = true do_odm_drivers = true +do_lib_rust = true diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk index b796e67dadb1..aa790f98f000 100644 --- a/debian/rules.d/2-binary-arch.mk +++ b/debian/rules.d/2-binary-arch.mk @@ -132,7 +132,7 @@ $(stampdir)/stamp-install-%: $(stampdir)/stamp-build-% $(stampdir)/stamp-install dh_prep -p$(bin_pkg_name)-$* dh_prep -p$(mods_pkg_name)-$* dh_prep -p$(hdrs_pkg_name)-$* -ifeq ($(build_arch),x86) +ifeq ($(do_lib_rust),true) dh_prep -p$(rust_pkg_name)-$* endif $(foreach _m,$(all_standalone_dkms_modules), \ @@ -677,7 +677,7 @@ endif $(call dh_all,$(pkgbldinfo)) $(call dh_all,$(pkghdr)) -ifeq ($(build_arch),x86) +ifeq ($(do_lib_rust),true) $(call dh_all,$(pkgrust)) endif