Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2315817ybi; Thu, 20 Jun 2019 12:53:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPzVv4fdzIbUqJs5Cq7gmGUgvgbsKL9rDlE6v17unG/OTDpWsNg344BT/Ijb4o4zBoQ2zh X-Received: by 2002:a63:7ce:: with SMTP id 197mr7100869pgh.320.1561060436141; Thu, 20 Jun 2019 12:53:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561060436; cv=none; d=google.com; s=arc-20160816; b=lsNDFzw8nDKJey+ToG0NXsmkjDcZWh95qXa/XwsCP6JiJyGzNiRk6WGPYcsIMyovoL CDvym+hJXeWGxPF+NMSj0g/1RBBBywsZXtF3CHnYUrcDqr6l5QpLTWcJSHVwpdBHryeR HTA9RwJSfve7Lrk9ak9H6mxjTjwqHtT3JY7jXGqGGiqULG1ezxjvexjT0J/mxmB/tr2O O6lAcky6yhMbOw5sDSZM3RERnbAyVy3ZoLnHr3ueUKOquwFi096on1cuvY0uOqsJHnSU uZOc1rUCBnDxwUHgAZ+j6crtf/ojbCbQHFflVsCRJq/hx4ocIw9nIFJzTEZfpTdol1Yj gSzQ== 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; bh=SZglmqh0J7zb7ea7Ifbgw3a2GaX0kfafkFIrEiNlS4k=; b=tFp+FgBj/ST/xS1RfjnQEM49pknS0d5EkGmsTnTRJro7NDzdMlENL1beqVXcc990QN IpiVpl279novbauj5745DcqsonskOJO8LnrbZ97c4ZhnBFj8hYHSbjx13W1UEomchksd czxj1Iz1jCFrnNbznbkBHjPaKX6bcttSiWUJ+EK0WNsfA9svlh2H4a8KEevB573cI4iD fn145N3+TiHABgWLIRO/jOVE+/FEtPbFC8FQNmHeRpMaW2NVaQFEkbpZRCNkRLEe8t+i gtKLrUEjKn0gOxNnDsT8yhfcmxjYPL0/cgk/w+KTG1r0NvHSydjPFcuDKRQJQjQQbQko Kq+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ewPUy5FG; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si517302plr.201.2019.06.20.12.53.41; Thu, 20 Jun 2019 12:53:56 -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=@google.com header.s=20161025 header.b=ewPUy5FG; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727054AbfFTTxe (ORCPT + 99 others); Thu, 20 Jun 2019 15:53:34 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:37585 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726178AbfFTTxe (ORCPT ); Thu, 20 Jun 2019 15:53:34 -0400 Received: by mail-pg1-f193.google.com with SMTP id 145so2120809pgh.4 for ; Thu, 20 Jun 2019 12:53:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SZglmqh0J7zb7ea7Ifbgw3a2GaX0kfafkFIrEiNlS4k=; b=ewPUy5FGan2SrNM+CLnVhnwr5Jn1zQllcqc3c+c2RzQRCv+bNiqhsDHrEx8yju9IWx /nbE3RNG6SlVD/f0IXZPrn24sESNwWbpGI1aXATjusUZPrGRM2Qz/7Pq1yaIZWeqIBsl dka43/YuN0qh1hcxrbc5oeodyFVEKblII+8sZWmyZWmiT41A7LF+5ACCVxmQOtFqhHsc BBc84JENMRffE7CTa2VT2n0vTYs/MZk8Y4D+0Qem45+VCV14yh2AlfGNSJHeJPs4yXqc ASBzAwVfyZvmqxYBhsenfsgDQwC5bMIUvX58BPaIeFcKNNVBfPx9tWxE/OYGbLFUcwGI Zh4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SZglmqh0J7zb7ea7Ifbgw3a2GaX0kfafkFIrEiNlS4k=; b=CttNmTYHpaRhnSThBtXaqZek3llWhFCfSE7TOjkvck8YQJd+FHjTr/FlMtU+zvL1fC FlajvJG53BRTPsCHsKO9YorOgNeDYdWp+LELU0UC743rwAFvPMsHP+7CzJpCEEpJEC6p i/nFwJiSNrqeHBfNfCN+3L2bL6aVbZ1+0T/wre8v3P1RadxAc3lVrMozW3VfYcbrUrmF KFNmxxyZBWqRu2ufHxFHAoxTammwbsasbudWrCrydnNFjDlmIdgl49vdedcEnxnXujIo w6OGOPsrByjOTwt0fgai5OP9b7c4DjUSN4hZ5Bt3LD47MWh/oilRJYxEb7QkRP4VAdrW GVXg== X-Gm-Message-State: APjAAAXH1WowqeFN/dGwsorTJlLtJ0ojVRMG3NuSYEq1WChomREJRgGH g/0HWenYX+FCPgPX9tWgooJL0ahpOZvquXFt0XWdHQ== X-Received: by 2002:a63:52:: with SMTP id 79mr14218912pga.381.1561060413167; Thu, 20 Jun 2019 12:53:33 -0700 (PDT) MIME-Version: 1.0 References: <20190620184523.155756-1-mka@chromium.org> In-Reply-To: <20190620184523.155756-1-mka@chromium.org> From: Nick Desaulniers Date: Thu, 20 Jun 2019 12:53:22 -0700 Message-ID: Subject: Re: [PATCH] gen_compile_command: Add support for separate KBUILD_OUTPUT directory To: Matthias Kaehlcke Cc: Tom Roeder , Masahiro Yamada , LKML , Raul E Rangel , Tom Hughes , Douglas Anderson , Ryan Case , Yu Liu , Doug Anderson 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 Thu, Jun 20, 2019 at 11:45 AM Matthias Kaehlcke wrote: > > gen_compile_command.py currently assumes that the .cmd files and the > source code live in the same directory, which is not the case when > a separate KBUILD_OUTPUT directory is used. Great point; android builds the kernel outside of the source dir (`make O=/non-source/path ...`). Thanks for the patch! BTW if CrOS is doing cool stuff with compile_commands.json; I'd like to know! Particularly; I'm curious if it's possible to generate Ninja build files from compile_commands.json; I do miss Doug's Kbuild caching patches' speedup. Acked-by: Nick Desaulniers -- Thanks, ~Nick Desaulniers