https://patchew.org/QEMU/20260715134447.56007-1-kirill%40korins.ky/

Index: hw/usb/meson.build
--- hw/usb/meson.build.orig
+++ hw/usb/meson.build
@@ -28,6 +28,11 @@ system_ss.add(when: 'CONFIG_USB_DWC2', if_true: files(
 system_ss.add(when: 'CONFIG_USB_DWC3', if_true: files('hcd-dwc3.c'))
 system_ss.add(when: 'CONFIG_USB_CHIPIDEA', if_true: files('chipidea.c'))
 
+if 'CONFIG_TCG' in config_all_accel
+  mips_ss.add(when: 'CONFIG_MIPS_OCTEON',
+              if_true: files('octeon_usb.c'))
+endif
+
 system_ss.add(when: 'CONFIG_IMX_USBPHY', if_true: files('imx-usb-phy.c'))
 system_ss.add(when: 'CONFIG_VT82C686', if_true: files('vt82c686-uhci-pci.c'))
 system_ss.add(when: 'CONFIG_XLNX_VERSAL', if_true: files('xlnx-versal-usb2-ctrl-regs.c'))
