mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 22:02:57 +00:00
quick_dump: SWIG chipset interface
This isn't strictly necessary it would have been easy enough to simply convert intel_chipset.h but this should be nice prep work for directly doing MMIO. It also serves as a nice review point. It's demonstrated with an autodetect function in the script. That autodetect has a hardcoded path that shouldn't be there, but it will go away in the next patch when we can properly link in libpciaccess. Thanks to Matt for helping whip the automake stuff into shape. v2: Switch to $(top_srcdir) Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
@@ -1,6 +1,23 @@
|
||||
BUILT_SOURCES = chipset_wrap_python.c
|
||||
|
||||
bin_SCRIPTS = quick_dump.py chipset.py
|
||||
|
||||
lib_LTLIBRARIES = I915ChipsetPython.la
|
||||
I915ChipsetPython_la_CFLAGS = -I$(top_srcdir)/lib $(PYTHON_CPPFLAGS)
|
||||
I915ChipsetPython_la_LDFLAGS = -module -avoid-version $(PYTHON_LDFLAGS)
|
||||
I915ChipsetPython_la_SOURCES = chipset_wrap_python.c intel_chipset.c
|
||||
|
||||
chipset_wrap_python.c: chipset.i
|
||||
$(SWIG) $(AX_SWIG_PYTHON_OPT) -I$(top_srcdir)/lib -o $@ $<
|
||||
|
||||
all-local: I915ChipsetPython.la
|
||||
$(LN_S) -f .libs/I915ChipsetPython.so _chipset.so
|
||||
|
||||
CLEANFILES = chipset_wrap_python.c chipset.py _chipset.so
|
||||
EXTRA_DIST = \
|
||||
base_display.txt base_interrupt.txt base_other.txt base_power.txt base_rings.txt \
|
||||
gen6_other.txt sandybridge \
|
||||
gen7_other.txt ivybridge \
|
||||
vlv_display.txt valleyview \
|
||||
quick_dump.py
|
||||
quick_dump.py \
|
||||
chipset.i chipset.py
|
||||
|
||||
Reference in New Issue
Block a user