Platform-raspberrypi maxgerhardt - CDC USB Descriptors

I’m trying to create a lot of CDC ports on the same device - but I seem to be limited to 4 even if I set CFG_TUD_CDC higher, say 6 when using the maxgerhardt PIO platform. My first guess is I will need updated USB descriptors to support the additional devices, can I use custom USB Descriptors with this core, or do I need to revert to pick-sdk?

This project exposes 6 ports using the SDK, but seems to have some fairly substantial changes required in order to make it work.

Fixed with some build flags to allow the override.

build_flags =
	-Wl,--wrap,tud_descriptor_configuration_cb
	-Wl,--wrap,tud_descriptor_device_cb
	-Wl,--wrap,tud_descriptor_string_cb

and declaring descriptors as

const uint8_t *__wrap_tud_descriptor_device_cb(void)
const uint8_t *__wrap_tud_descriptor_configuration_cb(uint8_t index)
const uint16_t *__wrap_tud_descriptor_string_cb(uint8_t index, uint16_t langid)

Source