From patchwork Tue Dec 1 13:17:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominique Martinet X-Patchwork-Id: 11942919 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9CD04C64E7B for ; Tue, 1 Dec 2020 13:19:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 49DC1207FF for ; Tue, 1 Dec 2020 13:19:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=codewreck.org header.i=@codewreck.org header.b="eQMgz0nD" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390840AbgLANTL (ORCPT ); Tue, 1 Dec 2020 08:19:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387931AbgLANTJ (ORCPT ); Tue, 1 Dec 2020 08:19:09 -0500 Received: from nautica.notk.org (ipv6.notk.org [IPv6:2001:41d0:1:7a93::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A9C2C0613D6 for ; Tue, 1 Dec 2020 05:18:29 -0800 (PST) Received: by nautica.notk.org (Postfix, from userid 1001) id 4F544C009; Tue, 1 Dec 2020 14:17:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1606828665; bh=fITzHpExu91uhcfVWcxzP50E4edwLr25ewFvtJBm5bs=; h=From:To:Cc:Subject:Date:From; b=eQMgz0nD+YSPrNTzOhZUBln+D3DKkxBAgKAjxVxQwHLxnzzX+D2Un8qnzCf9bnZIr L6g1ri4KLrRQ5UF1Uuu+aJscTINWWSpNVGHyn+GpXv2g9VtJkLzZwKN1e78e4Mj7lI 8JR9vqdJGB7dPnG4oz+3tAoCUkCwoRzqqmwPMf8h1OZcWYwCKwEPGIgai1hxgDgoy0 0V1FqT9+9CVKwTg4hTffVjcnezTeb3ZO5pWpiv7Sc8Hgwg1I2y67+Vd0a3vHMU1oel 8Qij1U/0dUcjvYhZLWdcYy+tgFt1mm1EupzLyrA1/YyPFYMCo4fKRtWOH2W+mwh/qJ T3MkEAz6XpJbw== From: Dominique Martinet To: Masahiro Yamada , Michal Marek Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Dominique Martinet Subject: [PATCH 1/2] ld-version: use /usr/bin/env awk for shebank Date: Tue, 1 Dec 2020 14:17:29 +0100 Message-Id: <1606828650-29841-1-git-send-email-asmadeus@codewreck.org> X-Mailer: git-send-email 1.7.10.4 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org /usr/bin/awk is not garanteed to exist (and doesn't on e.g. nixos), using /usr/bin/env to have it look in PATH is more robust Signed-off-by: Dominique Martinet Signed-off-by: Dominique Martinet --- I've been carrying these two patchs for local kernel development on nixos for a while, I don't think it'd break anything for anyone so might as well submit these -- please consider it :) scripts/ld-version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ld-version.sh b/scripts/ld-version.sh index f2be0ff9a738..05476b8f8925 100755 --- a/scripts/ld-version.sh +++ b/scripts/ld-version.sh @@ -1,4 +1,4 @@ -#!/usr/bin/awk -f +#!/usr/bin/env -S awk -f # SPDX-License-Identifier: GPL-2.0 # extract linker version number from stdin and turn into single number { From patchwork Tue Dec 1 13:17:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominique Martinet X-Patchwork-Id: 11942921 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0FBC3C64E7A for ; Tue, 1 Dec 2020 13:19:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C2FFA207FF for ; Tue, 1 Dec 2020 13:19:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=codewreck.org header.i=@codewreck.org header.b="QlWjGD6P" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390852AbgLANTM (ORCPT ); Tue, 1 Dec 2020 08:19:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390847AbgLANTM (ORCPT ); Tue, 1 Dec 2020 08:19:12 -0500 Received: from nautica.notk.org (ipv6.notk.org [IPv6:2001:41d0:1:7a93::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21DD1C0617A6 for ; Tue, 1 Dec 2020 05:18:32 -0800 (PST) Received: by nautica.notk.org (Postfix, from userid 1001) id 08008C01B; Tue, 1 Dec 2020 14:17:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1606828669; bh=O5J2LaBS/B6Qc/kO9fyndSOGTTNP9IO7bp/boMw+3Y4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QlWjGD6Psl1SfsHUD7Xj9QTgTwIXkxOAnP8eFudDsHmBmOdoqCUUDNd+8VQRIZely 9xFuxggNqn+Qm/mVipTrDytMQp6IbQNEty30qqaheyerHIg3uk4nYPC9celMWLdZS0 KwDmCZOv8r2kZdlTM7Y8LJWqSB1IDi0zhVQr/BHO2ULjXuQ+SlMlgSLqS66B6vUvm3 pI6EyL8cgDY4oKkW8rSYlossFbg84Iv/mOIcJfYD5ffBF1pwAoQymp+eIMkcNIIg3w ynIGK8ChwsA86e4PCnl1YE7fWfbiZHkbM9He28twNGJmppM6OAY400dnV9LnltwBgA 6fh8jazelFVFA== From: Dominique Martinet To: Masahiro Yamada , Michal Marek Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Dominique Martinet Subject: [PATCH 2/2] kbuild: don't hardcode depmod path Date: Tue, 1 Dec 2020 14:17:30 +0100 Message-Id: <1606828650-29841-2-git-send-email-asmadeus@codewreck.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1606828650-29841-1-git-send-email-asmadeus@codewreck.org> References: <1606828650-29841-1-git-send-email-asmadeus@codewreck.org> Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org depmod is not guaranteed to be in /sbin, just let make look for it in the path like all the other invoked programs Signed-off-by: Dominique Martinet --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9e7fd6a065a7..d7bd114836a9 100644 --- a/Makefile +++ b/Makefile @@ -452,7 +452,7 @@ LEX = flex YACC = bison AWK = awk INSTALLKERNEL := installkernel -DEPMOD = /sbin/depmod +DEPMOD = depmod PERL = perl PYTHON = python PYTHON3 = python3