diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-02-19 04:33:02 -0500 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-02-27 07:39:48 -0500 |
commit | 67274c083438340ad16c1437caebc84e1253b224 (patch) | |
tree | 9959b5c3b53c128b29319985e0f069f38f150562 | |
parent | 6d3c94e4a6523d1c3b59c23fb607d18bf08ea4fc (diff) |
scripts/gdb: delay generation of gdb constants.py
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 <yamada.masahiro@socionext.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r-- | Kbuild | 10 | ||||
-rw-r--r-- | Makefile | 11 |
2 files changed, 11 insertions, 10 deletions
@@ -6,7 +6,6 @@ | |||
6 | # 2) Generate timeconst.h | 6 | # 2) Generate timeconst.h |
7 | # 3) Generate asm-offsets.h (may need bounds.h and timeconst.h) | 7 | # 3) Generate asm-offsets.h (may need bounds.h and timeconst.h) |
8 | # 4) Check for missing system calls | 8 | # 4) Check for missing system calls |
9 | # 5) Generate constants.py (may need bounds.h) | ||
10 | 9 | ||
11 | ##### | 10 | ##### |
12 | # 1) Generate bounds.h | 11 | # 1) Generate bounds.h |
@@ -58,14 +57,5 @@ quiet_cmd_syscalls = CALL $< | |||
58 | missing-syscalls: scripts/checksyscalls.sh $(offsets-file) FORCE | 57 | missing-syscalls: scripts/checksyscalls.sh $(offsets-file) FORCE |
59 | $(call cmd,syscalls) | 58 | $(call cmd,syscalls) |
60 | 59 | ||
61 | ##### | ||
62 | # 5) Generate constants for Python GDB integration | ||
63 | # | ||
64 | |||
65 | extra-$(CONFIG_GDB_SCRIPTS) += build_constants_py | ||
66 | |||
67 | build_constants_py: $(timeconst-file) $(bounds-file) | ||
68 | @$(MAKE) $(build)=scripts/gdb/linux $@ | ||
69 | |||
70 | # Keep these three files during make clean | 60 | # Keep these three files during make clean |
71 | no-clean-files := $(bounds-file) $(offsets-file) $(timeconst-file) | 61 | no-clean-files := $(bounds-file) $(offsets-file) $(timeconst-file) |
@@ -1519,6 +1519,17 @@ PHONY += $(DOC_TARGETS) | |||
1519 | $(DOC_TARGETS): scripts_basic FORCE | 1519 | $(DOC_TARGETS): scripts_basic FORCE |
1520 | $(Q)$(MAKE) $(build)=Documentation $@ | 1520 | $(Q)$(MAKE) $(build)=Documentation $@ |
1521 | 1521 | ||
1522 | # Misc | ||
1523 | # --------------------------------------------------------------------------- | ||
1524 | |||
1525 | PHONY += scripts_gdb | ||
1526 | scripts_gdb: prepare | ||
1527 | $(Q)$(MAKE) $(build)=scripts/gdb/linux build_constants_py | ||
1528 | |||
1529 | ifdef CONFIG_GDB_SCRIPTS | ||
1530 | all: scripts_gdb | ||
1531 | endif | ||
1532 | |||
1522 | else # KBUILD_EXTMOD | 1533 | else # KBUILD_EXTMOD |
1523 | 1534 | ||
1524 | ### | 1535 | ### |