Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3340287imj; Tue, 19 Feb 2019 01:34:59 -0800 (PST) X-Google-Smtp-Source: AHgI3IYczbq+eBCDYxNL0fXtQYVrA7Ww7APbvO7AwkijZeRSWhSRY5SgTXV2GlhphlsJF3Qu7Z8n X-Received: by 2002:a17:902:822:: with SMTP id 31mr28114825plk.290.1550568899184; Tue, 19 Feb 2019 01:34:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550568899; cv=none; d=google.com; s=arc-20160816; b=rdJ29ag121ujWFWir+3iXsKcxQndqStXnJQKSUZMKFVIV8GRJrdqKN8hdB6tp542dZ hueQNip/+nZqfw7xfCuS6VnQV7y+hHiQ6PsyfQRouh5BfaWLvWQiQ49n7J63Fv/y514O 0+D6e5L+jWvpCk0UmdvQddvifLmwBoepBEYBxRkvjRIHtrbpvQuT6q10QpU41rNlkKb4 2kpZlpq7oVN7lU/LEQislOQtj1sEMiFI+6VBy+C9C5LeHM23nGhiepD3I9lUqTUZV7/b 32Z7zwakwvgnup1551flo7BctVLclz3In7Jll09pIwNh/VryNyr5YMNkdfDV1aUozSf1 ifrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=HvvF60VcQISFTj9szcbmZ1V43ms0dB+V6d8yWP+KhJc=; b=DIeHZu8pLtK2eqAc61cjt7mrPHYsG64o+Ng9IYE9lB3Tx+njxyYmSEUlLNm/bzyHAC dMhOKDfJD63DSpiMilVqiBapYhFpuZlLMMQznVO0hcwcduvIUmeB+jQUavTc/VTNRMpm WLRaEXOuPk/rIedJiLuWK2eZ333GgtQnUPbxTDTT/rLa7YdHfL0PvKwOiU24nUsRz/GF eo/d1ot2QRFkM5IZoEL5iGsiuiBtDtbz03ffkTbmg4Fmqdofd+1LYO0w58O0YAYE77kv Pwhqnd7mz5CybWMpC20Ts5evmIq6rIxQuMyUVqxnasxhsYojVJdJyLBk3XP69x+JGe6Z 93Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=woJkBY3g; 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 u5si15212222pgo.229.2019.02.19.01.34.43; Tue, 19 Feb 2019 01:34:59 -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=woJkBY3g; 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 S1728232AbfBSJd3 (ORCPT + 99 others); Tue, 19 Feb 2019 04:33:29 -0500 Received: from conuserg-09.nifty.com ([210.131.2.76]:52743 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728116AbfBSJd2 (ORCPT ); Tue, 19 Feb 2019 04:33:28 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id x1J9XBkK002572; Tue, 19 Feb 2019 18:33:11 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com x1J9XBkK002572 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1550568791; bh=HvvF60VcQISFTj9szcbmZ1V43ms0dB+V6d8yWP+KhJc=; h=From:To:Cc:Subject:Date:From; b=woJkBY3gNgTmTZVBCNIZlOa4za9glgTvi90k465n5OoQRqtYYZMH7V4hk+lKWOwbz /ilk9kK4N5n9hfEaPxfagugnF0eDtDEHpgdxGwUBD7HPedVNbrbZRAsV9hhAyUN+FR MFAznGGAtIc5TxDPkQ2xGgcGTP1yethh1lkLqo+lU4EjYymavxQb78KcHzA6Q92+aZ qzynSDziCPKAS27c+U0egQR6aibPiloCaBNVuOtIkT5VflqbGw4ZZgAh+jAWA8+aux IOkl3nNNaqx5GY8pgEtQum3EC/TPCdVr/eJnCrVYWP5mY8Yqu0zFiyT6/BwVdlR9R8 Ts0S4iXkICFtg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Kieran Bingham , Masahiro Yamada , Michal Marek , Heiko Carstens , linux-kernel@vger.kernel.org Subject: [PATCH 1/5] scripts/gdb: delay generation of gdb constants.py Date: Tue, 19 Feb 2019 18:33:02 +0900 Message-Id: <1550568787-18710-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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