mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-02 08:50:39 -05:00
libperf: Add libperf to the python.so build
Link libperf.a with python.so. Committer testing: Continues to work: # perf test python 18: 'import perf' in python : Ok # Signed-off-by: Jiri Olsa <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Alexey Budankov <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Michael Petlan <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
47f9bccc79
commit
a429dcb8fe
2 changed files with 3 additions and 1 deletions
|
|
@ -307,6 +307,7 @@ LIBBPF = $(BPF_PATH)libbpf.a
|
|||
LIBSUBCMD = $(SUBCMD_PATH)libsubcmd.a
|
||||
|
||||
LIBPERF = $(LIBPERF_PATH)libperf.a
|
||||
export LIBPERF
|
||||
|
||||
# python extension build directories
|
||||
PYTHON_EXTBUILD := $(OUTPUT)python_ext_build/
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ build_lib = getenv('PYTHON_EXTBUILD_LIB')
|
|||
build_tmp = getenv('PYTHON_EXTBUILD_TMP')
|
||||
libtraceevent = getenv('LIBTRACEEVENT')
|
||||
libapikfs = getenv('LIBAPI')
|
||||
libperf = getenv('LIBPERF')
|
||||
|
||||
ext_sources = [f.strip() for f in open('util/python-ext-sources')
|
||||
if len(f.strip()) > 0 and f[0] != '#']
|
||||
|
|
@ -64,7 +65,7 @@ perf = Extension('perf',
|
|||
include_dirs = ['util/include'],
|
||||
libraries = extra_libraries,
|
||||
extra_compile_args = cflags,
|
||||
extra_objects = [libtraceevent, libapikfs],
|
||||
extra_objects = [libtraceevent, libapikfs, libperf],
|
||||
)
|
||||
|
||||
setup(name='perf',
|
||||
|
|
|
|||
Loading…
Reference in a new issue