Trouble with Makefile after adding LE Secure Connections

I am in the process of adding LE Secure connections to our project and am having trouble and receiving lots of errors while attempting to Makefile it.
We added nrf_ble_lesc_request_handler() to the main loop, and in sdk_config.h enabled PM_LESC_ENABLED and NRF_BLE_LESC_ENABLED. We also enabled the crypto module, and compared with ble_app_gls example in the ble_peripheral examples and added all of the missing paths in the Makefile, mainly all the crypto related ones.

However upon trying to make, I get lots of errors in the nrf_ble_lesc.c file, with lots of undefined references to functions like 'nrf_crypto_ecc_public_key_to_raw' and 'nrf_crypto_ecc_byte_order_invert' for example.

Upon investigating this, I found most of those functions come from the 'nrf_crypto_ecc.c' file which requrires NRF_CRYPTO_ECC_ENABLED to be enabled. For that to be enabled it appears I need NRF_CRPYTO module in SDK_config to be enabled (which I have) and any curve from a list of backends to be enabled. So I investigated that and I find this:

What is SDK_DOXYGEN and how do I define it?

Thanks for your help

Related