kumquat-buildroot/package/odroid-mali/odroid-mali.mk
Dagg Stompler e1bf130ca8 odroid-mali: add support for x11 egl implementation
Allow installation of the x11 egl support required for the X11 ddx
driver. The BR2_PACKAGE_ODROID_MALI_X11 hidden option will be selected
by the X11 DDX driver.

Signed-off-by: Dagg Stompler <daggs@gmx.com>
[Thomas:
 - select BR2_PACKAGE_LIBDRM,
   BR2_PACKAGE_XLIB_{LIBX11,LIBXFIXES,LIBXEXT,LIBXDAMAGE} from
   BR2_PACKAGE_ODROID_MALI_X11 in order to avoid numerous "if" in
   Config.in
 - Use a single assignment to ODROID_MALI_DEPENDENCIES to add the
   dependencies for libdrm and the X11 libraries.
 - Introduce ODROID_MALI_HEADERS_SUBDIR and ODROID_MALI_LIBS_SUBDIR to
   clarify the location of the headers and libraries for the selected
   architecture/display backend in the Mali tree.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-12-18 15:03:46 +01:00

48 lines
1.4 KiB
Makefile

################################################################################
#
# odroid-mali
#
################################################################################
ODROID_MALI_VERSION = 46fe49f37e3506c6205ad8c50980eca9bfff11e3
ODROID_MALI_SITE = $(call github,mdrjr,c2_mali,$(ODROID_MALI_VERSION))
ODROID_MALI_LICENSE = Hardkernel EULA
ODROID_MALI_LICENSE_FILES = README.md
ODROID_MALI_INSTALL_STAGING = YES
ODROID_MALI_PROVIDES = libegl libgles
ifeq ($(BR2_PACKAGE_ODROID_MALI_X11),y)
ODROID_MALI_HEADERS_SUBDIR = x11/mali_headers/
ODROID_MALI_LIBS_SUBDIR = x11/mali_libs/
# The X11 blobs are linked against those libraries, and the headers
# include headers from those libraries
ODROID_MALI_DEPENDENCIES += \
libdrm xlib_libX11 xlib_libXdamage \
xlib_libXext xlib_libXfixes
else
ODROID_MALI_HEADERS_SUBDIR = fbdev/mali_headers/
ifeq ($(BR2_aarch64),y)
ODROID_MALI_LIBS_SUBDIR = fbdev/mali_libs/
else
ODROID_MALI_LIBS_SUBDIR = fbdev/32bit_libs/
endif
endif
define ODROID_MALI_INSTALL_LIBS
cp -dpfr $(@D)/$(ODROID_MALI_LIBS_SUBDIR)/lib* $(1)/usr/lib/
endef
define ODROID_MALI_INSTALL_STAGING_CMDS
$(call ODROID_MALI_INSTALL_LIBS,$(STAGING_DIR))
mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
cp -dpfr $(@D)/pkgconfig/*.pc $(STAGING_DIR)/usr/lib/pkgconfig/
cp -dpfr $(@D)/$(ODROID_MALI_HEADERS_SUBDIR)/* $(STAGING_DIR)/usr/include
endef
define ODROID_MALI_INSTALL_TARGET_CMDS
$(call ODROID_MALI_INSTALL_LIBS,$(TARGET_DIR))
endef
$(eval $(generic-package))