From patchwork Fri Jun 11 10:01:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AceLan Kao X-Patchwork-Id: 1490877 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=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=X3JTzsDJ; dkim-atps=neutral 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 4G1bwt0NBkz9sSn; Fri, 11 Jun 2021 20:02:06 +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 1lrdzG-0000Mt-3x; Fri, 11 Jun 2021 10:02:02 +0000 Received: from mail-pg1-f171.google.com ([209.85.215.171]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lrdzC-0000Ig-Jn for kernel-team@lists.ubuntu.com; Fri, 11 Jun 2021 10:01:58 +0000 Received: by mail-pg1-f171.google.com with SMTP id 27so2048174pgy.3 for ; Fri, 11 Jun 2021 03:01:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AKEKCSgEAP074MlWs5XGZnnJjLjCHNL2uAMLXfzkgxk=; b=X3JTzsDJ0xAVdoWihwFub2PD7JHVv16SbiLjRA11dmClcV8qJp4TJmXaYVpetdppsD TOm4f2hrGT2sJgDIg/Htn2uLKeEWQMnRQeRvVAmr+buntt1LbPt/lE1CrOEcLlG5/npb bJhdcQ6ZKLICcnHxQLXi4uiZbPwcvifNfxSJgvyafO04imH4k+iE9X8PITEZV5qVLrHn rXiPNZ+eel8thaaIzqfdCVE9bTOEaH9idymW9mdtR2Rv5jjQkm0eZU0FXE7Kj9c1Wk75 wd4VMfxq0ImFOp53wGhIQd0Jv7BhN8zDJwP/SlKnZzAUkPG6f5neCtwJxuTELOoqW4eg UTaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=AKEKCSgEAP074MlWs5XGZnnJjLjCHNL2uAMLXfzkgxk=; b=KvoSSWWcdq+4dzCiw6OSLYbJeq4r3C53Js4H7DhLCG0JHf2vA02m2YlOqBN10RjVTI /oYX22ELlz0SbtniPiloe9ODjrnT6tYbvLDHGlUjxD3paCdG4RFgHsrPhADMSInsFYG/ Gt0dzqHyxC2z8PuBunEeUdeQ2/CYkX18VC/bGh8Np1iGcOm9LKAVC2kYv8a/8FyvdZ3k UmWofPpUWM6+SXhHJagDOYcu5lJeJ+IWEvASePBmWCFgcsREC31iLsmrZI57ApccSOGV MRuHZY263KxnixAQFbX29Cn3ho5bkFZWJpakl1z04qLnIP+dmCIfunPoRtLYOGCBx0+q FUUA== X-Gm-Message-State: AOAM530PTFV9V8mlfg8nRXU51/XJ0zMjU4fiNIZqTe9SZgIb9n2qOOtw udcUZIIYgQHLzXV8hEg5nE635Nbj/8XDxw== X-Google-Smtp-Source: ABdhPJxmscpcDKs208lUlrkO58Dqtxu9gn6kR0H2xexh2IaWISmiu7dw6v1qLXOpyLof8srifP0AOw== X-Received: by 2002:a63:5218:: with SMTP id g24mr2788977pgb.309.1623405715834; Fri, 11 Jun 2021 03:01:55 -0700 (PDT) Received: from localhost (220-135-95-34.HINET-IP.hinet.net. [220.135.95.34]) by smtp.gmail.com with ESMTPSA id v6sm5462554pgk.33.2021.06.11.03.01.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jun 2021 03:01:54 -0700 (PDT) From: AceLan Kao To: kernel-team@lists.ubuntu.com Subject: [PATCH 3/4][SRU][Unstable] UBUNTU: [Packaging] Fix ODM support in actual build Date: Fri, 11 Jun 2021 18:01:30 +0800 Message-Id: <20210611100131.15133-8-acelan.kao@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210611100131.15133-1-acelan.kao@canonical.com> References: <20210611100131.15133-1-acelan.kao@canonical.com> MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.215.171; envelope-from=acelan@gmail.com; helo=mail-pg1-f171.google.com 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" From: Stefan Bader BugLink: https://bugs.launchpad.net/bugs/1912789 The config update was working with the conditional entry but the actual build is different and was just ignoring everything. Signed-off-by: Stefan Bader (cherry picked commit from 198971108d5dfe12b9846bf0d115accc3d1c3fe8 focal) Signed-off-by: Chia-Lin Kao (AceLan) --- debian/scripts/misc/arch-has-odm-enabled.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/debian/scripts/misc/arch-has-odm-enabled.sh b/debian/scripts/misc/arch-has-odm-enabled.sh index 7bc8a5db0db0..23fe34a868a7 100755 --- a/debian/scripts/misc/arch-has-odm-enabled.sh +++ b/debian/scripts/misc/arch-has-odm-enabled.sh @@ -3,7 +3,16 @@ set -e if [ "$1" = "" ]; then - return 1 + # This would be set doing the actual kernel build + if [ "$KBUILD_VERBOSE" = "" ]; then + return 1 + fi + case $ARCH in + x86) ARCH=amd64;; + *) ;; + esac +else + ARCH=$1 fi TOPDIR=$(dirname $0)/../../.. @@ -11,7 +20,7 @@ TOPDIR=$(dirname $0)/../../.. RULESDIR=$TOPDIR/$DEBIAN/rules.d do_odm_drivers=false -for f in $1.mk hooks.mk; do +for f in $ARCH.mk hooks.mk; do eval $(cat $RULESDIR/$f | sed -n -e '/do_odm_drivers/s/ \+//gp') done if [ "$do_odm_drivers" != "true" ]; then