Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751724AbdHLIHF (ORCPT ); Sat, 12 Aug 2017 04:07:05 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:41637 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750771AbdHLIHD (ORCPT ); Sat, 12 Aug 2017 04:07:03 -0400 Date: Sat, 12 Aug 2017 10:06:55 +0200 From: Sam Ravnborg To: Masahiro Yamada Cc: Jim Davis , Randy Dunlap , Thomas Meyer , linux-kernel , linux-kbuild Subject: Re: make clean all broken with -j? + question regarding modpost Message-ID: <20170812080655.GA19083@ravnborg.org> References: <20170810154251.GA23083@localhost.localdomain> <1cb96165-34a1-7f8e-4211-e87af3cfb60a@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=eqGd9chX c=1 sm=1 tr=0 a=Ij76tQDYWdb01v2+RnYW5w==:117 a=Ij76tQDYWdb01v2+RnYW5w==:17 a=kj9zAlcOel0A:10 a=S9UiO9pBfJLp0xRkl28A:9 a=CjuIK1q_8ugA:10 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 543 Lines: 20 Hi Masahiro > > Kbuild does not cater to the mixture of clean targets and build targets, > but I do not know why. The details has long escaped me but in general we do not want to have a job deleting all .o files running in parallel with a job that creates .o files. So we wanted the following to work: $make mrproper defconfig make would in the standard configuration execute "mrproper" and "defconfig" in parallel which would result in a broken build. This is the background for some of the ugly hacks in the top-level makefile. Sam