[build]: add debian build rules

It offer the build rules for packaging the standard Debian
packages for Ubuntu and Debian.

Change-Id: If301a5698c17189e03ee508f6d609ea5d698fe87
Signed-off-by: Randy Li <randy.li@rock-chips.com>
This commit is contained in:
Randy Li
2017-12-14 10:54:08 +08:00
committed by Herman Chen
parent c7e7298b69
commit 349b60410f
13 changed files with 387 additions and 0 deletions

6
debian/README.Debian vendored Normal file
View File

@@ -0,0 +1,6 @@
mpp for Debian
--------------
<possible notes regarding this package - if none, delete this file>
-- Randy Li <randy.li@rock-chips.com> Wed, 03 Aug 2016 08:14:14 +0000

10
debian/README.source vendored Normal file
View File

@@ -0,0 +1,10 @@
mpp 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>
-- Randy Li <randy.li@rock-chips.com> Wed, 03 Aug 2016 08:14:14 +0000

249
debian/changelog vendored Normal file
View File

@@ -0,0 +1,249 @@
mpp (1.4.0-1) stable; urgency=critical
[ Herman Chen ]
* [vp8d]: Remove unused table
[ timkingh.huang ]
* [h264e]: add SSE parameter check
[ Herman Chen ]
* [h264e]: Add qp min/max limit by bps max/min
[ timkingh.huang ]
* [h264e]: limit bit rate on movement scene
[ leo.ding ]
* [h264e]: fix bug: vepu1 h264 encode
* [h264d]: fix bug: when judge whether is end of frame
[ Herman Chen ]
* [rc]: Add bps information print
* [test]: Fix rc2 test rc_mode error
[ leo.ding ]
* [h264e]: fix bug: vepu h264 encode rate control
[ Herman Chen ]
* [osal]: Change mpp time print to us
* [h264e_rkv]: Fix error qp prev update
[ leo.ding ]
* [jpege]: add vepu1 jpeg encode support
* [osal]: linux: add -ldl -lct to link relative library
[ Herman Chen ]
* [oasl]: Add lock timing test
* [base]: Add mpp/base/test for task en/dequeue demo
[ Randy Li ]
* [jpege]: fix some compiler warnings
* [jpegd]: fix the compiler warnings and hide some symbols
* [osal]: fixup for a compiler warning
* [allocator]: force using drm allocator in Linux platform
* [vpu]: use the platform function to open device node
* [vp8d]: fix the vdpu2 decoding error
[ leo.ding ]
* [hal_vp9d]: change stride align to 256 odds
[ Randy Li ]
* [m2vd]: a various of fixup
[ Herman Chen ]
* [h264e]: Fix QP stuck error
[ timkingh.huang ]
* [h264e]: record rate control parameter
* [h264e]: tidy code
[ leo.ding ]
* [h264e]: fix bps check failed when mpi setup to fix_qp mode
[ Randy Li ]
* [jpege]: fixup mpp device
* Revert "[osal]: linux: add -ldl -lct to link relative library"
[ leo.ding ]
* [h265d]: fix bug: when has no short_rps, it should be has no rps
[ Randy Li ]
* [mpp_dec]: remove obsoleted code and format comments
* [mpp]: fixup for the deadlock in decoding
[ ayaka ]
* [test]: add timeout poll type sample code
[ leo.ding ]
* [h265d]: fix bug: malloc buffer matching
[ timkingh.huang ]
* [h264e]: fix rate-control bug
* [h264e]: allocate buffers before encoding
[ sliver.chen ]
* [h264]: fix xrgb encode bug
[ sayon.chen ]
* [h265d]: hiding the vps_id information
[ Randy Li ]
* [h264d]: add supporting for the interlace mode
[ leo.ding ]
* [mpg4d]: update spit mode in prepare
[ ZhouJing ]
* [m4vd]: add m4v decoder support for vdpu1
[ Randy Li ]
* [mpg4d]: fixup the compiler warnings
* .gitignore: ignore those debian generated files
[ timkingh.huang ]
* [h264e]: fix rate control bug
[ Randy Li ]
* [h264d]: move some variables to its scope
* [h264d]: handle svc_extension correctly
[ leo.ding ]
* [vpu_api_legacy]: disprese MPP_DEC_SET_FRAME_INFO function to each codec.
[ Randy Li ]
* [mpp]: wake up the parser thread in the correct place
[ sliver.chen ]
* [test]: add README.md for mpi unit test
* [test]: modify to avoid encode dead loop
[ leo.ding ]
* [avsd]: fix bugs: when video is field
* [mpp_buf_slot]: fix bug: should return the info_set frame back
* [avsd]: add dpb error marking
[ Randy Li ]
* [osal]: fixup for build in linux
* [mpp]: move header files into header directory
[ timkingh.huang ]
* [h264e]: add command of MPP_ENC_SET_QP_RANGE
* [h264e]: Clear OSD data when zero region number
[ sliver.chen ]
* [m2vd]: add m2vd parser mode
[ leo.ding ]
* [mpg4d]: fix hiding bugs when split mode
[ Herman Chen ]
* [base]: Remove misc buffer group creation
* [base]: Disable default print on exit
[ leo.ding ]
* [vpu_api]: add vpuCodecContext parameters
[ Randy Li ]
* [mpp_frame]: add complex formats and more comments
[ leo.ding ]
* [vp9d]: fix error: opening device should close, when deinit
[ Randy Li ]
* h264e: add supporting for more input pixel format
* [drm]: fix a various of bugs in drm allocator
* [drm]: use mmap() in native way for GNU Linux target
[ timkingh.huang ]
* [jpegd]: just scan parts of markers for rv1108
[ sliver.chen ]
* [h264e]: fix h264 xrgb encode bug
[ Herman Chen ]
* [ioctl]: Add compatible patch for different kernel
[ sayon.chen ]
* [rkvenc] modfiy ratecontrol to be more smooth
[ Randy Li ]
* [ion]: file descriptor for the external buffer
[ Herman Chen ]
* [hal_vp9d]: Fix buffer alignment conflict
[ sliver.chen ]
* [test]: add err info check when decode
* [osal]: force mpp use drm buffer when HAVE_DRM are defined.
[ timkingh.huang ]
* [h264e]: rate control for all intra stream
[ Randy Li ]
* [osal]: add queue data type
* [mpp]: use the blokcing queue on the input
* [mpp_list]: release the blocked thread at reset
[ leo.ding ]
* [hal_h264d]: add command for switch hard_mode
[ Randy Li ]
* [mpp]: silent lots of message
* [mpp_buf_slot]: return an error code when stride is invalid
* [jpegd]: stop the future work when the parser is error
* [osal]: add rk3036 platform
* [mpp]: rename and update build rules
* [legacy]: rename mpp legacy library
* [pkgconfig]: offer a sample for pkgconfig
* [build]: a simple build rules
-- Randy Li <randy.li@rock-chips.com> Tue, 21 Nov 2017 07:35:23 +0000
mpp (1.3.1-1) testing; urgency=medium
* [allocator]: force using drm allocator in Linux platform
* [mpp_buffer]: access the index field of buffer info
* [mpi]: decode_put_packet() would return the internal error
* [meta]: use fourcc format to store the meta data for those enum types
* [drm]: use mmap64() in native way for GNU Linux target
* [mpp/hal/vp8d]: rename and add device type info
* [mpp/hal/vp8d]: add support for VDPU1
* [mpp_frame]: export more functions to MppFrame fields
* [h264d]: make H.264 common data and functions together
* [h264d]: move the register table into the other file
* [test]: fix the align problem in decode_advanced()
* [jpegd] rename to its device type
* [jpegd]: isolate the common functions
* [jpegd]: add support for VDPU1
-- Randy Li <randy.li@rock-chips.com> Thu, 09 Mar 2017 09:52:21 +0000
mpp (1.3.0-1) testing; urgency=medium
* [mpp]: a fixup for wrong place scope symbols
* .gitignore: the intial version of gitignore
* build: support cross build in debian
* mpp: add pkgconfig file
* debian: support install for multiarch
* debian: add debian build rules
* utils: move the header files to common include directories
* osal: match system implementation with pre-defined marco
* osal: rename the directory of windows implementation
* osal: build: update the build system
* osal: build: use system default thread library
* osal: build: test: do not install unit test
* mpp: move header files into header directory
* mpp: test: build: rename the mpp library name in unit test
* mpp: legacy: rename mpp legacy library as rockchip_vpu
* mpp: build: update build rules
* build: a simple build rules
* mpp: install mpp library to target
* build: install development files
* build: add pkgconfig support
-- Randy Li <randy.li@rock-chips.com> Wed, 08 Feb 2017 08:37:49 +0000
mpp (73f2ee87a7f836daa6d09b3f65e5abd8e1380318-1) unstable; urgency=low
* The origin version from algorithmn group
-- Randy Li <randy.li@rock-chips.com> Sun, 05 Feb 2017 03:14:14 +0000

