From 3e1c4926806ca685ab591cb6948fa3aa5014591c Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sat, 3 Nov 2012 02:29:00 +0100 Subject: Introduce scsitool for sony nwz players This tool can send vendor specific scsi commands to sony nwz players such as getting serial number, model id, device info, and others. It can potentially be used to get some private keys stored on the device but probably not the KAS used to encrypt firmware upgrades images(UPG). Change-Id: Ia49c1edf8d421b20c4e9afeb1192e00e06eb6047 --- utils/nwztools/scsitools/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 utils/nwztools/scsitools/Makefile (limited to 'utils/nwztools/scsitools/Makefile') diff --git a/utils/nwztools/scsitools/Makefile b/utils/nwztools/scsitools/Makefile new file mode 100644 index 0000000000..ed4bc88d0b --- /dev/null +++ b/utils/nwztools/scsitools/Makefile @@ -0,0 +1,20 @@ +DEFINES= +CC=gcc +LD=gcc +CFLAGS=-g -std=c99 -W -Wall $(DEFINES) +LDFLAGS=-lsgutils2 +BINS=scsitool + +all: $(BINS) + +%.o: %.c + $(CC) $(CFLAGS) -c -o $@ $< + +scsitool: scsitool.o misc.o + $(LD) -o $@ $^ $(LDFLAGS) + +clean: + rm -fr *.o + +veryclean: + rm -rf $(BINS) -- cgit v1.2.3