Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1741521img; Wed, 27 Feb 2019 04:44:42 -0800 (PST) X-Google-Smtp-Source: AHgI3IYQsmcHVDcjlnXRkG6UslfhOlktQeQ/Q0+9MvB87coOUsSTTIV3fDyZodFTFZlfOg0bO2VX X-Received: by 2002:a17:902:59c3:: with SMTP id d3mr2007010plj.214.1551271482738; Wed, 27 Feb 2019 04:44:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551271482; cv=none; d=google.com; s=arc-20160816; b=eNdsKCeuMVW5q4FRkCpalc6OaBvn//udojxW9A5BBrRGJxnpYMygDh2o1s8FJc6Nx+ 31ft/hpfxsbpa4WetBxrWAVSjBLR92Q5aSEvRUEWSOCobEoTBPJUzqcRQEEhhB6bNVqd oCVrz3VnJD2luI9O8Cr/ztSJI4XNoLVimjKyNcOMoZZ4VSkLE7KVQSvhDYULl0bJ9Syy BpYU3tElp7486veMPI8IO+wUPtriLTHiLuGaMRYn0IyecVBwJvFl/M50IXNk6r6Moear 07L7tezTKIaK5mMFx6JUbQkiwmQNQ+6vbC28gLMirl1az1ybMZ6pMYQbCdZ35V9ZB4nB GQqQ== 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:dkim-filter; bh=9UjZFunYrDFLNzw/Ouh2o3kM0iTmdbIx0gSMyILnosA=; b=WsFQZJwB2Tfap6SGAFFAAbj/ZRSvsxm9otmtOJUQo2SE7QaT0OCUBpKeRmsmVf/nm/ ceQIHnh8i2vShpNKpKgXlRfOBraPZUcEjZPGHzn+8VkDYF07ziNJeT+5SuVwMbz5h0dz hn7ejhyyZroNowF3FUYBRcAuIsZ7aNMVvIxGPJfl2TrHROWBHSBSke1a8np6LUa8pCkv IGL/XXGw4GliOjU5/PiKvYQ3JaCPZOk31grPaYX0g8+heAYLzYo3NDISG8PUivbcm97m cdLwvqvUXzjdqyZ+bdZA4G95t910SMFM2ChfPkbvjtyP54FpHom5SXCibry6OYbyOpUd o3XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=JbWi+20J; 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 h85si16117772pfj.88.2019.02.27.04.44.27; Wed, 27 Feb 2019 04:44:42 -0800 (PST) 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=@nifty.com header.s=dec2015msa header.b=JbWi+20J; 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 S1730157AbfB0MnL (ORCPT + 99 others); Wed, 27 Feb 2019 07:43:11 -0500 Received: from conssluserg-04.nifty.com ([210.131.2.83]:36099 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727967AbfB0MnK (ORCPT ); Wed, 27 Feb 2019 07:43:10 -0500 Received: from mail-ua1-f47.google.com (mail-ua1-f47.google.com [209.85.222.47]) (authenticated) by conssluserg-04.nifty.com with ESMTP id x1RCgr78030165; Wed, 27 Feb 2019 21:42:53 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com x1RCgr78030165 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1551271374; bh=9UjZFunYrDFLNzw/Ouh2o3kM0iTmdbIx0gSMyILnosA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=JbWi+20Jt8Img0eIsMcX7Fn/1biZLHCcIt4Pj4eCj5mX8l+GpemC0sTO+yEWTbq7f vcoZ2lLTm0zb8lq/JPHnnJ2M4I16AuIqet/GlPVy2gpyfJDDdl4RGrrjP6dr8E9/y7 T5NOiSh0CllDXgaLbWbcQ2ZrHh0MsQQxxvi2oh58vfuL3kx9XrkTrjGGXBPOlknzha EHSAEljgSeYheEq1xPFxVJPoYHsi9hY9gKzNWD/bGEHpvbFrsbzmEZeSL8Is/7AjCL NCoBios0kLZGSdFyUtE97WSVLceKLHROeNn7yknYIKFK6Wa1rZ/MBu2tbmiV17wzm4 vhj3DbExDWBoQ== X-Nifty-SrcIP: [209.85.222.47] Received: by mail-ua1-f47.google.com with SMTP id j8so15118043uae.13; Wed, 27 Feb 2019 04:42:53 -0800 (PST) X-Gm-Message-State: AHQUAuaRm/j6d633nDcAN6hvxWW3274/m6uYyGAy5nbKrAlcfTbMvESE e76uJvSH/h+R+XmUAfVtHLqrg5U8qrcKW6sIOVc= X-Received: by 2002:ab0:748a:: with SMTP id n10mr1962685uap.89.1551271372722; Wed, 27 Feb 2019 04:42:52 -0800 (PST) MIME-Version: 1.0 References: <1550568787-18710-1-git-send-email-yamada.masahiro@socionext.com> In-Reply-To: <1550568787-18710-1-git-send-email-yamada.masahiro@socionext.com> From: Masahiro Yamada Date: Wed, 27 Feb 2019 21:42:16 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/5] scripts/gdb: delay generation of gdb constants.py To: Linux Kbuild mailing list Cc: Kieran Bingham , Michal Marek , Heiko Carstens , Linux Kernel Mailing List 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 Tue, Feb 19, 2019 at 6:34 PM Masahiro Yamada wrote: > > scripts/gdb/linux/constants.py is never used in the kernel build > process. There is no good reason to create it so early. > > Get it out of the 'prepare' stage. > > Signed-off-by: Masahiro Yamada > --- Added Kieran's Reviewed-by, and applied to linux-kbuild. > > Kbuild | 10 ---------- > Makefile | 11 +++++++++++ > 2 files changed, 11 insertions(+), 10 deletions(-) > > diff --git a/Kbuild b/Kbuild > index 65db5be..4cebcc7 100644 > --- a/Kbuild > +++ b/Kbuild > @@ -6,7 +6,6 @@ > # 2) Generate timeconst.h > # 3) Generate asm-offsets.h (may need bounds.h and timeconst.h) > # 4) Check for missing system calls > -# 5) Generate constants.py (may need bounds.h) > > ##### > # 1) Generate bounds.h > @@ -58,14 +57,5 @@ quiet_cmd_syscalls = CALL $< > missing-syscalls: scripts/checksyscalls.sh $(offsets-file) FORCE > $(call cmd,syscalls) > > -##### > -# 5) Generate constants for Python GDB integration > -# > - > -extra-$(CONFIG_GDB_SCRIPTS) += build_constants_py > - > -build_constants_py: $(timeconst-file) $(bounds-file) > - @$(MAKE) $(build)=scripts/gdb/linux $@ > - > # Keep these three files during make clean > no-clean-files := $(bounds-file) $(offsets-file) $(timeconst-file) > diff --git a/Makefile b/Makefile > index 88db36b..26dbcb7 100644 > --- a/Makefile > +++ b/Makefile > @@ -1513,6 +1513,17 @@ PHONY += $(DOC_TARGETS) > $(DOC_TARGETS): scripts_basic FORCE > $(Q)$(MAKE) $(build)=Documentation $@ > > +# Misc > +# --------------------------------------------------------------------------- > + > +PHONY += scripts_gdb > +scripts_gdb: prepare > + $(Q)$(MAKE) $(build)=scripts/gdb/linux build_constants_py > + > +ifdef CONFIG_GDB_SCRIPTS > +all: scripts_gdb > +endif > + > else # KBUILD_EXTMOD > > ### > -- > 2.7.4 > -- Best Regards Masahiro Yamada