From patchwork Sun Jan 16 20:35:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 1580537 X-Patchwork-Delegate: rsalvaterra@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=1Q6UrS/c; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=Fv6dYTq+; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JcRgJ68JRz9ssD for ; Mon, 17 Jan 2022 07:37:48 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Pzauxaxm49tMGDmPJ3JZItQOM7JN9JMEKGSaoaW6gRo=; b=1Q6UrS/cApnZtR pakG1FPmompJbxzhNUO+5hetxzL8fSnpKbzsqxjJhbV8maWdpqZzleTWbIAfynCY+tMCNh0VjKPoI DO2KGGsKfbps4NCl6se5xry7wYL3ny1QVdmaFG/409E9Y8LJCGXKqt2blrcRuWewGLqWF+jeNv7OO n5DpEnI5xBwFBSCtnDJuTLkMPC+cVc0vPToYOOfQlAayuh/mFrAjS52Qy4nfdj5dRYtBU0Lb3B7+U Yar2g24/vGVl6uPT4gupCIhNRArBjaxZT+xdSs11CkYviKe2c7bk64/PB3DKpI8v3yKpadGmZdiBI DeuNIWtnsaPeSzCX8AxQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9CFk-00Cx8S-45; Sun, 16 Jan 2022 20:35:52 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9CFg-00Cx89-CJ for openwrt-devel@lists.openwrt.org; Sun, 16 Jan 2022 20:35:49 +0000 Received: by mail-ed1-x534.google.com with SMTP id c71so57062180edf.6 for ; Sun, 16 Jan 2022 12:35:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MBD35KIWoiENYcJq0Q01/o3CNbXm9MjKueQeqT/T+n8=; b=Fv6dYTq+yYUeryRnfEftG7hVECLn3zab/AvNP3RGawA9HuD9modHnjibKhJsK0QClc k41+W+PcahEiLzwrMyBGHHn+QDHGWDPpRntBFy2htaeKJr3oOnzIZdNwTbhocU9yuT+Q bEDudYbc+I/xbZW54dfCnfiEm/Kvg5gjxLcikBfPtg9Q9yAF+DMbDkCe9iQP8C/YQyY8 Eo9nCsp1qcsuTr8Sz2auLrQYyxwc4vzcQXgMZf36sOSHimfm5hJogzkMLU65fsC4tSVW 0V9ex6wwg73SRjq9+dGPtfqzpnYAhTnzUBsx5vI9OuqWJ6lBbv0DJi0Fb+IXjf8fSLJH gAxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MBD35KIWoiENYcJq0Q01/o3CNbXm9MjKueQeqT/T+n8=; b=X+10LXmWPgjghcXkW8ZimVWfO+rWsGuJ1wEsXHI+c35zo75T4EUSCbRpH3DQkaAghm ZYy31m8KGoX2j8t2l2VFvr7m5gGN52QzdRtsqOEWecs0MqxqzH2cey5yr807q6uoGxJt aDEmzckHrtLqzPcm92hELFgQjWU161QD1qF/jTQCaEinqBwZxNnNoOKuk6JlJXFY5KKH 7beVFQOAarRdebzUltDfrlL2kOF88WjbQCqWmIseMhKjAC6cMNtvF84/+DRqKKEHMBE6 LvdDe4sZ0FdWUFGCpj0ZpdQOkpWYRTcRt1OZiGROhvJcsk7+geWX7z+VGl+s8eF9UBk6 qsCw== X-Gm-Message-State: AOAM532FcmUgJocdYzQecdtaRPyHQLNhkw6QIz0vxsnAJi+f9MEAarMq 0jicLDu5q8g6l4CPc9Y+hY29j/EdJSw= X-Google-Smtp-Source: ABdhPJziLeG9T7iffti9M1lFeha+ARAQZkNgkjAiI3Cq+iCL+SkpTNcso3wq1AqqsWltvxVXTYJtvg== X-Received: by 2002:a17:906:5a90:: with SMTP id l16mr7672994ejq.695.1642365346553; Sun, 16 Jan 2022 12:35:46 -0800 (PST) Received: from localhost.localdomain (93-42-71-246.ip85.fastwebnet.it. [93.42.71.246]) by smtp.googlemail.com with ESMTPSA id kg19sm1691514ejc.109.2022.01.16.12.35.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jan 2022 12:35:46 -0800 (PST) From: Ansuel Smith To: openwrt-devel@lists.openwrt.org Cc: Ansuel Smith Subject: [maintainer-tools PATCH] update_kernel.sh: update it to new kernel hash/version file way Date: Sun, 16 Jan 2022 21:35:32 +0100 Message-Id: <20220116203532.463-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220116_123548_437921_31107EC7 X-CRM114-Status: GOOD ( 11.56 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Openwrt changed how the hash/version of the various kernel are declared and saved. They are now placed in dedicated files. Fix the update_kernel.sh script to update the kernel version/hash to the corr [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:534 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [ansuelsmth[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Openwrt changed how the hash/version of the various kernel are declared and saved. They are now placed in dedicated files. Fix the update_kernel.sh script to update the kernel version/hash to the correct file. Signed-off-by: Ansuel Smith Reviewed-by: Rui Salvaterra --- update_kernel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_kernel.sh b/update_kernel.sh index 0cbdb1d..2c4bb09 100755 --- a/update_kernel.sh +++ b/update_kernel.sh @@ -155,7 +155,7 @@ if [ "$UPDATE" -eq 1 ]; then CHECKSUM=$(./staging_dir/host/bin/mkhash sha256 dl/linux-$PATCHVER.tar.xz) fi - $CMD ./staging_dir/host/bin/sed -i include/kernel-version.mk \ + $CMD ./staging_dir/host/bin/sed -i include/kernel-${KERNEL} \ -e "s|LINUX_VERSION-${KERNEL} =.*|LINUX_VERSION-${KERNEL} = ${NEWVER}|" \ -e "s|LINUX_KERNEL_HASH-${KERNEL}.*|LINUX_KERNEL_HASH-${PATCHVER} = ${CHECKSUM}|" fi