Add sunxi-mali recipe

This commit is contained in:
Nicolas Aguirre 2013-10-11 13:46:34 +02:00
parent 9f79a10437
commit 45d5895c27
2 changed files with 91 additions and 0 deletions

View File

@ -0,0 +1,40 @@
From 9f72dadae695f64631d4de361c2862683d5c9ccc Mon Sep 17 00:00:00 2001
From: Nicolas Aguirre <aguirre.nicolas@gmail.com>
Date: Fri, 13 Sep 2013 00:23:28 +0200
Subject: [PATCH] fix build by removing dri2 link for libump and adding lX11
for tests
---
lib/ump/Makefile | 2 +-
test/Makefile | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/ump/Makefile b/lib/ump/Makefile
index c3da96b..d5fcb01 100644
--- a/lib/ump/Makefile
+++ b/lib/ump/Makefile
@@ -7,7 +7,7 @@ CFLAGS += -Wall -O3 -fPIC
LDFLAGS += -Wl,--no-as-needed
ifeq ($(MALI_EGL_TYPE),x11)
- LDFLAGS += -ldri2 -ldrm -lXfixes
+ LDFLAGS += -ldrm -lXfixes
endif
BARE_TARGET = libUMP.so
diff --git a/test/Makefile b/test/Makefile
index 700416e..fa652f9 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -5,7 +5,7 @@ CFLAGS ?= -Wall
all: test
test: ../config.mk test.c
- $(CC) $(CFLAGS) -o $@ test.c -lEGL -lGLESv2
+ $(CC) $(CFLAGS) -o $@ test.c -lEGL -lGLESv2 -lX11
clean:
rm -f test
--
1.8.4

View File

@ -0,0 +1,51 @@
DESCRIPTION = "libGLES for the A10/A13 Allwinner processor with Mali 400 (X11)"
LICENSE = "proprietary-binary"
INC_PR = "r1"
LIC_FILES_CHKSUM = "file://README;md5=a103ac69c166fcd98a67a9917dd7affd"
COMPATIBLE_MACHINE = "(mele|cubieboard)"
DEPENDS = "virtual/libx11 libxau libxdmcp libdrm dri2proto libdri2"
PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2"
RPROVIDES_${PN} = "libegl libgles1 libgles2"
RPROVIDES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev"
RPROVIDES_${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg"
SRCREV_pn-${PN} = "0809383f9d3ee2575da52262a639ddd6464a641f"
SRC_URI = "gitsm://github.com/linux-sunxi/sunxi-mali.git;protocol=http"
S = "${WORKDIR}/git"
do_compile_append() {
make config DESTDIR=${D}/ VERSION=r3p0 ABI=armhf EGL_TYPE=x11
make
}
do_install_append() {
mkdir -p ${D}${libdir}
mkdir -p {$D}{includedir}
make libdir=${D}${libdir}/ includedir=${D}${includedir}/ install
make libdir=${D}${libdir}/ includedir=${D}${includedir}/ install -C include
}
PACKAGES += "${PN}-es2"
PRIVATE_LIBS_${PN}-es2 = "libEGL.so libGLESv1_CM.so libGLESv2.so libMali.so libUMP.so"
FILES_${PN} = "*"
FILES_${PN}-es2 = "${libdir}/libEGL.so \
${libdir}/libEGL.so.* \
${libdir}/libGLESv1_CM.so \
${libdir}/libGLESv1_CM.so.* \
${libdir}/libGLESv2.so \
${libdir}/libGLESv2.so.* \
${libdir}/libMali.so \
${libdir}/libUMP.so \
${libdir}/libUMP.so.* \
${libdir}/*.so \
"