Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2570287rwp; Fri, 14 Jul 2023 08:05:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlEVO1v0mPnDMDncRqFtiGTeWCmLo+Clo/DFpzHlxcFDk5j53wqmX5XG93o3iH3XpnT3d8ad X-Received: by 2002:a05:6a00:194a:b0:676:ad06:29d7 with SMTP id s10-20020a056a00194a00b00676ad0629d7mr6370607pfk.15.1689347130107; Fri, 14 Jul 2023 08:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689347130; cv=none; d=google.com; s=arc-20160816; b=IDBKQcP2mnkAsaCGbMk0yX2fHRFJC4KBoFwQlrd5gjzyesNpATeqghwwyAPTQG/rAP XsBzBrjtV10OxsBVuVNQPvEy2sYoTpf0HsIHd6i6yXqi+SA02DCTuNm7knImiIuin49a fy4uRcMoywUbome3a6Q2UqFxxuSnNZZw/TUVsdPTVoapJ7QSGxz0BbGcB8SBYkQkmq+v Z3shDjO8ROW5JKq2QPsDfSdAaZZZLa8ofaDFRMXG7T1o8acWffHxfCtNnXQaMh9jrYTk ztXWDOfoL9zjSfwnDkEZUOqbT785LL8E9Iq0KgF8RdKGGLDvGjN9Wj/wlTlHaJZlcgF5 dfLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date; bh=o6wrePsB6exhJEw4FheJBujlI5zZIY65F84UV27qLXI=; fh=LMf/0IoKa8vc6Gbu8E0OYdK0QPGvG+mEJWJPB+aUjzU=; b=cRF74um5HxVo1bTUWJxXxBhdoGfUZ6jIBJ2F3pF1LE/pi0uKEEeMrJwuFDuhnhjIRB JMDt1TK1jrjlcIk1DdS56f12epGiH/Ye2hrDkrvWJIFyG+Fhvf4iXlxGtqJDkXrLRBZn STq02McDgS3ruviz0GxNUNyClJufDxdZhoGYLw1emM/TOl6wNeINMAsiY6yxkfBrUbKw N0QFPeOvOoYIRdQVwwSaiBKfOFFhLsYBi64EwpXgKiAJg0Nviw2V+7b9xv3XPdPXQkQZ la0PzCwKvMe32nreraUJLQnbWm3x2kWe3/1kHXEXUYBnMrUpRePwpRlF/KABO1gaSd86 8qjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cm6-20020a056a00338600b006714b161b92si6943884pfb.324.2023.07.14.08.05.18; Fri, 14 Jul 2023 08:05:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236115AbjGNOmR (ORCPT + 99 others); Fri, 14 Jul 2023 10:42:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236101AbjGNOmP (ORCPT ); Fri, 14 Jul 2023 10:42:15 -0400 Received: from a3.inai.de (a3.inai.de [IPv6:2a01:4f8:10b:45d8::f5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1E63134; Fri, 14 Jul 2023 07:42:13 -0700 (PDT) Received: by a3.inai.de (Postfix, from userid 25121) id 6A3E858B8DB3A; Fri, 14 Jul 2023 16:42:12 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by a3.inai.de (Postfix) with ESMTP id 6779C6197F89B; Fri, 14 Jul 2023 16:42:12 +0200 (CEST) Date: Fri, 14 Jul 2023 16:42:12 +0200 (CEST) From: Jan Engelhardt To: =?UTF-8?Q?Michal_Such=C3=A1nek?= cc: Nicolas Schier , linux-modules@vger.kernel.org, Takashi Iwai , Lucas De Marchi , =?UTF-8?Q?Michal_Koutn=C3=BD?= , Jiri Slaby , Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] depmod: Handle installing modules under a prefix In-Reply-To: <20230714143002.GL9196@kitsune.suse.cz> Message-ID: <91qn266-1929-r36s-rrq-qs8n1qs044ps@vanv.qr> References: <30d8c675-e769-e567-a81f-c1b59c66ad67@suse.com> <20230714122111.7528-1-msuchanek@suse.de> <20230714143002.GL9196@kitsune.suse.cz> User-Agent: Alpine 2.25 (LSU 592 2021-09-18) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 2023-07-14 16:30, Michal Suchánek wrote: >> > >> > -MODLIB = $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE) >> > +export KERNEL_MODULE_PREFIX := $(shell kmod config &> /dev/null && kmod config | jq -r .module_prefix) >> >> All other calls of `jq` that I could find are located at tools/; as this here >> is evaluated on each invocation, this should probably be documented in >> Documentation/process/changes.rst? >> >> (Absence of `jq` will cause error messages, even with CONFIG_MODULES=n.) > >That's a good point. Speaking of which, "&>" is a bashism and probably should be replaced.