aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gdb/linux/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gdb/linux/Makefile')
-rw-r--r--scripts/gdb/linux/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/scripts/gdb/linux/Makefile b/scripts/gdb/linux/Makefile
index 6cf1ecf61057..cd129e65d1ff 100644
--- a/scripts/gdb/linux/Makefile
+++ b/scripts/gdb/linux/Makefile
@@ -8,4 +8,14 @@ ifneq ($(KBUILD_SRC),)
8endif 8endif
9 @: 9 @:
10 10
11clean-files := *.pyc *.pyo $(if $(KBUILD_SRC),*.py) 11quiet_cmd_gen_constants_py = GEN $@
12 cmd_gen_constants_py = \
13 $(CPP) -E -x c -P $(c_flags) $< > $@ ;\
14 sed -i '1,/<!-- end-c-headers -->/d;' $@
15
16$(obj)/constants.py: $(SRCTREE)/$(obj)/constants.py.in
17 $(call if_changed,gen_constants_py)
18
19build_constants_py: $(obj)/constants.py
20
21clean-files := *.pyc *.pyo $(if $(KBUILD_SRC),*.py) $(obj)/constants.py