From a75059f94b617e3597b9fbce6cd0071abce79ee4 Mon Sep 17 00:00:00 2001 From: natinusala Date: Mon, 24 Feb 2020 19:44:00 +0100 Subject: [PATCH] odroidgo2: add skeleton --- Makefile.common | 5 +++++ gfx/drivers_context/drm_ctx.c | 5 +++++ qb/config.libs.sh | 7 +++++++ qb/config.params.sh | 1 + 4 files changed, 18 insertions(+) diff --git a/Makefile.common b/Makefile.common index 6909ae4e43..ec1d8b609b 100644 --- a/Makefile.common +++ b/Makefile.common @@ -2109,4 +2109,9 @@ endif ifeq ($(HAVE_SEGAM), 1) DEFINES += -DHAVE_SEGAM endif + +ifeq ($(HAVE_ODROIDGO2), 1) + DEFINES += -DHAVE_ODROIDGO2 + LIBS += -lrk_rga +endif ################################## diff --git a/gfx/drivers_context/drm_ctx.c b/gfx/drivers_context/drm_ctx.c index d3adf9a976..02753d95fe 100644 --- a/gfx/drivers_context/drm_ctx.c +++ b/gfx/drivers_context/drm_ctx.c @@ -42,6 +42,11 @@ #include "../../frontend/frontend_driver.h" #include "../common/drm_common.h" +#ifdef HAVE_ODROIDGO2 +#include +#include +#endif + #ifdef HAVE_EGL #include "../common/egl_common.h" #endif diff --git a/qb/config.libs.sh b/qb/config.libs.sh index a5a8d7d677..292f6c849a 100644 --- a/qb/config.libs.sh +++ b/qb/config.libs.sh @@ -637,3 +637,10 @@ fi check_enabled 'ZLIB BUILTINZLIB' RPNG RPNG 'zlib is' false check_enabled V4L2 VIDEOPROCESSOR 'video processor' 'Video4linux2 is' true + +if [ "$HAVE_ODROIDGO2" != 'no' ]; then + check_pkgconf LIBRGA librk_rga + if [ "$HAVE_LIBRGA" != 'yes' ]; then + die 1 'librga is required for ODROID-GO Advance support' + fi +fi diff --git a/qb/config.params.sh b/qb/config.params.sh index 9dd59f5141..62ea876f55 100644 --- a/qb/config.params.sh +++ b/qb/config.params.sh @@ -170,3 +170,4 @@ HAVE_METAL=no # Metal support (macOS-only) C89_METAL=no HAVE_NETWORK_VIDEO=no HAVE_STEAM=no # Enable Steam build +HAVE_ODROIDGO2=no # ODROID-GO Advance rotation support (requires librga)