diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2016-06-20 11:30:17 +0300 |
---|---|---|
committer | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2016-06-20 11:36:25 +0300 |
commit | d0fb6ff3fd49a0c6061d434d6d95f140b2b56804 (patch) | |
tree | 2babe7e77a3e4afd4c91c4b528f3e1bf2d57a180 |
Initial commitdebian/1.0
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
-rw-r--r-- | debian/changelog | 7 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 15 | ||||
-rw-r--r-- | debian/copyright | 55 | ||||
-rw-r--r-- | debian/qdsp-start.install | 1 | ||||
-rw-r--r-- | debian/qdsp-start.service | 11 | ||||
-rwxr-xr-x | debian/rules | 4 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rwxr-xr-x | qdsp-start | 18 |
9 files changed, 113 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..217eb0c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,7 @@ +qdsp-config (1.0) jessie; urgency=medium + + * Initial release. + + -- Nicolas Dechesne <nicolas.dechesne@linaro.org> Mon, 20 Jun 2016 10:52:08 +0300 + + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..98b7519 --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: qdsp-config +Section: utils +Priority: optional +Maintainer: Nicolas Dechesne <nicolas.dechesne@linaro.org> +Build-Depends: cdbs, debhelper (>= 7) +Standards-Version: 3.9.3 +Homepage: https://git.linaro.org/landing-teams/working/qualcomm/pkg/qdsp-config.git +Vcs-Git: https://git.linaro.org/landing-teams/working/qualcomm/pkg/qdsp-config.git +Vcs-Browser: https://git.linaro.org/landing-teams/working/qualcomm/pkg/qdsp-config.git + +Package: qdsp-start +Architecture: all +Depends: ${misc:Depends}, rmtfs +Description: Start Hexagon QDSP on Qualcomm chipset. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..c9630a9 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,55 @@ +qdsp-config package. + +Authors: + Nicolas Dechesne <nicolas.dechesne@linaro.org + +Copyright: + + Copyright(c) 2016 Linaro, Ltd. All rights reserved. + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + * Neither the name Texas Instruments nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +License: + + GPL-2 (GNU GPL Version 2), + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License version 2 as + published by the Free Software Foundation. + + 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. diff --git a/debian/qdsp-start.install b/debian/qdsp-start.install new file mode 100644 index 0000000..30b3cf7 --- /dev/null +++ b/debian/qdsp-start.install @@ -0,0 +1 @@ +qdsp-start /usr/sbin/ diff --git a/debian/qdsp-start.service b/debian/qdsp-start.service new file mode 100644 index 0000000..99b5f41 --- /dev/null +++ b/debian/qdsp-start.service @@ -0,0 +1,11 @@ +[Unit] +Description=Start the Hexagon QDSP +After=systemd-remount-fs.service +Requires=rmtfs.service + +[Service] +ExecStart=/usr/sbin/qdsp-start +Type=oneshot + +[Install] +WantedBy=multi-user.target diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..2d33f6a --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/qdsp-start b/qdsp-start new file mode 100755 index 0000000..17bc58d --- /dev/null +++ b/qdsp-start @@ -0,0 +1,18 @@ +#!/bin/sh + +# check if we have a qDSP available on the platform +found=0 +for f in $(ls /sys/kernel/debug/remoteproc/*/name 2> /dev/null); do + name=$(cat "$f") + if [ "${name%.hexagon}" != "$name" ] ; then + f=$(dirname "$f") + echo "Found Hexagon at $f" + found=1 + break + fi +done + +# no, then move on.. +[ $found -eq 0 ] && exit + +echo start > "$f"/state |