Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools: move pcmcia crc32hash tool from Documentation

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 <linux@dominikbrodowski.net>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>

+13 -11
+1 -2
Documentation/Makefile
··· 1 - subdir-y := blackfin \ 2 - pcmcia 1 + subdir-y := blackfin
Documentation/pcmcia/.gitignore tools/pcmcia/.gitignore
-7
Documentation/pcmcia/Makefile
··· 1 - # List of programs to build 2 - hostprogs-y := crc32hash 3 - 4 - # Tell kbuild to always build the programs 5 - always := $(hostprogs-y) 6 - 7 - HOSTCFLAGS_crc32hash.o += -I$(objtree)/usr/include
Documentation/pcmcia/crc32hash.c tools/pcmcia/crc32hash.c
+2 -2
Documentation/pcmcia/devicetable.txt
··· 27 27 The hex value after "pa" is the hash of product ID string 1, after "pb" for 28 28 string 2 and so on. 29 29 30 - Alternatively, you can use crc32hash (see Documentation/pcmcia/crc32hash.c) 30 + Alternatively, you can use crc32hash (see tools/pcmcia/crc32hash.c) 31 31 to determine the crc32 hash. Simply pass the string you want to evaluate 32 32 as argument to this program, e.g.: 33 - $ ./crc32hash "Dual Speed" 33 + $ tools/pcmcia/crc32hash "Dual Speed"
+1
MAINTAINERS
··· 9106 9106 T: git git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia.git 9107 9107 S: Maintained 9108 9108 F: Documentation/pcmcia/ 9109 + F: tools/pcmcia/ 9109 9110 F: drivers/pcmcia/ 9110 9111 F: include/pcmcia/ 9111 9112
+9
tools/pcmcia/Makefile
··· 1 + CC := $(CROSS_COMPILE)gcc 2 + CFLAGS := -I../../usr/include 3 + 4 + PROGS := crc32hash 5 + 6 + all: $(PROGS) 7 + 8 + clean: 9 + rm -fr $(PROGS)