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>steinar/wifi_calib_4_9_kernel
parent
3ca9760fdf
commit
a67cd5482f
|
@ -1,2 +1 @@
|
||||||
subdir-y := blackfin \
|
subdir-y := blackfin
|
||||||
pcmcia
|
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
# List of programs to build
|
|
||||||
hostprogs-y := crc32hash
|
|
||||||
|
|
||||||
# Tell kbuild to always build the programs
|
|
||||||
always := $(hostprogs-y)
|
|
||||||
|
|
||||||
HOSTCFLAGS_crc32hash.o += -I$(objtree)/usr/include
|
|
|
@ -27,7 +27,7 @@ pcmcia:m0149cC1ABf06pfn00fn00pa725B842DpbF1EFEE84pc0877B627pd00000000
|
||||||
The hex value after "pa" is the hash of product ID string 1, after "pb" for
|
The hex value after "pa" is the hash of product ID string 1, after "pb" for
|
||||||
string 2 and so on.
|
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
|
to determine the crc32 hash. Simply pass the string you want to evaluate
|
||||||
as argument to this program, e.g.:
|
as argument to this program, e.g.:
|
||||||
$ ./crc32hash "Dual Speed"
|
$ tools/pcmcia/crc32hash "Dual Speed"
|
||||||
|
|
|
@ -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
|
T: git git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia.git
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: Documentation/pcmcia/
|
F: Documentation/pcmcia/
|
||||||
|
F: tools/pcmcia/
|
||||||
F: drivers/pcmcia/
|
F: drivers/pcmcia/
|
||||||
F: include/pcmcia/
|
F: include/pcmcia/
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
CC := $(CROSS_COMPILE)gcc
|
||||||
|
CFLAGS := -I../../usr/include
|
||||||
|
|
||||||
|
PROGS := crc32hash
|
||||||
|
|
||||||
|
all: $(PROGS)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -fr $(PROGS)
|
Loading…
Reference in New Issue