Add mmc-utils package

This commit is contained in:
zador-blood-stained
2017-09-25 19:19:50 +03:00
parent 5b3285d374
commit 35ec00c638
8 changed files with 171 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
# mmc-utils
local package_name="mmc-utils"
local package_repo="https://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git"
local package_ref="branch:master"
local package_install_target="mmc-utils"
local package_component="${release}-utils"
package_checkbuild()
{
true
}
package_checkinstall()
{
# needs to be added to the repository first
false
}

View File

@@ -0,0 +1,18 @@
mmc-utils (0~gita3d3331-3) unstable; urgency=medium
* Update patches/fix_build_ppc64el.patch.
Updated to the correct patch.
-- Nobuhiro Iwamatsu <iwamatsu@debian.org> Sat, 17 Sep 2016 17:46:33 +0900
mmc-utils (0~gita3d3331-2) unstable; urgency=medium
* Fix build on ppc64*, alpha and mipsel64. (Closes: #834787)
-- Nobuhiro Iwamatsu <iwamatsu@debian.org> Tue, 23 Aug 2016 03:23:23 +0900
mmc-utils (0~gita3d3331-1) unstable; urgency=low
* Initial release. (Closes: #833633)
-- Nobuhiro Iwamatsu <iwamatsu@debian.org> Fri, 05 Aug 2016 00:23:56 +0900

View File

@@ -0,0 +1 @@
9

View File

@@ -0,0 +1,40 @@
Source: mmc-utils
Section: utils
Priority: optional
Maintainer: Nobuhiro Iwamatsu <iwamatsu@debian.org>
Build-Depends: debhelper (>= 7.0.50~)
Standards-Version: 3.9.8
Homepage: http://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git
Vcs-Git: git://anonscm.debian.org/collab-maint/mmc-utils.git
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/mmc-utils.git;a=summary
Package: mmc-utils
Architecture: linux-any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Userspace tools for MMC/SD devices
mmc-utils is a tool that supports the MMC device development of linux kernel.
.
The mmc-utils tools can do the following:
- Print and parse extcsd data.
- Determine the eMMC writeprotect status.
- Set the eMMC writeprotect status.
- Set the eMMC data sector size to 4KB by disabling emulation.
- Create general purpose partition.
- Enable the enhanced user area.
- Enable write reliability per partition.
- Print the response to STATUS_SEND (CMD13).
- Enable the boot partition.
- Set Boot Bus Conditions.
- Enable the eMMC BKOPS feature.
- Permanently enable the eMMC H/W Reset feature.
- Permanently disable the eMMC H/W Reset feature.
- Send Sanitize command.
- Program authentication key for the device.
- Counter value for the rpmb device will be read to stdout.
- Read from rpmb device to output.
- Write to rpmb device from data file.
- Enable the eMMC cache feature.
- Disable the eMMC cache feature.
- Print and parse CID data.
- Print and parse CSD data.
- Print and parse SCR data.

View File

@@ -0,0 +1,77 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: mmc-utils
Source: http://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git/
Files: *
Copyright: 2016 SanDisk Corp
License: GPL-2
Files: 3rdparty/*
Copyright: 2005, 2007 Olivier Gay <olivier.gay@a3.epfl.ch>
License: BSD-3-clause
Files: lsmmc.c
Copyright: ST-Ericsson SA 2010-2011 Author: Sebastian Rasmussen
License: BSD-3-clause(ST-Ericsson-SA)
Files: debian/*
Copyright: i2016 Nobuhiro Iwamatsu <iwamatsu@debian.org>
License: GPL-2
License: GPL-2
The Debian packaging is licensed under the GPL, version 2.
.
On Debian GNU/Linux systems, the complete text of the GNU General
Public License, version 2, can be found in the file
/usr/share/common-licenses/GPL-2.
License: BSD-3-clause(ST-Ericsson-SA)
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. 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.
3. Neither the name of the ST-Ericsson SA 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 AUTHOR ``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 AUTHOR 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: BSD-3-clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. 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.
3. Neither the name of the project 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 PROJECT 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 PROJECT 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.

View File

@@ -0,0 +1 @@
man/mmc.1

View File

@@ -0,0 +1,16 @@
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=-relro,-pie
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
%:
dh $@
override_dh_auto_install:
dh_auto_install -- prefix=/usr
override_dh_auto_clean:
dh_auto_clean
rm -rf .mmc.o.d .mmc_cmds.o.d

View File

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