Skip to content

Commit 9e2fd01

Browse files
committed
Document how to customize the DFU endpoint URL
1 parent 2040e7a commit 9e2fd01

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ This bootloader implements the draft [WebUSB](https://wicg.github.io/webusb/) sp
7777

7878
For a demo implementing dfu-util features in the browser, see https://devanlai.github.io/webdfu/dfu-util/
7979

80+
To customize the WebUSB landing page, you can use the `LANDING_PAGE_URL` define. To set it from the command line, you can use the `DEFS` environment variable:
81+
82+
DEFS='-DLANDING_PAGE_URL=\"example.com/dfu-util/\"' make
83+
84+
Note that the URL scheme shoul not be part of the `LANDING_PAGE_URL` string. As of this writing, it is hardcoded to HTTPS.
85+
8086
## USB VID/PID
8187
The USB VID/PID pair ([1209/DB42](http://pid.codes/1209/DB42/)) is allocated through the [pid.codes](http://pid.codes/) open-source USB PID program.
8288

0 commit comments

Comments
 (0)