Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for version r4p0-00rel0 and debian packaging #13

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
config.mk
*~
*.pc
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "lib/mali"]
path = lib/mali
url = https://github.com/linux-sunxi/sunxi-mali-proprietary.git
url = https://github.com/WhiteWind/sunxi-mali-proprietary.git
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ clean:
install: config.mk
$(MAKE) -C lib install
$(MAKE) -C include install
$(MAKE) -f Makefile.pc install

test: config.mk
$(MAKE) -C test test
3 changes: 2 additions & 1 deletion Makefile.config
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ ifeq ($(VERSION),r2p4)
else ifeq ($(VERSION),r3p0)
else ifeq ($(VERSION),r3p1)
else ifeq ($(VERSION),r3p2-01rel1)
else ifeq ($(VERSION),r4p0-00rel0)
else
$(warning Unknown/unhandled Mali Version "$(VERSION)")
$(warning Use VERSION=(r2p4,r3p0,r3p1,r3p2-01rel1) instead)
$(warning Use VERSION=(r2p4,r3p0,r3p1,r3p2-01rel1,r4p0-00rel0) instead)
$(error Unknown/unhandled Mali Version "$(VERSION)")
endif

Expand Down
21 changes: 21 additions & 0 deletions Makefile.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
include Makefile.setup
include config.mk

all:
echo "prefix=$(prefix)" > egl.pc
cat egl.pc.in >> egl.pc
sed -i "s/MVERSION/${MALI_VERSION}/g" egl.pc
echo "prefix=$(prefix)" > gles_cm.pc
cat gles_cm.pc.in >> gles_cm.pc
sed -i "s/MVERSION/${MALI_VERSION}/g" gles_cm.pc
echo "prefix=$(prefix)" > glesv2.pc
cat glesv2.pc.in >> glesv2.pc
sed -i "s/MVERSION/${MALI_VERSION}/g" glesv2.pc

install: egl.pc gles_cm.pc glesv2.pc
$(MKDIR) $(libdir)/pkgconfig
$(INSTALL_DATA) $^ $(libdir)/pkgconfig

clean:
$(RM) egl.pc gles_cm.pc glesv2.pc

6 changes: 6 additions & 0 deletions debian/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
The Debian Package sunxi-mali
----------------------------

Comments regarding the Package

-- Mikhail Avdienko <[email protected]> Tue, 10 Nov 2015 12:05:35 +0800
6 changes: 6 additions & 0 deletions debian/README.Debian
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
sunxi-mali for Debian
---------------------

<possible notes regarding this package - if none, delete this file>

-- unknown <[email protected]> Tue, 10 Nov 2015 12:05:35 +0800
10 changes: 10 additions & 0 deletions debian/README.source
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
sunxi-mali for Debian
---------------------

<this file describes information about the source package, see Debian policy
manual section 4.14. You WILL either need to modify or delete this file>



-- unknown <[email protected]> Tue, 10 Nov 2015 12:05:35 +0800

5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sunxi-mali (4.0.0.0) unstable; urgency=low

* Initial Release.

-- Mikhail Avdienko <[email protected]> Tue, 10 Nov 2015 12:05:35 +0800
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
15 changes: 15 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Source: sunxi-mali
Section: unknown
Priority: optional
Maintainer: Mikhail Avdienko <[email protected]>
Build-Depends: debhelper (>= 9)
Standards-Version: 3.9.5
Homepage: https://linux-sunxi.org/

Package: sunxi-mali
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Mali GPU binary driver and GLES libs
Mali GPU binary driver from Sunxi Linux.
Includes EGL, GLES1 and GLES2 libaries and headers.
Supports driver versions r2p4, r3p0, r3p1, r3p2-01rel1 and r4p0-00rel0 versions
33 changes: 33 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: sunxi-mali
Source: <url://example.com>

Files: *
Copyright: 2015 ARM Mali
License: ARM Mali

