Skip to content

Commit

Permalink
tools: move pcmcia crc32hash tool from Documentation
Browse files Browse the repository at this point in the history
Move pcmcia crc32hash tool from Documentation to tools/pcmcia and
remove it from Documentation Makefile. Update location information
for this tool. Create a new Makefile to build pcmcia. It can be built
from top level directory or from pcmcia directory:

Run make -C tools/pcmcia or cd tools/pcmcia; make

Acked-by: Dominik Brodowski <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Acked-by: Jonathan Corbet <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
  • Loading branch information
Shuah Khan committed Sep 23, 2016
1 parent 3ca9760 commit a67cd54
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 11 deletions.
3 changes: 1 addition & 2 deletions Documentation/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
subdir-y := blackfin \
pcmcia
subdir-y := blackfin
7 changes: 0 additions & 7 deletions Documentation/pcmcia/Makefile

This file was deleted.

4 changes: 2 additions & 2 deletions Documentation/pcmcia/devicetable.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pcmcia:m0149cC1ABf06pfn00fn00pa725B842DpbF1EFEE84pc0877B627pd00000000
The hex value after "pa" is the hash of product ID string 1, after "pb" for
string 2 and so on.

Alternatively, you can use crc32hash (see Documentation/pcmcia/crc32hash.c)
Alternatively, you can use crc32hash (see tools/pcmcia/crc32hash.c)
to determine the crc32 hash. Simply pass the string you want to evaluate
as argument to this program, e.g.:
$ ./crc32hash "Dual Speed"
$ tools/pcmcia/crc32hash "Dual Speed"
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -9106,6 +9106,7 @@ W: http://lists.infradead.org/mailman/listinfo/linux-pcmcia
T: git git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia.git
S: Maintained
F: Documentation/pcmcia/
F: tools/pcmcia/
F: drivers/pcmcia/
F: include/pcmcia/

Expand Down
File renamed without changes.
9 changes: 9 additions & 0 deletions tools/pcmcia/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CC := $(CROSS_COMPILE)gcc
CFLAGS := -I../../usr/include

PROGS := crc32hash

all: $(PROGS)

clean:
rm -fr $(PROGS)
File renamed without changes.

0 comments on commit a67cd54

Please sign in to comment.