1 ################################################################################
5 ################################################################################
7 ODROID_MALI_VERSION
= 46fe49f37e3506c6205ad8c50980eca9bfff11e3
8 ODROID_MALI_SITE
= $(call github
,mdrjr
,c2_mali
,$(ODROID_MALI_VERSION
))
9 ODROID_MALI_LICENSE
= Hardkernel EULA
10 ODROID_MALI_LICENSE_FILES
= README.md
12 ODROID_MALI_INSTALL_STAGING
= YES
13 ODROID_MALI_PROVIDES
= libegl libgles
15 ifeq ($(BR2_PACKAGE_ODROID_MALI_X11
),y
)
16 ODROID_MALI_HEADERS_SUBDIR
= x11
/mali_headers
/
17 ODROID_MALI_LIBS_SUBDIR
= x11
/mali_libs
/
18 # The X11 blobs are linked against those libraries, and the headers
19 # include headers from those libraries
20 ODROID_MALI_DEPENDENCIES
+= \
21 libdrm xlib_libX11 xlib_libXdamage \
22 xlib_libXext xlib_libXfixes
24 ODROID_MALI_HEADERS_SUBDIR
= fbdev
/mali_headers
/
25 ifeq ($(BR2_aarch64
),y
)
26 ODROID_MALI_LIBS_SUBDIR
= fbdev
/mali_libs
/
28 ODROID_MALI_LIBS_SUBDIR
= fbdev
/32bit_libs
/
32 define ODROID_MALI_INSTALL_LIBS
33 cp
-dpfr
$(@D
)/$(ODROID_MALI_LIBS_SUBDIR
)/lib
* $(1)/usr
/lib
/
36 define ODROID_MALI_INSTALL_STAGING_CMDS
37 $(call ODROID_MALI_INSTALL_LIBS
,$(STAGING_DIR
))
38 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/pkgconfig
39 cp
-dpfr
$(@D
)/pkgconfig
/*.
pc $(STAGING_DIR
)/usr
/lib
/pkgconfig
/
40 cp
-dpfr
$(@D
)/$(ODROID_MALI_HEADERS_SUBDIR
)/* $(STAGING_DIR
)/usr
/include
43 define ODROID_MALI_INSTALL_TARGET_CMDS
44 $(call ODROID_MALI_INSTALL_LIBS
,$(TARGET_DIR
))
47 $(eval
$(generic-package
))