1
debian/compat vendored Normal file
View File

@@ -0,0 +1 @@
9

32
debian/control vendored Normal file
View File

@@ -0,0 +1,32 @@
Source: mpp
Priority: optional
Maintainer: Randy Li <randy.li@rock-chips.com>
Build-Depends: debhelper (>= 9), cmake
Standards-Version: 3.9.5
Section: libs
Homepage: http://www.rock-chips.com
#Vcs-Git: git://anonscm.debian.org/collab-maint/mpp.git
#Vcs-Browser: http://anonscm.debian.org/?p=collab-maint/mpp.git;a=summary
Package: librockchip-mpp-dev
Section: libdevel
Architecture: any
Depends: librockchip-mpp1 (= ${binary:Version}), ${misc:Depends}
Description: Media Process Platform
Package: librockchip-mpp1
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Media Process Platform
Package: librockchip-vpu0
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Media Process Platform
Package: librockchip-mpp-static
Architecture: any
Depends: ${misc:Depends}
Description: Media Process Platform

44
debian/copyright vendored Normal file
View File

@@ -0,0 +1,44 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Media Process Platform (MPP) module
Source: https://github.com/rockchip-linux/mpp
Files: *
Copyright: 2015 Herman Chen <herman.chen@rock-chips.com>
License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
# If you want to use GPL v2 or later for the /debian/* files use
# the following clauses, or change it to suit. Delete these two lines
Files: debian/*
Copyright: 2016 Randy Li <randy.li@rock-chips.com>
License: GPL-2+
This package 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 2 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 2 can be found in "/usr/share/common-licenses/GPL-2".
# 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.

2
debian/docs vendored Normal file
View File

@@ -0,0 +1,2 @@
readme.txt
readme.txt

3
debian/librockchip-mpp-dev.install vendored Executable file
View File

@@ -0,0 +1,3 @@
#! /usr/bin/dh-exec
usr/include/*
usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/*

3
debian/librockchip-mpp-static.install vendored Executable file
View File

@@ -0,0 +1,3 @@
#! /usr/bin/dh-exec
usr/lib/${DEB_HOST_MULTIARCH}/librockchip_mpp_static.a
usr/lib/${DEB_HOST_MULTIARCH}/librockchip_vpu_static.a

3
debian/librockchip-mpp1.install vendored Executable file
View File

@@ -0,0 +1,3 @@
#! /usr/bin/dh-exec
usr/lib/${DEB_HOST_MULTIARCH}/librockchip_mpp.so
usr/lib/${DEB_HOST_MULTIARCH}/librockchip_mpp.so.*

3
debian/librockchip-vpu0.install vendored Executable file
View File

@@ -0,0 +1,3 @@
#! /usr/bin/dh-exec
usr/lib/${DEB_HOST_MULTIARCH}/librockchip_vpu.so
usr/lib/${DEB_HOST_MULTIARCH}/librockchip_vpu.so.*

30
debian/rules vendored Executable file
View File

@@ -0,0 +1,30 @@
#!/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 $@ --parallel --buildsystem=cmake
# debmake generated override targets
# This is example for Cmake (See http://bugs.debian.org/641051 )
override_dh_auto_configure:
dh_auto_configure -- \
-DCMAKE_TOOLCHAIN_FILE=/etc/dpkg-cross/cmake/CMakeCross.txt \
-DCMAKE_BUILD_TYPE=Release \
-DRKPLATFORM=ON \
-DHAVE_DRM=ON

1
debian/source/format vendored Normal file
View File

@@ -0,0 +1 @@
3.0 (quilt)