Received: by 10.223.185.116 with SMTP id b49csp5711978wrg; Wed, 7 Mar 2018 17:07:15 -0800 (PST) X-Google-Smtp-Source: AG47ELtwZ+VWinmq6FBGko2aOgOtyxQlGJEsrEpoTYkbC6Uziu3SrQq9R6Xum5mNthvkd1PQKNq5 X-Received: by 2002:a17:902:788e:: with SMTP id q14-v6mr22387857pll.396.1520471235152; Wed, 07 Mar 2018 17:07:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520471235; cv=none; d=google.com; s=arc-20160816; b=Gft+J2Pek+VN6T1ZYk0/GJe7rLIvdA1GdBNHHeUw+b+hwCVLDqUEVdhNz3Ua2DQftF CtF+4ymRdjDs52jyKYPmsJldD1n1J7WRTb6JJ5tJRYHXg3bV16Natgw94NvCeLKyIi2u g4dfDprtI7bY0TUCVRPi7QHRxms1Q3STcyQw3D+0f1qinuyw9JcdSzTJTsJMWTbxZkDQ 8ntHwEkpfQriLKMX9yoqOrxlDosSL9kQFfxmAG4kPwe0eH2a2dxEPwFq3ydfp2oYuNqK EA9mLQJC7ubjyw0qXjifF9lcGLgGbH4ybQjE3n5FM1SuapyiSvbOt94LJuvkfKeTHqmv wbEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=1ItLNCZ3ARXbpR/5wiSfCQRkwXP5+qyB19iRhxdZH7w=; b=r7o+F5yuTEz43/esh5xA6aVgRVAy7f6EPLXf4VG3t1ngzKeiWR6S45P64TheqGdVNS KxCOUjadWa5xDlsY3GiJFiEh1bzZpS/Lin0pR1468l2d4mzSsN94u4UuwVc1gq/W+2Vr 9K0w1gRZvCWOhawmczctoG23qZSG3IM0ccX8Pxog4CdwoIxildaacquLpPx3NhmapCp9 sBR4temPInHdYiYthZmUGVfof8Os2ZfQECudm2JOAvhxzX26W1l+WjXlflQM99stMbsq 9Jbn8MEvBEAomEPv4KNK3vrcoazkpAlubKY/6iJo0W9jgoa6v0g0HVykgptvejm5xsJb oM0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=JKUi8lYo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9-v6si13754727pll.326.2018.03.07.17.07.01; Wed, 07 Mar 2018 17:07:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=JKUi8lYo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755119AbeCHBGB (ORCPT + 99 others); Wed, 7 Mar 2018 20:06:01 -0500 Received: from conuserg-10.nifty.com ([210.131.2.77]:60401 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755041AbeCHBF4 (ORCPT ); Wed, 7 Mar 2018 20:05:56 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id w28156G8018694; Thu, 8 Mar 2018 10:05:09 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com w28156G8018694 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1520471109; bh=1ItLNCZ3ARXbpR/5wiSfCQRkwXP5+qyB19iRhxdZH7w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JKUi8lYooAwfq3ArXmvAPBMR/68pagsvOApw8mTJX3zMYB5ZD1UK4e1TrlLJ04l2f 4G1YhI9aRKek6saG5neAIDdctfCLzGcTdLEScGNh5B1xe58p+r7A2yETxy1zgJf/wD 0RIXG259n8sM5Nc+kXCvddI4kbPch44x62oPuTceBaDKlqS2L+eDWiEwOohpLRp9Nl GG0NedPl7Hk+pNQ2lm3QcjQ9et4TpnfVgFpa81mN+HP1q4vwTZgxAgIBASmqJEpLAt W/4MHS6dbkWGpRvdDM8oCHX1cv03yPkRC4Q8R8kmdFON5RT5PIB+lSkViRcf/fAJUK e/Xtl27rus+ew== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Michal Marek , Cao jin , Govind Singh , Kalle Valo , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 3/5] kbuild: fix modname for composite modules Date: Thu, 8 Mar 2018 10:05:01 +0900 Message-Id: <1520471103-10089-4-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520471103-10089-1-git-send-email-yamada.masahiro@socionext.com> References: <1520471103-10089-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Cao jin Commit cf4f21938e13 ("kbuild: Allow to specify composite modules with modname-m") added modname-m support, but missed to update the corresponding multi-objs-m & modname-multi definition. Signed-off-by: Cao jin Signed-off-by: Masahiro Yamada --- I rebased the previous version: https://patchwork.kernel.org/patch/10055583/ scripts/Makefile.lib | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index a1fbd6a..9217d40 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -50,7 +50,7 @@ single-used-m := $(sort $(filter-out $(multi-used-m),$(obj-m))) # Build list of the parts of our composite objects, our composite # objects depend on those (obviously) multi-objs-y := $(foreach m, $(multi-used-y), $($(m:.o=-objs)) $($(m:.o=-y))) -multi-objs-m := $(foreach m, $(multi-used-m), $($(m:.o=-objs)) $($(m:.o=-y))) +multi-objs-m := $(foreach m, $(multi-used-m), $($(m:.o=-objs)) $($(m:.o=-y)) $($(m:.o=-m))) # $(subdir-obj-y) is the list of objects in $(obj-y) which uses dir/ to # tell kbuild to descend @@ -176,7 +176,7 @@ dtc_cpp_flags = -Wp,-MD,$(depfile).pre.tmp -nostdinc \ # If the object belongs to two or more multi-part objects, all of them are # concatenated with a colon separator. modname-multi = $(subst $(space),:,$(sort $(foreach m,$(multi-used),\ - $(if $(filter $*.o, $($(m:.o=-objs)) $($(m:.o=-y))),$(m:.o=))))) + $(if $(filter $*.o, $($(m:.o=-objs)) $($(m:.o=-y)) $($(m:.o=-m))),$(m:.o=))))) # Useful for describing the dependency of composite objects # Usage: -- 2.7.4