Files: debian/*
Copyright: 2015 Mikhail Avdienko <[email protected]>
License: GPL-3.0+

License: GPL-3.0+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".

# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
# Please avoid to pick license terms that are more restrictive than the
# packaged work, as it may make Debian's contributions unacceptable upstream.
1 change: 1 addition & 0 deletions debian/docs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
README
1 change: 1 addition & 0 deletions debian/files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sunxi-mali_4.0.0.0_armhf.deb unknown optional
32 changes: 32 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1

# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed


# main packaging script based on dh7 syntax
%:
dh $@

# debmake generated override targets
# This is example for Cmake (See http://bugs.debian.org/641051 )
#override_dh_auto_configure:
# dh_auto_configure -- \
# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)




1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (native)
19 changes: 19 additions & 0 deletions debian/sunxi-mali.debhelper.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
dh_auto_configure
dh_auto_build
dh_auto_test
dh_prep
dh_auto_install
dh_installdocs
dh_installchangelogs
dh_perl
dh_link
dh_compress
dh_fixperms
dh_strip
dh_makeshlibs
dh_shlibdeps
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
dh_builddeb
2 changes: 2 additions & 0 deletions debian/sunxi-mali.substvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shlibs:Depends=libc6 (>= 2.4), libdrm2 (>= 2.3.1), libx11-6 (>= 2:1.4.99.1), libxext6, libxfixes3
misc:Depends=
13 changes: 13 additions & 0 deletions debian/sunxi-mali/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Package: sunxi-mali
Version: 4.0.0.0
Architecture: armhf
Maintainer: Mikhail Avdienko <[email protected]>
Installed-Size: 3303
Depends: libc6 (>= 2.4), libdrm2 (>= 2.3.1), libx11-6 (>= 2:1.4.99.1), libxext6, libxfixes3
Section: unknown
Priority: optional
Homepage: https://linux-sunxi.org/
Description: Mali GPU binary driver and GLES libs
Mali GPU binary driver from Sunxi Linux.
Includes EGL, GLES1 and GLES2 libaries and headers.
Supports driver versions r2p4, r3p0, r3p1, r3p2-01rel1 and r4p0-00rel0 versions
21 changes: 21 additions & 0 deletions debian/sunxi-mali/DEBIAN/md5sums
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
68416217ba372f87ae922d6df5c6d1a5 usr/include/EGL/egl.h
1263cefba6ee41e647b4ebc75b57e68a usr/include/EGL/eglext.h
a909dfb0a670b377b02b955419e97151 usr/include/EGL/eglplatform.h
842a14527090f8d375f20b858e5f590f usr/include/GLES/gl.h
a8d400ef8848d9cc53d45d50249e3526 usr/include/GLES/glext.h
4827c96222facc1ea6cb32cdcbbe9688 usr/include/GLES/glplatform.h
98ad48e477b29dbcadbb2a73f53f9f73 usr/include/GLES2/gl2.h
e4b2ce0881e67cdc623a2545a38909ad usr/include/GLES2/gl2ext.h
5bb21bffb89e9d94f831a93fcf403b90 usr/include/GLES2/gl2platform.h
0cfb61472a713e1dfdf06ba28797abe4 usr/include/KHR/khrplatform.h
cf5983f27e8b769b595753e1e3a7aa33 usr/lib/libEGL.so.1.4
cf5983f27e8b769b595753e1e3a7aa33 usr/lib/libGLESv1_CM.so.1.1
cf5983f27e8b769b595753e1e3a7aa33 usr/lib/libGLESv2.so.2.0
cf5983f27e8b769b595753e1e3a7aa33 usr/lib/libMali.so
74bfe2e33ddb9c0c30141efa9d55c542 usr/lib/pkgconfig/egl.pc
f1026c972eea4809430cad74b28b1202 usr/lib/pkgconfig/gles_cm.pc
f4a4482dc92fa022dd24a25ddccb1fab usr/lib/pkgconfig/glesv2.pc
1b81a178e80ee888ee4571772699ab2c usr/share/doc/sunxi-mali/README
97f67f383246cbd7ddf9ebd40c9d0f6a usr/share/doc/sunxi-mali/README.Debian
4979cd3538c6cedda894ba7834e0af89 usr/share/doc/sunxi-mali/changelog.gz
49a9da1cbcebf50188fcd9a88ddc2ed2 usr/share/doc/sunxi-mali/copyright
Loading