Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1863497rdb; Mon, 9 Oct 2023 05:35:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHvXdha/Y33kDhPr7XXfQJ7ylyqe9PVXIEzPjH9R4cySD78PQ8Y/nmjA69JcUcPQzYbGOEr X-Received: by 2002:a17:902:8b8c:b0:1c0:aca0:8c44 with SMTP id ay12-20020a1709028b8c00b001c0aca08c44mr12826136plb.19.1696854907224; Mon, 09 Oct 2023 05:35:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696854907; cv=none; d=google.com; s=arc-20160816; b=RMq8lzI5SJ8xJ7gvTefEFwTHv26mrVz+alG+zr6ce6xMWKi6OBIQu/T1sEuBZVP9W/ hoisaCFN5ZEg76SOhBFzujJY9ST85BYgMoLuYQGT7XlfxNzGHUbgi0OV8kKHThcLmAPa wMYXC9ahiLMoFLS/peHB+6+g7aKEFdV2d0AmbNmePuX19mNDXXWwlB+LOUFxxmBI6ZiZ ULSv596aiEElWOqrY5uZIbg1hM7ZU8eQoepIHKw8buLA6p1JrSm03t6u+0KNJZau3jJL CE9QFjBjHH6vq0MxyY07LzXhgyrpx6Sl3/y2RDjcvNt8JR8SRrQmDGylWBs1tIwzKQy+ W31Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=1k6rM4lCLYpCX7xu2JGVxkuiNxryABdz8CHGqmNOj/U=; fh=5O9Z7jMC5VVoHpDXA5JzEVHo95a+h5NIAVnStP+aN/8=; b=Q1BuJZb3eHmPQVG7OvUNFZxwsK8KbPQnHg15o5z/iCQjIVxylNRR1RsjvX+OXU3Z2+ lVlJw9qxhvaH16/xziM9S3T+nGFkentqeU6uAsS8k7juuxqE1XTKhH4b3RQQZVvzSXhg DXu4Vr0BNEY2CJ/AFBnuzp5w+6jzcR7ULFWmKllXl/axSdpWMTvUBLugMDdOfGFzHdCk 3DLUC3ZiQ0jMB7GI8dRX+Deza9GtQ+7ePwYJnX8V7suLmg1XhzqSyxMmVk6jAmg/LgCk vXeiRKgtcMeq3rijNpjXqRBESwxg+bMBty4BaZQVmtloUv7TWJ4K6Do49bZ+YU0I7MO2 6mCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vDcEaXl9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id u3-20020a170902b28300b001b9ed021929si4101008plr.225.2023.10.09.05.35.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 05:35:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vDcEaXl9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 856AD807973B; Mon, 9 Oct 2023 05:35:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376447AbjJIMey (ORCPT + 99 others); Mon, 9 Oct 2023 08:34:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346630AbjJIMet (ORCPT ); Mon, 9 Oct 2023 08:34:49 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5663DB7; Mon, 9 Oct 2023 05:34:48 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E682EC433CB; Mon, 9 Oct 2023 12:34:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696854887; bh=1k6rM4lCLYpCX7xu2JGVxkuiNxryABdz8CHGqmNOj/U=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=vDcEaXl9niuNNqo067jjIO6MMpwKln23++Wm9pOabCws7E3hr5AIWzEFJlCZ9aToo t0b3KY2LRdgWtvBVgnxJC2ixXR00E9T+lTYfAWiKF1FyHYWv4enhFQbfzIkOqaD7fW oN8SQBkK3ZHhos/5QrsPoOSKJWM3wNculCFS62bjPwugJrK142pUuXffm5GCRHn3eq LtI6qiI90GRxvQMB6Y7huX7L8gPAZ8KIYl3eeJN51+3TVgCDod6YDgCnyEdyx6NWAV g/2GI/3tqwDWWPUskI+61MgVlLe552Trk1fnHD9Xhzp5QEqrp97iXZEScLHqcGdCqe ApIYm0cmb4ktA== Received: by mail-ot1-f47.google.com with SMTP id 46e09a7af769-6c49f781855so3040053a34.3; Mon, 09 Oct 2023 05:34:47 -0700 (PDT) X-Gm-Message-State: AOJu0YzERQ6pbqFvy6DfjKmcvAYSoDFrPtQoHMJqVKZvGnZBHQ/4ANfc Bx86BIeUlVI58Tix7+ZSs1AgqTif/rcybz1RT5U= X-Received: by 2002:a05:6870:a688:b0:1c8:b715:6c81 with SMTP id i8-20020a056870a68800b001c8b7156c81mr17805871oam.55.1696854887278; Mon, 09 Oct 2023 05:34:47 -0700 (PDT) MIME-Version: 1.0 References: <20231005150728.3429-1-msuchanek@suse.de> <20231009085208.GT6241@kitsune.suse.cz> In-Reply-To: <20231009085208.GT6241@kitsune.suse.cz> From: Masahiro Yamada Date: Mon, 9 Oct 2023 21:34:10 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH rebased] kbuild: rpm-pkg: Fix build with non-default MODLIB To: =?UTF-8?Q?Michal_Such=C3=A1nek?= Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolas Schier , linux-modules@vger.kernel.org, Takashi Iwai , Lucas De Marchi , =?UTF-8?Q?Michal_Koutn=C3=BD?= , Jiri Slaby , Jan Engelhardt , Nathan Chancellor , Nick Desaulniers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 09 Oct 2023 05:35:04 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 9, 2023 at 5:52=E2=80=AFPM Michal Such=C3=A1nek wrote: > > Hello, > > On Mon, Oct 09, 2023 at 05:31:02PM +0900, Masahiro Yamada wrote: > > On Fri, Oct 6, 2023 at 12:49=E2=80=AFAM Michal Suchanek wrote: > > > > > > The default MODLIB value is composed of two variables and the hardcod= ed > > > string '/lib/modules/'. > > > > > > MODLIB =3D $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE) > > > > > > Defining this middle part as a variable was rejected on the basis tha= t > > > users can pass the whole MODLIB to make, such as > > > > > > In other words, do you want to say > > > > "If defining this middle part as a variable had been accepted, > > this patch would have been unneeded." ? > > If it were accepted I would not have to guess what the middle part is, > and could use the variable that unambiguosly defines it instead. How? scripts/package/kernel.spec hardcodes 'lib/modules' in a couple of places. I am asking how to derive the module path. --=20 Best Regards Masahiro Yamada