From patchwork Fri Jan 22 16:23:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Whitcroft X-Patchwork-Id: 1430436 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DMl1w6SdLz9sS8; Sat, 23 Jan 2021 03:23:48 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1l2zDr-0004T5-C0; Fri, 22 Jan 2021 16:23:43 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1l2zDg-0004KZ-9A for kernel-team@lists.ubuntu.com; Fri, 22 Jan 2021 16:23:32 +0000 Received: from mail-ej1-f72.google.com ([209.85.218.72]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1l2zDf-0006ZB-MT for kernel-team@lists.ubuntu.com; Fri, 22 Jan 2021 16:23:31 +0000 Received: by mail-ej1-f72.google.com with SMTP id d15so2371280ejc.21 for ; Fri, 22 Jan 2021 08:23:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=J/tydVLSEGpdyIbljnu7+T1A4qwffJZa0VQQkzm0cSg=; b=Argi/Q/WKIxlKLzsvy6eFUl19lh9X+8hea64hpaiMKyr5ZNgbEvcRVdalS+kK0/pT8 G49EkNXg9QfDY2ToQwImMTqoTYvqJ2d2yjtABVoGx4d7rewET0TQXV3RU4i5yJ6ZFvPm J/kjmmcd73nO+CV6tSyioH1E2KNo91w1UH4MvwCXxo+U/DfdRFhuOuwYAFuMO+tKKq5G x/JR2gqUtY3Eok+r7kV/1OaQetuhpk1EI4M+TP9ORLZkECg4cpsYuD77Aw6SpwmCmrn+ md7qNGMoiTQdhrEbQVzxQhnXA71yJHGQowzUhitTqbmG2Nv3PbmHXkr/VmPOf6UoiZZJ UUOg== X-Gm-Message-State: AOAM531Vrg5WnueV19lYgdELMnz0zVtGJ2ocl7moZZ4wGtfdIh5QBKZm voi/077j3CGfH5gFBQulESyrJEXl6XByWBm7uGavN9gKSTrNk0E1HIyFf652cb3uDrz9hQvVs6G 10V29w1iPHwBA2eJQDWddXIKesWAiLaM4roeOtovIxw== X-Received: by 2002:a17:906:6b08:: with SMTP id q8mr3488980ejr.391.1611332611199; Fri, 22 Jan 2021 08:23:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJyyBDU4dlvbFKJNxOIgYPyMTSRcS5EnFTP0Npmo15RAg4defPAjDgu4HRBg9j4oNpgcd7pscw== X-Received: by 2002:a17:906:6b08:: with SMTP id q8mr3488968ejr.391.1611332611017; Fri, 22 Jan 2021 08:23:31 -0800 (PST) Received: from localhost ([2001:470:6973:2:cb60:1396:20d7:1932]) by smtp.gmail.com with ESMTPSA id i22sm4691738ejx.77.2021.01.22.08.23.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jan 2021 08:23:30 -0800 (PST) From: Andy Whitcroft To: kernel-team@lists.ubuntu.com Subject: [PATCH 9/9] UBUNTU: [Packaging] generate nvidia version mappings at clean time -- add suppress support Date: Fri, 22 Jan 2021 16:23:11 +0000 Message-Id: <20210122162312.459010-11-apw@canonical.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210122162312.459010-1-apw@canonical.com> References: <20210122162312.459010-1-apw@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: , Cc: Andy Whitcroft Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" Signed-off-by: Andy Whitcroft --- debian/scripts/gen-rules | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/scripts/gen-rules b/debian/scripts/gen-rules index fb8717e..19830c0 100755 --- a/debian/scripts/gen-rules +++ b/debian/scripts/gen-rules @@ -15,10 +15,12 @@ fi nvidia_desktop= nvidia_server= +nvidia_ignore= while read command arg do case "$command" in option) ;; + suppress) nvidia_ignore="$nvidia_ignore $arg"; continue ;; *) continue ;; esac @@ -53,6 +55,9 @@ EOL ;; *) continue ;; esac + case " $nvidia_ignore " in + *\ $package\ *) continue ;; + esac case " $extra " in *\ signonly\ *) continue ;;