From patchwork Tue Feb 19 09:33:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 158706 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3450975jaa; Tue, 19 Feb 2019 01:33:31 -0800 (PST) X-Google-Smtp-Source: AHgI3IadB1lFpdpxReqflJA7l+4D3o6IdpCZpEjIiis+aH253jwmQ4v0JUSOPs7DtCz/nPzCyyWN X-Received: by 2002:a17:902:7006:: with SMTP id y6mr16211609plk.260.1550568811196; Tue, 19 Feb 2019 01:33:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550568811; cv=none; d=google.com; s=arc-20160816; b=tta73o8GLolXaBggqfbkWeZZp36U8torpYOX4EnoY72xrq1ckat8NWEXoCvGk9NZwy uoV9nJuqU6p9M7WQIaCitmm1dnQv77085DHtBdy9oxqL2jpcuS1Q362RlbyjRFciS0gW ov/hng7quvfS6U4TAgn9bXDJeog3wmUvenxTtEC8COku0kbMhoxyMBi6UrFfdEu+bvyh 7TSXfIqFpPNeuvIEuT+G511aD+vn4G9YtG6P5Wc3e6Avxw3Ebxp+g0vWY2UcyCSV9VXA okEA6TGL9Ygjg+7xHYkvfe/2jdtm4RlQ6GfL1PyIMbbo4j+yQPUP5lpRzmcOfsDoPOa/ sDqA== 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 e125si14382897pgc.411.2019.02.19.01.33.30; Tue, 19 Feb 2019 01:33:31 -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 S1728243AbfBSJd3 (ORCPT + 32 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(-) -- 2.7.4 Reviewed-by: Kieran Bingham 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 ###