Okay I found it in menuconfig - and I learned something new, the ‘/’ function, thanks!
Although it helped with some of the link problems, now it seems to have to do with security stuff. I wonder what setting I am missing now and need to search for?
c:/users/niels/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\nodemcu-32s\src\blufi_security.o:(.literal.blufi_dh_negotiate_data_handler+0x24): undefined reference to `mbedtls_aes_setkey_enc'
c:/users/niels/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\nodemcu-32s\src\blufi_security.o:(.literal.blufi_aes_encrypt+0x0): undefined reference to `mbedtls_aes_crypt_cfb128'
c:/users/niels/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\nodemcu-32s\src\blufi_security.o:(.literal.blufi_security_init+0x0): undefined reference to `mbedtls_aes_init'
c:/users/niels/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\nodemcu-32s\src\blufi_security.o:(.literal.blufi_security_deinit+0x0): undefined reference to `mbedtls_aes_free'
c:/users/niels/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\nodemcu-32s\src\blufi_security.o: in function `blufi_dh_negotiate_data_handler':
C:\Users\niels\Documents\PlatformIO\Projects\BlueConfig/src/blufi_security.c:112: undefined reference to `mbedtls_aes_setkey_enc'
.
.
.