From e2afa154e99071e8d51be88494cd1347ad113035 Mon Sep 17 00:00:00 2001 From: Gurkirpal Singh Date: Sat, 20 Jan 2018 05:37:53 +0530 Subject: st/omx/tizonia: Add --enable-omx-tizonia flag and build files Allow only bellagio or tizonia to be used at the same time. Detect tizonia package config file Generate libomx_mesa.so and install it to libtizcore.pc::pluginsdir Only compile empty source (target.c) for now. GSoC Project link: https://summerofcode.withgoogle.com/projects/#4737166321123328 Acked-by: Leo Liu Reviewed-by: Julien Isorce --- src/gallium/targets/omx/Makefile.am | 19 +++++++++++++++++-- src/gallium/targets/omx/omx.sym | 1 + 2 files changed, 18 insertions(+), 2 deletions(-) (limited to 'src/gallium/targets') diff --git a/src/gallium/targets/omx/Makefile.am b/src/gallium/targets/omx/Makefile.am index 89ebcc045cb..32d61a189b4 100644 --- a/src/gallium/targets/omx/Makefile.am +++ b/src/gallium/targets/omx/Makefile.am @@ -3,7 +3,12 @@ include $(top_srcdir)/src/gallium/Automake.inc AM_CFLAGS = \ $(GALLIUM_TARGET_CFLAGS) +if HAVE_ST_OMX_BELLAGIO omxdir = $(OMX_BELLAGIO_LIB_INSTALL_DIR) +else +omxdir = $(OMX_TIZONIA_LIB_INSTALL_DIR) +endif + omx_LTLIBRARIES = libomx_mesa.la nodist_EXTRA_libomx_mesa_la_SOURCES = dummy.cpp @@ -24,15 +29,25 @@ endif # HAVE_LD_VERSION_SCRIPT libomx_mesa_la_LIBADD = \ $(top_builddir)/src/gallium/state_trackers/omx/libomxtracker_common.la \ - $(top_builddir)/src/gallium/state_trackers/omx/bellagio/libomxtracker.la \ $(top_builddir)/src/gallium/auxiliary/libgalliumvlwinsys.la \ $(top_builddir)/src/gallium/auxiliary/libgalliumvl.la \ $(top_builddir)/src/gallium/auxiliary/libgallium.la \ $(top_builddir)/src/util/libmesautil.la \ - $(OMX_BELLAGIO_LIBS) \ $(LIBDRM_LIBS) \ $(GALLIUM_COMMON_LIB_DEPS) +if HAVE_ST_OMX_BELLAGIO +libomx_mesa_la_LIBADD += \ + $(top_builddir)/src/gallium/state_trackers/omx/bellagio/libomxtracker.la \ + $(OMX_BELLAGIO_LIBS) +else +libomx_mesa_la_LIBADD += \ + $(top_builddir)/src/gallium/state_trackers/omx/tizonia/libomxtiztracker.la \ + $(OMX_TIZONIA_LIBS) \ + $(OMX_TIZILHEADERS_LIBS) \ + $(OMX_TIZPLATFORM_LIBS) +endif + if HAVE_PLATFORM_X11 libomx_mesa_la_LIBADD += \ $(VL_LIBS) \ diff --git a/src/gallium/targets/omx/omx.sym b/src/gallium/targets/omx/omx.sym index e8a287600a5..07b65e57643 100644 --- a/src/gallium/targets/omx/omx.sym +++ b/src/gallium/targets/omx/omx.sym @@ -1,5 +1,6 @@ { global: + OMX_ComponentInit; omx_component_library_Setup; # Workaround for an LLVM warning with -simplifycfg-sink-common -- cgit v1.2.3