Make the util directory into its own library. This is done to avoid compiling code twice, once for the perf tool and once for the perf python module. For convenience: arch/common.c scripts/perl/Perf-Trace-Util/Context.c scripts/python/Perf-Trace-Util/Context.c are made part of this library.
Showing the changes to tools/perf/scripts/python (1 of 36 files). Show all
Unified · Split
| @@ -1,4 +1,4 @@ | ||
| 1 | −perf-y += Context.o | |
| 1 | +perf-util-y += Context.o | |
| 2 | 2 | |
| 3 | 3 | # -Wno-declaration-after-statement: The python headers have mixed code with declarations (decls after asserts, for instance) |
| 4 | 4 | CFLAGS_Context.o += $(PYTHON_EMBED_CCOPTS) -Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-nested-externs -Wno-declaration-after-statement |