[Zigbee] How to overwrite libzboss_config

Setup: 

NCS v2.4.1

Hi, 

I would like to customize the ZBOSS binary by disabling some of the features which I am not going to use anyway. Like CONFIG_ZB_HAVE_SERIAL, CONFIG_ZB_USE_LEDS, CONFIG_ZB_USE_BUTTONS etc.


libzboss_config.h note:

/**
* This is an autogenerated file.
* Please use Kconfig to change it.
*/
I tried to set this configs to 'n' in my project prj.conf but then my build fails.  
What is the proper way of disabling any of the configs listed in nrfxlib/zboss/production/include/osif/libzboss_config.h? 
Will the binary be OTA compatible after disabling some of these features ? 
Thanks in advance,
Pawel



Related