Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11163445ybi; Thu, 25 Jul 2019 11:05:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzUwJu3uk1/ubeMskBi3wUX9gLIugCe1kFbpRkMqaHZ/jEXvmlkNaXoDDsOGNHCUKxR0w8 X-Received: by 2002:a62:ae02:: with SMTP id q2mr17487403pff.1.1564077926921; Thu, 25 Jul 2019 11:05:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564077926; cv=none; d=google.com; s=arc-20160816; b=djKMj+U9yNSSuEFybIukMatxoEIGNAfG0v6Fxm/PXp6j5iTHtiR6q3P5smYaTMlMe6 uFatxgtyyf3G5fUtvvRN6cLV42Mhdm3kPIZqdofpmN09hhPKJ7+C5DUyC4/Ht00HA4w9 iix2AtBmBorNzQ6gqGn6iRUFTOpUjTICCa3U5lw5mITphm5I61X4zPMZ7cbtpeHXluja Xb7OkO0xbHzrIrSk7uv6OCaBLeG+ln7xtmSMlVkk1k6+eb76m9A+SyvMCidG8t0Shzpf SbuGI6NZa6tonhx3/phcUsRoBhXd1KB0BOJ3eM9ap8a/49A8SiqHY4T0AmK+7nDszdz2 O6DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=1rEyTd5oqXxAGH3Gk6fAUuzRFhgVIwtH73KGZ2HINZ0=; b=JorHBthFPDHjbLXzWhBpxsxy5rDPfuo1Atz7y4kpvQxAnMJcBJAyzpNnhcruBAKaN0 VlIBNuQV98eVWN4NH2oOzrHb0rgoHR7g6AzMYeFhqXooXeqb5Z84SDw7dGmwYiKTxc56 GvCfXgGQdM/t7jIp3wXX91dEYU8cAI/KLiVMYnAoO0bMWdLLR4x1j6ceh8aCXo+sB7bQ Rp5cOvECiSPg19f4yHaeIzXohTokivj/yc+SVTc0UutiV1rbkbfIMgFK0l+zEsrIEVDP PvhrJlraxV4ihsjzJzv+X5fx0Z4watgBDRNznkJ+r1M4iM90sdKgJMJ4+hiyYF6yM4sr iI8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=RYNzH4ZU; 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 t19si15598042pjr.68.2019.07.25.11.05.11; Thu, 25 Jul 2019 11:05:26 -0700 (PDT) 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=RYNzH4ZU; 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 S1728345AbfGYPt6 (ORCPT + 99 others); Thu, 25 Jul 2019 11:49:58 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:57721 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726692AbfGYPt6 (ORCPT ); Thu, 25 Jul 2019 11:49:58 -0400 Received: from mail-vk1-f178.google.com (mail-vk1-f178.google.com [209.85.221.178]) (authenticated) by conssluserg-03.nifty.com with ESMTP id x6PFnrR6022128; Fri, 26 Jul 2019 00:49:53 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com x6PFnrR6022128 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1564069794; bh=1rEyTd5oqXxAGH3Gk6fAUuzRFhgVIwtH73KGZ2HINZ0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=RYNzH4ZUR32A0F+s3bhgEVfZZRkB0pyvVvGCP+CdbYYRbVyzwBUIUWRH+wmDvFrhi oRrgfHJN5MeyKDQ1YrwSdiVV4QPu+415TC9edDvYDjX6u4rCGOwjq3wc08ZZ92wDkZ Kcl171Y0cMUBpr2cuIHdF7dk1pFw/sbkAiU2hJxcw4XJX58s5Gq856Cs6D3d61J73h 1n3OmK+wnSc57/YxVsyJ0a222tOOKuPI4T9ivtq5tnGwmDWEAGGlpeA+qbLyRNTZWl /zSJpBBq6fSeNEhimQ0mmN7JcLhNHpDdhdL1JYFFjVI7t/rGXMcy2pbjYEcaA/Xp8d IcWm1zp3flmOA== X-Nifty-SrcIP: [209.85.221.178] Received: by mail-vk1-f178.google.com with SMTP id w186so1737510vkd.11; Thu, 25 Jul 2019 08:49:53 -0700 (PDT) X-Gm-Message-State: APjAAAXTTD0WazMuUX6vjGiXHJCQBlWBc9jVTQT8xVCRw7bP8L2qPR8E RZKdO2UjlXo6yGe6IO2CPgRr8Iu5xCUzZSAO1zg= X-Received: by 2002:a1f:b0b:: with SMTP id 11mr34465306vkl.64.1564069792455; Thu, 25 Jul 2019 08:49:52 -0700 (PDT) MIME-Version: 1.0 References: <20190717061800.10018-1-yamada.masahiro@socionext.com> <20190717061800.10018-8-yamada.masahiro@socionext.com> <230d2ca1-19cd-b60e-1b1b-6d7413eea9e2@siemens.com> <0ee802e1-5563-3615-d08f-c936d4e96ebc@siemens.com> In-Reply-To: <0ee802e1-5563-3615-d08f-c936d4e96ebc@siemens.com> From: Masahiro Yamada Date: Fri, 26 Jul 2019 00:49:16 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 07/12] kbuild: modpost: read modules.order instead of $(MODVERDIR)/*.mod To: Jan Kiszka Cc: Linux Kbuild mailing list , Joe Lawrence , Michal Marek , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 26, 2019 at 12:27 AM Jan Kiszka wrote: > > On 25.07.19 17:18, Masahiro Yamada wrote: > > Hi Jan, > > > > On Thu, Jul 25, 2019 at 5:39 PM Jan Kiszka wrote: > >>> > >> > >> This affects also external modules builds: I have patterns here that do > >> > >> [Makefile] > >> subdir-y := some-module > >> > >> [some-module/Makefile] > >> obj-m := some-module.o > >> > >> and since this patch, the final some-module.ko is no longer built. Am I missing > >> something in the kbuild makefiles, or is this a regression? > > > > Thanks for the report. > > Interesting. I have never imagined that Makefiles were written like that. > > > > I just wrote a fix-up, but I have not determined to apply it. > > https://patchwork.kernel.org/patch/11059033/ > > > > It is easy to fixup your Makefile, though. > > Thanks for addressing this quickly! I'm happy to adjust our code [1]. Is the > suggested pattern usable with recent stable kernels as well, say down to 4.4 at > least? Yes, should work for any kernel version. > Jan > > [1] https://github.com/siemens/jailhouse/blob/master/Kbuild#L54 Maybe, obj-m := driver/ hypervisor/ configs/ inmates/ tools/ and $(patsubst %/,$(obj)/%,$(obj-m)): $(GEN_CONFIG_MK) Not tested at all. -- Best Regards Masahiro Yamada