diff options
author | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2017-12-18 23:00:54 +0000 |
---|---|---|
committer | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2017-12-22 11:17:37 +0000 |
commit | 865a47ca2b93b208ba016f3c4fc00831ec7bfec6 (patch) | |
tree | fae09896c77b2d7c3ccd9989e23d5dc041442888 /configure.ac | |
parent | beb26d89ff5c5621c1e6b6ac2a45439507af86b7 (diff) |
overlay: parse tracepoints from sysfs to figure out fields' location
With changes going to drm-tip, the tracepoints field locations are
going to change. This change introduces a tracepoint parser (using a
peg parser) which lets us figure out field positions on the fly.
v2: Fix automake build (Lionel)
v3: Make overlay build conditional on peg (Petri)
Make wait_end callback more readable (Chris)
Drop tracepoint_id(), instead parsing from format file (Lionel)
v4: Fix existing configure.ac issue with overlay build (Petri)
v5: Silence unused function (Lionel)
v6: Fix missing double quote in v4 (Lionel)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
For the build system changes:
Acked-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 8740f7a4..7e847574 100644 --- a/configure.ac +++ b/configure.ac @@ -146,6 +146,13 @@ if test x"$build_x86" = xyes; then AS_IF([test x"$LEX" != "x:" -a x"$YACC" != xyacc], [enable_assembler=yes], [enable_assembler=no]) + + AC_CHECK_TOOL([LEG], [leg]) + if test x"$LEG" != xleg; then + enable_overlay_xvlib="no" + enable_overlay_xlib="no" + AC_MSG_NOTICE([Failed to find leg, required for overlay, try : apt-get install peg]) + fi else enable_overlay_xvlib="no" enable_overlay_xlib="no" @@ -158,7 +165,7 @@ AM_CONDITIONAL(BUILD_ASSEMBLER, [test "x$enable_assembler" = xyes]) AM_CONDITIONAL(BUILD_OVERLAY_XVLIB, [test "x$enable_overlay_xvlib" = xyes]) AM_CONDITIONAL(BUILD_OVERLAY_XLIB, [test "x$enable_overlay_xlib" = xyes]) -AM_CONDITIONAL(BUILD_OVERLAY, [test "x$enable_overlay_xlib" = xyes -o "x$enable_overlay_xvlib"]) +AM_CONDITIONAL(BUILD_OVERLAY, [test "x$enable_overlay_xlib" = xyes -o "x$enable_overlay_xvlib" = "xyes"]) if test x$enable_overlay_xvlib = xyes; then AC_DEFINE(HAVE_OVERLAY_XVLIB, 1, [Enable XV backend]) fi |