summaryrefslogtreecommitdiffstats
path: root/scripts/gdb/linux/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gdb/linux/Makefile')
-rw-r--r--scripts/gdb/linux/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/gdb/linux/Makefile b/scripts/gdb/linux/Makefile
new file mode 100644
index 000000000000..6cf1ecf61057
--- /dev/null
+++ b/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)