When building for multiple boards, the object files from the shared sources src/ end up in the same directory, i.e. _build/src/.
I gave it a shot and tried to fix it, but can't come up with a simple solution. Creating this issue for visibility. For now, one has to remove _build before building for a different board, otherwise the usb descriptor etc will be reused from the previous build.