summaryrefslogtreecommitdiffstats
path: root/kernel/scripts/gdb/linux/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/scripts/gdb/linux/Makefile')
-rw-r--r--kernel/scripts/gdb/linux/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/scripts/gdb/linux/Makefile b/kernel/scripts/gdb/linux/Makefile
new file mode 100644
index 000000000..6cf1ecf61
--- /dev/null
+++ b/kernel/scripts/gdb/linux/Makefile
@@ -0,0 +1,11 @@
+always := gdb-scripts
+
+SRCTREE := $(shell cd $(srctree) && /bin/pwd)
+
+$(obj)/gdb-scripts:
+ifneq ($(KBUILD_SRC),)
+ $(Q)ln -fsn $(SRCTREE)/$(obj)/*.py $(objtree)/$(obj)
+endif
+ @:
+
+clean-files := *.pyc *.pyo $(if $(KBUILD_SRC),*.py)