Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2490760rwp; Fri, 14 Jul 2023 07:02:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlHv08tsZlmoTw1BU4P0mMD3TcHX+zq52bw/uBWg+GB5KB7by/T+OCOAnMt8NZzSK8BEDUtM X-Received: by 2002:a05:6a20:3cab:b0:130:835b:e260 with SMTP id b43-20020a056a203cab00b00130835be260mr4526105pzj.52.1689343367566; Fri, 14 Jul 2023 07:02:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689343367; cv=none; d=google.com; s=arc-20160816; b=k9hcl0/Eb9K46dCVAJC5bJSG1aoNkyM+wuB/U+LKZZPwj+BAt8WBN1czqewWIyq2W5 JJC55karzYQ7hb7K7Sgk5x2jYaWswY4eTO8CE7cKK+EypM8IW+KCwT/RoFgSgxSDGARm XbXI0fkEd/HHamDx7qIVWr1a5YJU7Hu/UCz5xHxMRUryLRWk8OgwGDPEFo//miM7oxQu pOV4SMdcEJ/bR1XuOYR5yVx3ZhI9vZrwpQWaXfXhz4hH3n9d545YWOWuLhwV93lg4L0D fIQ/ldTkB4zlba11qOCh+600HYNpjPPBjm4/gcImzaCjMf34YQyRfC//yuhZXjqzdcvp HPdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=BEQnGD6ow3T9O7COqktdsnI5c0gUkHKOxQg1eBPQCEw=; fh=SQ4UHaTqW/lqR9OJcdZkwBVRtjrY5AxJde/r1amJF3E=; b=VsvQEHcy+bZ7i0dOfm2ngtvrqAwFTBAsixocgG/63gD5k44iAxT4+HaGS14cVW3sjq J/Af5gyYi5ZX47UKPJzXOVsaT1qKiEQXqHAlPMzgsOEROhJmhEf/zWjyak+usWioW3zO 03zW0q/G3p2Q94h0gdaDt5NlbkbvfW8AINR3l5IQKV1FOtKGNnFw41K/3boCZObsLrxN NQcK1VkamkRROIDlpjUylB32rwdBxrw7lDInia74Ff2mJ8niFl/hnU/M4rmVazvEpsaR oqRcLQHcmT1/enSzGFwp5Br7uas/jejmGcSZp7Xk+dNs7ef2m56Ex2P2Lr6qkPDAs2RZ wSyw== 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 k9-20020aa788c9000000b0067396db45a8si7189763pff.52.2023.07.14.07.02.34; Fri, 14 Jul 2023 07:02:47 -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 S235725AbjGNNiX (ORCPT + 99 others); Fri, 14 Jul 2023 09:38:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235219AbjGNNiW (ORCPT ); Fri, 14 Jul 2023 09:38:22 -0400 Received: from a3.inai.de (a3.inai.de [IPv6:2a01:4f8:10b:45d8::f5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2480A2D73; Fri, 14 Jul 2023 06:38:20 -0700 (PDT) Received: by a3.inai.de (Postfix, from userid 25121) id 673AC58ECE726; Fri, 14 Jul 2023 15:38:18 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by a3.inai.de (Postfix) with ESMTP id 66987619D0BB2; Fri, 14 Jul 2023 15:38:18 +0200 (CEST) Date: Fri, 14 Jul 2023 15:38:18 +0200 (CEST) From: Jan Engelhardt To: Michal Suchanek cc: 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 , Nicolas Schier , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] depmod: Handle installing modules under a prefix In-Reply-To: <20230714122111.7528-1-msuchanek@suse.de> Message-ID: References: <30d8c675-e769-e567-a81f-c1b59c66ad67@suse.com> <20230714122111.7528-1-msuchanek@suse.de> User-Agent: Alpine 2.25 (LSU 592 2021-09-18) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 14:21, Michal Suchanek wrote: >Some distributions aim at not shipping any files in / outside of usr. > >The path under which kernel modules are installed is hardcoded to /lib >which conflicts with this goal. > >+MODLIB = $(INSTALL_MOD_PATH)$(KERNEL_MODULE_PREFIX)/lib/modules/$(KERNELRELEASE) Ok, so if the problem statement is that hardcoded paths are bad, then why continue to hardcode the "/lib/modules" fragment? Just make it so that KERNEL_MODULE_PREFIX can be set to the exact string "/usr/lib/modules" and not just "/usr".