From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932305AbcHOWqn (ORCPT ); Mon, 15 Aug 2016 18:46:43 -0400 Received: from smtprelay0205.hostedemail.com ([216.40.44.205]:47220 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752258AbcHOWqm (ORCPT ); Mon, 15 Aug 2016 18:46:42 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::,RULES_HIT:41:355:379:541:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3870:3871:3872:3873:3874:4321:5007:10004:10400:10848:11232:11658:11783:11914:12517:12519:12663:12740:13069:13071:13073:13161:13229:13311:13357:13439:13894:14180:14659:14721:21060:21080:21324:21326:21451:30054:30064:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: sun55_1cbef0c2a9c1a X-Filterd-Recvd-Size: 2133 Message-ID: <1471301196.4075.133.camel@perches.com> Subject: Re: Building a subdirectory ignores parent subdir-ccflags From: Joe Perches To: Michal Marek , linux-kbuild Cc: Greg Kroah-Hartman , "Yann E. MORIN" , Oleg Drokin , Andreas Dilger , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, lustre-devel@lists.lustre.org Date: Mon, 15 Aug 2016 15:46:36 -0700 In-Reply-To: <57B23D16.8060405@suse.com> References: <5f9f49c1e0caeb3b9ee0656b6d922dbaf52a15b7.1471289489.git.joe@perches.com> <20160815210420.GA30864@kroah.com> <1471295658.4075.117.camel@perches.com> <1471296557.4075.127.camel@perches.com> <57B23D16.8060405@suse.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.2-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2016-08-16 at 00:07 +0200, Michal Marek wrote: Hi Michal. > > Perhaps making a specific directory should also walk up > > any parent directory Makefiles looking for subdir flags. > > > > Is that unreasonable?  Any suggestions? > I suggest to do make drivers/staging/lustre/. If building the lustre > subdirectories is going to be a common use case, then you can propagate > the subdir-ccflags-y assignment down to the individual Makefiles. I don't have a problem with that. Others might though for whatever reason. There are a couple other places in the tree that also use subdir-ccflags where the results of making a subdirectory would either fail or have unexpected results. Does it matter?  Not much, but it could be nicer if it's possible for parent Makefile paths to be ascended. I'm not much of a Makefile person, but perhaps you have some clues/tips/suggestions for implementation?