Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3DCEDC25B75 for ; Wed, 29 May 2024 07:19:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id E2199605D4; Wed, 29 May 2024 07:19:29 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id QGqdWQtoynRl; Wed, 29 May 2024 07:19:29 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 0324760732 Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 0324760732; Wed, 29 May 2024 07:19:29 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 3529B1D3276 for ; Wed, 29 May 2024 07:19:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 20E0840564 for ; Wed, 29 May 2024 07:19:27 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id MFpOfpTXHs_5 for ; Wed, 29 May 2024 07:19:26 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=217.70.183.197; helo=relay5-d.mail.gandi.net; envelope-from=peter@korsgaard.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp4.osuosl.org C2E9240382 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org C2E9240382 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by smtp4.osuosl.org (Postfix) with ESMTPS id C2E9240382 for ; Wed, 29 May 2024 07:19:25 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id D63021C000B; Wed, 29 May 2024 07:19:23 +0000 (UTC) Received: from peko by dell.be.48ers.dk with local (Exim 4.96) (envelope-from ) id 1sCDag-009lfE-0a; Wed, 29 May 2024 09:19:18 +0200 From: Peter Korsgaard To: Brandon Maier References: <20240528150910.75324-1-brandon.maier@collins.com> Date: Wed, 29 May 2024 09:19:18 +0200 In-Reply-To: <20240528150910.75324-1-brandon.maier@collins.com> (Brandon Maier's message of "Tue, 28 May 2024 15:09:10 +0000") Message-ID: <87zfs9qe4p.fsf@dell.be.48ers.dk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 X-GND-Sasl: peter@korsgaard.com X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dmarc=none (p=none dis=none) header.from=korsgaard.com Subject: Re: [Buildroot] [PATCH] utils/add-custom-hashes: symlink linux-headers to linux X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: buildroot@buildroot.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" >>>>> "Brandon" == Brandon Maier writes: > Most boards use BR2_KERNEL_HEADERS_AS_KERNEL with their custom kernels. > So when creating their custom hash files, the linux-headers.hash is the > same as linux.hash. In this case we symlink linux-headers to linux to > make maintenance easier. Update the add-custom-hashes tool to explicitly > handle this case. Nice! > Signed-off-by: Brandon Maier > --- > utils/add-custom-hashes | 8 ++++++++ > 1 file changed, 8 insertions(+) > diff --git a/utils/add-custom-hashes b/utils/add-custom-hashes > index 20e48d8ef3..9bea39883a 100755 > --- a/utils/add-custom-hashes > +++ b/utils/add-custom-hashes > @@ -97,6 +97,14 @@ for file in $BR_NO_CHECK_HASH_FOR; do > done > done > +# Symlink linux-headers to linux .. if identical > +linux_hash="$BR2_GLOBAL_PATCH_DIR/linux/linux.hash" > +linux_headers_hash="$BR2_GLOBAL_PATCH_DIR/linux-headers/linux-headers.hash" > +if [ -e "$linux_hash" ] && [ -e "$linux_headers_hash" ] \ > + && diff -q "$linux_hash" "$linux_headers_hash" >/dev/null; then Rather than using diff -q > /dev/null, it IMHO makes more sense to use cmp -s like we do elsewhere. Committed with that changed, thanks. -- Bye, Peter Korsgaard _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot