Details

If you have HAVE_USBSTACK defined in config-<target>.h from your normal rockbox build, then attempt to build the bootloader, the resulting bootloader image will fail (because some of the USBSTACK code will be called without initialization.)

It may be better to simply #undef HAVE_USBSTACK when BOOTLOADER is defined, but the attached patch instead keeps the code around and avoids calling it.