From patchwork Sun May 21 13:23:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 13249409 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63367C77B73 for ; Sun, 21 May 2023 13:36:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231146AbjEUNgk (ORCPT ); Sun, 21 May 2023 09:36:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230309AbjEUN2I (ORCPT ); Sun, 21 May 2023 09:28:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C9EAFA; Sun, 21 May 2023 06:24:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 10B9360ACA; Sun, 21 May 2023 13:24:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C047C433D2; Sun, 21 May 2023 13:24:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684675482; bh=DGOor88cskTgt1c8gVoMlnt1QfpaP6hGJz8ZYo5w6lc=; h=From:To:Cc:Subject:Date:From; b=Tt7KZI5hZJV70VL4MLA/HN2UAQ7vEkWzOdPD2YxbpfObGzvWit2+MLsAeYDKqbLd1 +WjaXjWoeKADF4PlC+R6tv9HwfzxAJAipac0HSmMtPO975XjRUfilLQdzhiW7iaPq0 NK1wMT9rTvTpJ2NQjSNaEOlC18y6Zw3tZyUdUGz97nBoL6t+bOK0RunFNTSNaHoDud YiKr1CwOE37dsX8W0lf1ZbKzSWZ+ke1hqkLC82MlT/LYnLTDBJDBzTBXUrwDbwluvs akyX/913rsd53IW28t3/+IFPrTZBe4aRJhLC61SbNNiY/IMWoJqQHIL1tUkNTykeYF sj3giFPmlIo+g== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 1/2] Revert "kheaders: substituting --sort in archive creation" Date: Sun, 21 May 2023 22:23:35 +0900 Message-Id: <20230521132336.1279523-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org This reverts commit 700dea5a0bea9f64eba89fae7cb2540326fdfdc1. The reason for that commit was --sort=ORDER introduced in tar 1.28 (2014). More than 3 years have passed since then. Requiring GNU tar 1.28 should be fine now because we require GCC 5.1 (2015). Signed-off-by: Masahiro Yamada Reviewed-by: Nicolas Schier --- kernel/gen_kheaders.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/kernel/gen_kheaders.sh b/kernel/gen_kheaders.sh index 1ef9a87511f5..6d443ea22bb7 100755 --- a/kernel/gen_kheaders.sh +++ b/kernel/gen_kheaders.sh @@ -83,12 +83,9 @@ find $cpio_dir -type f -print0 | xargs -0 -P8 -n1 perl -pi -e 'BEGIN {undef $/;}; s/\/\*((?!SPDX).)*?\*\///smg;' # Create archive and try to normalize metadata for reproducibility. -# For compatibility with older versions of tar, files are fed to tar -# pre-sorted, as --sort=name might not be available. -find $cpio_dir -printf "./%P\n" | LC_ALL=C sort | \ - tar "${KBUILD_BUILD_TIMESTAMP:+--mtime=$KBUILD_BUILD_TIMESTAMP}" \ - --owner=0 --group=0 --numeric-owner --no-recursion \ - -I $XZ -cf $tarfile -C $cpio_dir/ -T - > /dev/null +tar "${KBUILD_BUILD_TIMESTAMP:+--mtime=$KBUILD_BUILD_TIMESTAMP}" \ + --owner=0 --group=0 --sort=name --numeric-owner \ + -I $XZ -cf $tarfile -C $cpio_dir/ . > /dev/null echo $headers_md5 > kernel/kheaders.md5 echo "$this_file_md5" >> kernel/kheaders.md5 From patchwork Sun May 21 13:23:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 13249408 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE695C77B73 for ; Sun, 21 May 2023 13:36:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230251AbjEUNgJ (ORCPT ); Sun, 21 May 2023 09:36:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230298AbjEUN2I (ORCPT ); Sun, 21 May 2023 09:28:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15C10FD; Sun, 21 May 2023 06:24:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9DFB460ACA; Sun, 21 May 2023 13:24:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9DAAC4339B; Sun, 21 May 2023 13:24:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684675484; bh=VfAYprLgD0rcez7J0B6F6vcJGPi6jx1GfUu+qYJ2n/4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZUXBYSgs+j1rQeijprLejFg690S0YKQjjSOjy6VIig8y2SSrk4O3uGRuyOttwBWN4 vN5l3iZyIP1x8SSu0u5i0DlLXKP4oJFWDNDZ+7KexwLfaBjr4r00GpMD5sb87lbl9a OC/BOroK6vgM6cnC5/MfO0x+CFImFY2FGkPbxWIDMi1k0Dk2hHZ7zHTLfktH0ipvbp COML9KaYpbnf4oc2l/uqnRUBKHZUlVvjLFLetL5NeVunhBqnl0lSL4T7IGWOe+xmU6 zLOSmJRlGyanca4PE7TP3dNIG0u/RySYVQTZ4+jNASfjIO/szdrlJqzMnJTtQMpG/X Oi/bEIUKZfMGA== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Jonathan Corbet , linux-doc@vger.kernel.org Subject: [PATCH 2/2] doc: Add tar requirement to changes.rst Date: Sun, 21 May 2023 22:23:36 +0900 Message-Id: <20230521132336.1279523-2-masahiroy@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230521132336.1279523-1-masahiroy@kernel.org> References: <20230521132336.1279523-1-masahiroy@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org tar is used to build the kernel with CONFIG_IKHEADERS. GNU tar 1.28 or later is required. Signed-off-by: Masahiro Yamada Reviewed-by: Nicolas Schier --- Documentation/process/changes.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/process/changes.rst b/Documentation/process/changes.rst index a9ef00509c9b..3c0074214d75 100644 --- a/Documentation/process/changes.rst +++ b/Documentation/process/changes.rst @@ -60,6 +60,7 @@ openssl & libcrypto 1.0.0 openssl version bc 1.06.95 bc --version Sphinx\ [#f1]_ 1.7 sphinx-build --version cpio any cpio --version +GNU tar 1.28 tar --version gtags (optional) 6.6.5 gtags --version ====================== =============== ======================================== @@ -175,6 +176,12 @@ You will need openssl to build kernels 3.7 and higher if module signing is enabled. You will also need openssl development packages to build kernels 4.3 and higher. +Tar +--- + +GNU tar is needed if you want to enable access to the kernel headers via sysfs +(CONFIG_IKHEADERS). + gtags / GNU GLOBAL (optional) -----------------------------