Skip to content

Commit 9e53c54

Browse files
committed
usb: product descriptor: encode version
Encode the firmware version in the USB *Product* descriptor string. ```console $ lsusb Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x2fe3 NordicSemiconductor idProduct 0x000c bcdDevice 3.05 iManufacturer 1 ZEPHYR iProduct 2 ly11-ble-fw-v1.2.4 iSerial 3 6E1531D1CB5B6DC6 : ```
1 parent 22e20b7 commit 9e53c54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ TARGETS += build.nrf52840dongle_nrf52840/hci_usb_h4/zephyr/zephyr-dfu.zip
5656
build.%/hci_usb_h4/zephyr/zephyr.hex: check-zephyr
5757
source $(ZEPHYR_ROOT)/zephyr-env.sh ; \
5858
west build --build-dir build.$*/hci_usb_h4 --pristine auto \
59-
--board $*
59+
--board $* \
60+
-- -DCONFIG_USB_DEVICE_PRODUCT=\"$(PRJTAG)-v$(VERSION_TAG)\"
6061

6162
%/zephyr-dfu.zip: %/zephyr.hex
6263
nrfutil pkg generate --hw-version 52 --sd-req=0x00 \

0 commit comments

Comments
 (0)