-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignoring generated .inc files. Makefile: Updating paths firmware/Makefile, firmware/convert.c: Generating the .inc files directly from the usbmon dump with sed and awk only which should work on all platforms. Removing convert.c as it's not needed anymore. Should make it easier to not get merge conflicts because of Lindent indented files etc.
- Loading branch information
Showing
8 changed files
with
28 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
Makefile.local | ||
|
||
/main | ||
firmware/*.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,22 @@ | ||
../firmware.h:firmware.h.in firm_cmds.inc firm_data.inc | ||
m4 firmware.h.in > ../firmware.c | ||
convert:convert.c | ||
#firmware.o: firmware.c firmware.h firm_cmds.inc firm_data.inc | ||
|
||
firm_cmds.inc:firmware.usbmon | ||
cat firmware.usbmon | grep "s 40" | cut -d ' ' -f 8,9,10 | awk ' { print "0x" 0x$$1 ", 0x" $$2 ", 0x" $$3 ","} ' > firm_cmds.inc | ||
firm_data.inc:convert | ||
cat firmware.usbmon | grep "s 40" | cut -d ' ' -f 13- | sed "s, ,,g" | ./convert > firm_data.inc | ||
firm_cmds.inc: firmware.usbmon | ||
cat firmware.usbmon | \ | ||
grep "s 40" | \ | ||
cut -d ' ' -f 8,9,10 | \ | ||
awk ' { print "0x" 0x$$1 ", 0x" $$2 ", 0x" $$3 ","} ' \ | ||
> firm_cmds.inc | ||
|
||
firm_data.inc: firmware.usbmon | ||
cat firmware.usbmon | \ | ||
awk -F " " '$$5 == "s" && $$6 == 40 { if($$11 > 16) exit 1; printf $$13 $$14 $$15 $$16 }' | \ | ||
sed -n -e "s/\(................\)/\1_/g" -e "s/\([0-9a-f][0-9a-f]\)/0x\1, /gp" | \ | ||
tr "_" "\n" \ | ||
> firm_data.inc | ||
|
||
sinclude .deps | ||
.deps: $(wildcard *.c) $(wildcard *.h) | ||
$(CC) $(CFLAGS) $(CPPFLAGS) -MM *.c > .deps | ||
|
||
clean: | ||
rm -f convert firm_cmds.inc firm_data.inc | ||
rm -f $(wildcard *.inc) $(wildcard *.o) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
/* Firmware for the saleae logic analyzer */ | ||
/* Geneated in the firmware directory */ | ||
|
||
#define INDEX_CMD_REQUEST 0 | ||
#define INDEX_CMD_VALUE 1 | ||
#define INDEX_PAYLOAD_SIZE 2 | ||
|
||
unsigned int slogic_firm_cmds[] ={ | ||
include(`firm_cmds.inc') | ||
#include "firm_cmds.inc" | ||
}; | ||
unsigned char slogic_firm_data[]= { | ||
include(`firm_data.inc') | ||
#include "firm_data.inc" | ||
}; | ||
|
||
int slogic_firm_cmds_size() | ||
{ | ||
return sizeof(slogic_firm_cmds); | ||
return sizeof(slogic_firm_cmds); | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters