mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
Patch actual board name into the USB iProduct string descriptor
"SIMtrace 2 compatible device" is pretty generic. Let's have the actual board name inside the string descriptors, giving a more user friendly experience in case users are issuing 'lsusb' and the like. Change-Id: Ibcc338b504bd2a1605e31d7f5eadb7161f547c6a
This commit is contained in:
@@ -195,7 +195,11 @@ $(BIN) $(OBJ):
|
||||
usbstring/usbstring: usbstring/usbstring.c
|
||||
gcc $^ -o $@
|
||||
|
||||
apps/$(APP)/usb_strings_generated.h: apps/$(APP)/usb_strings.txt usbstring/usbstring
|
||||
.PHONY: apps/$(APP)/usb_strings.txt.patched
|
||||
apps/$(APP)/usb_strings.txt.patched: apps/$(APP)/usb_strings.txt
|
||||
sed "s/PRODUCT_STRING/$(shell cat libboard/$(BOARD)/product_string.txt)/" $< > $@
|
||||
|
||||
apps/$(APP)/usb_strings_generated.h: apps/$(APP)/usb_strings.txt.patched usbstring/usbstring
|
||||
cat $< | usbstring/usbstring > $@
|
||||
|
||||
define RULES
|
||||
@@ -235,6 +239,7 @@ log:
|
||||
lsof $(SERIAL) && echo "log is already opened" || ( sed -u "s/\r//" $(SERIAL) | ts )
|
||||
|
||||
clean:
|
||||
-rm -f apps/$(APP)/usb_strings.txt.patched
|
||||
-rm -fR $(OBJ)/*.o $(BIN)/*.bin $(BIN)/*.elf $(BIN)/*.elf.txt $(BIN)/*.map $(BIN)/*.lst `find . -name \*.p`
|
||||
|
||||
install:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
sysmocom - s.f.m.c. GmbH
|
||||
SIMtrace 2 compatible device
|
||||
PRODUCT_STRING
|
||||
SIMtrace Sniffer
|
||||
SIMtrace CCID
|
||||
SIMtrace Card Emulation
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
sysmocom - s.f.m.c. GmbH
|
||||
SIMtrace 2 compatible device
|
||||
PRODUCT_STRING
|
||||
DFU (Device Firmware Upgrade)
|
||||
RAM
|
||||
Flash (Application Partition)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
sysmocom - s.f.m.c. GmbH
|
||||
SIMtrace 2 compatible device
|
||||
PRODUCT_STRING
|
||||
SIMtrace Sniffer
|
||||
SIMtrace CCID
|
||||
SIMtrace Card Emulation
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
sysmocom - s.f.m.c. GmbH
|
||||
SIMtrace 2 compatible device
|
||||
PRODUCT_STRING
|
||||
SIMtrace Sniffer
|
||||
SIMtrace CCID
|
||||
SIMtrace Card Emulation
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
sysmocom - s.f.m.c. GmbH
|
||||
SIMtrace 2 compatible device
|
||||
PRODUCT_STRING
|
||||
SIMtrace Sniffer
|
||||
SIMtrace CCID
|
||||
SIMtrace Card Emulation
|
||||
|
||||
1
firmware/libboard/octsimtest/product_string.txt
Normal file
1
firmware/libboard/octsimtest/product_string.txt
Normal file
@@ -0,0 +1 @@
|
||||
sysmoOCTSIM-Tester
|
||||
1
firmware/libboard/owhw/product_string.txt
Normal file
1
firmware/libboard/owhw/product_string.txt
Normal file
@@ -0,0 +1 @@
|
||||
OWHW
|
||||
1
firmware/libboard/qmod/product_string.txt
Normal file
1
firmware/libboard/qmod/product_string.txt
Normal file
@@ -0,0 +1 @@
|
||||
sysmoQMOD (Quad Modem)
|
||||
1
firmware/libboard/simtrace/product_string.txt
Normal file
1
firmware/libboard/simtrace/product_string.txt
Normal file
@@ -0,0 +1 @@
|
||||
SIMtrace 2
|
||||
Reference in New Issue
Block a user