Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4521819pxj; Wed, 12 May 2021 07:25:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoZvrmHB264p5BAWMSPyTaGfWaPGGUhXML7huuXpcKNRE2ZZLLc2G6PR2YUCxdWQouwYKE X-Received: by 2002:aa7:c7d3:: with SMTP id o19mr29514370eds.142.1620829524940; Wed, 12 May 2021 07:25:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620829524; cv=none; d=google.com; s=arc-20160816; b=JjKbJ6DsWhv20Gc+VqdqJ+SJQR9O8uodwRQ+TsCcOjEwi/AX32RejFe6XnGOmTwy3q ekysYOm2Qto1C2jxix8cTsDGQavrs5syiKrZg/pjzJ2CQS1ILwFa5c7t9Rqe/rr14IkK 6meblFF6ADJnxj+Nj5kjpGNmFupU410CAkYfjZrE7R240T2wmjOXY6S7d4Q8bC3BwhCR SPxZ8SohAyh54dJmLbsRw60rAQk3W1s5jInW6agiFqHuRPZeq0G5j3Y3ssT2GUnoLVKX LJT1PA6an3tbclYena4ZdRjgxSvlMPLex0n/SQG4+mdc856J9p3qj2b1UlaB4+N/zPIO Q06w== 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:in-reply-to:date:cc:to:from:subject :message-id; bh=1NWUDV+NRgR9Bcb44NeLdmJ25DAVW+RQ8/iPLYind2o=; b=DICcevVsZq+DIwuMUhRpjUj/nMyKpPn68dWcdxFTSb86C0dfPeDn3fDTJbVod3DrRi qROpN4cfUMYESogezG6V6Dw9Pa53ouvKDG6VLEFyZSpPdbSb3BjqLT3i1M7+CYlEZSaq Bd6dXpI8qWHUf8G7fEvODeKtRrYxP/tp0X4I/76nShZFCiVHsPiyDm/wBNhztVIJze+w gc41XOBGNu4OlwOtc0Q+V8ODFGVLcI7RzNZsV6Ar5iH/S9BJR3NSSnAi4i1Dn/53z4sb owe0AFiekdEvjVavswKMP9zG/W+G5t+IK7Mgud6GjbA1+9MdXHrW2hqepHhPuV9HNGW5 auKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z15si19426643edx.253.2021.05.12.07.25.00; Wed, 12 May 2021 07:25:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231166AbhELOZB (ORCPT + 99 others); Wed, 12 May 2021 10:25:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230452AbhELOY6 (ORCPT ); Wed, 12 May 2021 10:24:58 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 105B3C061574; Wed, 12 May 2021 07:23:50 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1lgpm7-007zO9-7d; Wed, 12 May 2021 16:23:47 +0200 Message-ID: <10cc8522b27a051e6a9c3e158a4c4b6414fd04a0.camel@sipsolutions.net> Subject: Re: [PATCH 6/9] kbuild: refactor scripts/Makefile.modinst From: Johannes Berg To: Masahiro Yamada , linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Michal Marek Date: Wed, 12 May 2021 16:23:46 +0200 In-Reply-To: <20210331133811.3221540-6-masahiroy@kernel.org> References: <20210331133811.3221540-1-masahiroy@kernel.org> <20210331133811.3221540-6-masahiroy@kernel.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, So I'm not *entirely* sure if this caused it, but I noticed that doing make -C linux M=/path/to/extmod/ modules_install stopped working. This is because here: > > -extmod_prefix = $(if $(KBUILD_EXTMOD),$(KBUILD_EXTMOD)/) > +export extmod_prefix = $(if $(KBUILD_EXTMOD),$(KBUILD_EXTMOD)/) (as before, of course) another trailing / is added to the M= argument, and then > +modules := $(patsubst $(extmod_prefix)%, $(dst)/%, $(modules)) this patsubst turns out to do nothing. So $(modules) contains the original paths where the modules were compiled, and consequently nothing happens. Specifying make -C linux M=/path/to/extmod modules_install actually works. Obviously I can work around it, but it hardly seems intentional? Thanks, johannes