From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f181.google.com ([209.85.128.181]:39977 "EHLO mail-wr0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751274AbeCMGQH (ORCPT ); Tue, 13 Mar 2018 02:16:07 -0400 Date: Tue, 13 Mar 2018 07:16:03 +0100 From: Ingo Molnar Subject: Re: [PATCH v3 2/2] kbuild: Don't mess with the .cache.mk when root Message-ID: <20180313061603.jsgiumet23uqi6hl@gmail.com> References: <20180313061109.72629-1-dianders@chromium.org> <20180313061109.72629-3-dianders@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180313061109.72629-3-dianders@chromium.org> Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Douglas Anderson Cc: Masahiro Yamada , malat@debian.org, dave.hansen@intel.com, yang.s@alibaba-inc.com, linux@roeck-us.net, Matthias Kaehlcke , Cao jin , Arnd Bergmann , Mark Charlebois , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Michal Marek , Nick Desaulniers , Linus Torvalds , Peter Zijlstra , Thomas Gleixner * Douglas Anderson wrote: > +# Don't create Makefile caches if running as root since they can't be deleted > +# easily; in the real world we might be root when doing "sudo make install" > +ifeq ($(shell id -u),0) > +export KBUILD_NOCACHE := 1 > +endif Please don't do this - many prominent kernel developers build their kernels as root - this makes the build slower for them, and also bifurcates testing. Thanks, Ingo