From ca2d9ca2488c72ee82ed0973654426502e2812d2 Mon Sep 17 00:00:00 2001 From: Kai Liu Date: Thu, 29 Mar 2018 18:30:15 +0800 Subject: [PATCH] Add the video driver mali-drivers-bin and the virtual opengles package, ported from Veyron board. Also mask mesa as it conflicts with mali-drivers-bin package. --- media-libs/mali-drivers-bin/Manifest | 1 + .../mali-drivers-bin-1.20-r77.ebuild | 30 +++++++++++++++++++ profiles/base/make.defaults | 8 +++++ profiles/base/package.mask | 2 ++ virtual/opengles/opengles-2.ebuild | 16 ++++++++++ 5 files changed, 57 insertions(+) create mode 100644 media-libs/mali-drivers-bin/Manifest create mode 100644 media-libs/mali-drivers-bin/mali-drivers-bin-1.20-r77.ebuild create mode 100644 profiles/base/package.mask create mode 100644 virtual/opengles/opengles-2.ebuild diff --git a/media-libs/mali-drivers-bin/Manifest b/media-libs/mali-drivers-bin/Manifest new file mode 100644 index 0000000..e4e31ee --- /dev/null +++ b/media-libs/mali-drivers-bin/Manifest @@ -0,0 +1 @@ +DIST mali-drivers-veyron-1.20-r77.run 1858246 SHA256 53853e91852b23ec1c06e2bf90ed7321cf18c868617f0552a40def4c29fafea0 SHA512 4763b751e5259525510d77b93c3d2add2beaa5a6a4768fe06bed1cc68cf92f67a9ca11c87e73e33e116a52e614331543698c4d9f93454d2755e6b2684c37e77f WHIRLPOOL 939c6bb0a4586c2dc7534300ea9222e40b8225f428fddc8ffb932c1a6140982b03df63466159ec16966a4b876db22b174c3f6450b7e283e5127579fdcd74e237 diff --git a/media-libs/mali-drivers-bin/mali-drivers-bin-1.20-r77.ebuild b/media-libs/mali-drivers-bin/mali-drivers-bin-1.20-r77.ebuild new file mode 100644 index 0000000..b1186c8 --- /dev/null +++ b/media-libs/mali-drivers-bin/mali-drivers-bin-1.20-r77.ebuild @@ -0,0 +1,30 @@ +# Copyright 2014 The Chromium OS Authors. All rights reserved. +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit unpacker + +DESCRIPTION="Mali drivers, binary only install" +HOMEPAGE="" +SRC_URI="http://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/mali-drivers-veyron-${PVR}.run" + +LICENSE="Google-TOS" +SLOT="0" +KEYWORDS="-* arm" + +DEPEND=" + x11-drivers/opengles-headers + " + +RDEPEND=" + !media-libs/mali-drivers + !x11-drivers/opengles + x11-libs/libdrm + " + +S=${WORKDIR} + +src_install() { + cp -pPR "${S}"/* "${D}/" || die "Install failed!" +} diff --git a/profiles/base/make.defaults b/profiles/base/make.defaults index d6cd901..83fa9b0 100644 --- a/profiles/base/make.defaults +++ b/profiles/base/make.defaults @@ -3,3 +3,11 @@ USE="${USE} kernel-4_4 device_tree" USE="${USE} -opengl opengles" USE="${USE} bluetooth" USE="${USE} allow_consumer_kiosk" + +ACCEPT_LICENSE="Google-TOS" + +# Turn on the video cards this board uses. +VIDEO_CARDS="rockchip" + +# Allow login on serial console +TTY_CONSOLE="ttyS2" diff --git a/profiles/base/package.mask b/profiles/base/package.mask new file mode 100644 index 0000000..9a7a9e9 --- /dev/null +++ b/profiles/base/package.mask @@ -0,0 +1,2 @@ +# Mesa conflicts with mali-drivers and minigbm. +media-libs/mesa diff --git a/virtual/opengles/opengles-2.ebuild b/virtual/opengles/opengles-2.ebuild new file mode 100644 index 0000000..22e40c2 --- /dev/null +++ b/virtual/opengles/opengles-2.ebuild @@ -0,0 +1,16 @@ +# Copyright 2014 The Chromium OS Authors. All rights reserved. +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +DESCRIPTION="Virtual for OpenGLES implementations" + +SLOT="0" +KEYWORDS="-* arm" +IUSE="" + +DEPEND=" + media-libs/mali-drivers-bin + x11-drivers/opengles-headers +" +RDEPEND="${DEPEND}"