How to change Vendor/Product ID when compiling bootloaders

The VID/PID for boards with native USB hardware is taken from the boards.txt file. But this is valid only when compiling the sketch.
The Bootloader VID/PID is defined when compiling the bootloader.