X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=Kbuild;h=3d0ae152af7c6271d2b6bf85acef2025e25d8cc5;hb=5fa0eb0b4d4780fbd6d8a09850cc4fd539e9fe65;hp=f55cefd9bf29a2fa2746f7039f2481dfdceadfc7;hpb=43cbf02e7ad51007af38f39c5b2abdc7a5d7f5aa;p=cascardo%2Flinux.git diff --git a/Kbuild b/Kbuild index f55cefd9bf29..3d0ae152af7c 100644 --- a/Kbuild +++ b/Kbuild @@ -5,6 +5,7 @@ # 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) # Default sed regexp - multiline due to syntax constraints define sed-y @@ -96,5 +97,14 @@ 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: $(obj)/$(timeconst-file) $(obj)/$(bounds-file) + @$(MAKE) $(build)=scripts/gdb/linux $@ + # Keep these three files during make clean no-clean-files := $(bounds-file) $(offsets-file) $(timeconst-file)