Received: by 2002:a17:90a:2044:0:0:0:0 with SMTP id n62csp534331pjc; Mon, 20 May 2019 11:23:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzgC7yNRxVxY6L3YdB9KtXbT9MZKS0UHVJo/GPLSLAglmeLWNPH5iE0Nud2mvdiN43zcu1A X-Received: by 2002:a63:8149:: with SMTP id t70mr78053809pgd.134.1558376628538; Mon, 20 May 2019 11:23:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558376628; cv=none; d=google.com; s=arc-20160816; b=KdgV8P+xslXGmcgi7NJ3CNZav3HMnN+3VHw2bPM0SbB6lV0RSJ+0CMFnX67UmOp6eb K3QeFLzczm6YgpqDAjUjU0CumcqH/dnEF1IoACi6Yoc19HDYc02t9PnEuiEumnJVeIDD 3S7laW4C4V6O5wpaGZ5yxASMP0WQc2jVKsbr4xPsZSoqw4yiPme5LK/gQAa+yDJcREFV uyjk0Uz+rxtNQT2qh12xnkZdA1X55gLBpE/4FZHjNhMcQLzQvwZlibPOlhtbt7biMLzJ eJRgMWS7NMXrdeMrj6mmC3HkOAAmPMMk4MCBnaBeWxbAMFa3TnmfmBmi08XwHNv84Way 31ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hgx+arX6rRPQzOpYucShF/vBFgSzhNsXL52fLiKiQ7Y=; b=lPZMJUZima9R744dW/vBSmuY1PUzKm14RwVztz143T7SfpRWO/vbzCyA82osnYltv8 fQpRbADBaZgNhXgSe8NyPgMuRYaf6G2h6LxVwBiKgmKKk0Z6OZtfm0LXtOBFNcdrUua9 kwwOBXdfvBVZM4Pw7yQuQBwfAJIIG6fP46yC/eyqOEyU7mS2UDc+yAH/d0qlL07XBUGj +PZ2Tk+EsJQjg9PwZHY536pFzLFj8eF+kkVFTEQrFoOYcrU4vJYL0suTA2Cg72DcDKHw TFTn2pckSQVWavKxnvIBPUcWzTsyMRMZb51ndqAuNI0wG/kgtcxg+RfLRikFuHU35lJh vDNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="pLnYbJ/k"; 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 n6si13620289pgg.213.2019.05.20.11.23.33; Mon, 20 May 2019 11:23:48 -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=@kernel.org header.s=default header.b="pLnYbJ/k"; 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 S1726998AbfETR4q (ORCPT + 99 others); Mon, 20 May 2019 13:56:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:52098 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726820AbfETR4p (ORCPT ); Mon, 20 May 2019 13:56:45 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2C16F206B6; Mon, 20 May 2019 17:56:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558375004; bh=vcJUwKueu3F2uwVm18g8UcTZp0tXVBXVM4e5zvCz3Dc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pLnYbJ/k9saVg+oNGkcODh4Aicjj8nC9e8UFtYjKy5RJlYtIHZ7VzozwEMhcQ9WOR OHffZAJ5XVEYyChLiCCFBddKrw7q9vBYGYnKZzQEjTnhw1OoBCCXY/nsLTo0G/UdH8 9NBihMUROvwJP0JSi0ZueO7/fuL//+L582whwNII= Date: Mon, 20 May 2019 19:56:41 +0200 From: Greg KH To: Dan Rue Cc: linux-kselftest@vger.kernel.org, Masahiro Yamada , Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] kbuild: teach kselftest-merge to find nested config files Message-ID: <20190520175641.GA14339@kroah.com> References: <20190520151614.19188-1-dan.rue@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190520151614.19188-1-dan.rue@linaro.org> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 20, 2019 at 10:16:14AM -0500, Dan Rue wrote: > Current implementation of kselftest-merge only finds config files that > are one level deep using `$(srctree)/tools/testing/selftests/*/config`. > > Often, config files are added in nested directories, and do not get > picked up by kselftest-merge. > > Use `find` to catch all config files under > `$(srctree)/tools/testing/selftests` instead. > > Signed-off-by: Dan Rue > --- > Makefile | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) To be more specific here, the binderfs test is not catching the config entry, so it would be nice to get this into the stable trees as well :) > diff --git a/Makefile b/Makefile > index a45f84a7e811..e99e7f9484af 100644 > --- a/Makefile > +++ b/Makefile > @@ -1228,9 +1228,8 @@ kselftest-clean: > PHONY += kselftest-merge > kselftest-merge: > $(if $(wildcard $(objtree)/.config),, $(error No .config exists, config your kernel first!)) > - $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh \ > - -m $(objtree)/.config \ > - $(srctree)/tools/testing/selftests/*/config > + $(Q)find $(srctree)/tools/testing/selftests -name config | \ > + xargs $(srctree)/scripts/kconfig/merge_config.sh -m $(objtree)/.config > +$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig > > # --------------------------------------------------------------------------- is find run with $(Q)? It isn't with other instances in the Makefile. thanks, greg k-h