Commit Graph
9 Commits
Author SHA1 Message Date
Uwe Kleine-König a04361659d mmc-utils: make use of dependency information generated by gcc
While these dependency information was generated from the start of mmc-utils
it was never used.

Using these informations results in mmc being rebuild when e.g. mmc.h
was touched.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Chris Ball <chris@printf.net>
2018-02-16 20:19:31 -05:00
Sebastian Rasmussen 4af1749d23 mmc-utils: Merge the lsmmc tool into mmc-utils
The lsmmc tools contains an extensive parser of the CID, CSD, SCR
registers from userspace. The utility works as-is and uses sysfs
to read the register values.

The original code is created by Sebastian Rasmussen and still lives
in an attachment in the mail archive of linux-mmc. It need to be merged
into mmc-utils repository, which is convenient for testing MMC device
from userspace.

Change since v3:
 - Remove the unused EXT_CSD parser in lsmmc.c file.

Signed-off-by: Sebastian Rasmussen <sebras@gmail.com>
Signed-off-by: Chris Ball <chris@printf.net>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
2016-02-26 09:42:38 -05:00
Roman Peniaev 35c31feacf mmc-utils: RPMB: add HMAC SHA256 support
RPMB requires digital signature of the message.  Take the implementation
of HMAC SHA256 from this place https://github.com/ogay/hmac.git

Actually this is BSD license, IANAL but according to my understanding
nothing terrible will happen if we provide all the original copyrights.

Signed-off-by: Roman Pen <r.peniaev@gmail.com>
Cc: Ben Gardiner <bengardiner@nanometrics.ca>
Signed-off-by: Chris Ball <chris@printf.net>
2014-08-12 10:29:37 -04:00
Mike Frysinger a8276f539b fix make handling
Fix the recurisve make targets by using $(MAKE).  Otherwise we get lots of
warnings and issues with parallel builds.

Fix the install target -- the man subdir was missing a dummy target.

Add proper .PHONY markings.

Change-Id: I640d42af0bdf96baf6ff0ca022fd3f7f444b2d05
Signed-off-by: Mike Frysinger <vapier@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/179621
Reviewed-by: Grant Grundler <grundler@chromium.org>
Signed-off-by: Chris Ball <chris@printf.net>
2014-01-23 14:24:41 -05:00
Ben Gardiner 6117755361 allow environment and command-line supplied make vars
Most useful when cross-compiling.

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Signed-off-by: Chris Ball <cjb@laptop.org>
2013-06-27 11:11:04 -04:00
Chris Ball d4faeabb78 Turn on gcc optimization (-O2)
This is required by distros that use Fortify.
2012-09-21 18:16:22 +08:00
Chris Ball 45541d55fa Hook up "mmc extcsd read/write" commands.
Signed-off-by: Chris Ball <cjb@laptop.org>
2012-02-12 12:03:30 -05:00
Johan RUDHOLM a8bfde77e0 Add extcsd write-protect read/write code
This was posted to linux-mmc@ by Johan Rudholm.

Signed-off-by: Chris Ball <cjb@laptop.org>
2012-02-12 11:52:25 -05:00
Goffredo Baroncelli 80d2660fa9 Create "mmc" utility
This commit was made by Chris Ball, but reuses framework code from
Goffredo's btrfs-progs/btrfs.c.

Signed-off-by: Chris Ball <cjb@laptop.org>
2012-02-12 11:43:14 -05:00