cfdfeed973
1. Add conditions based on Kconfig options for functions which are compiled based on those options. 2. Static allocation is always enabled, move corresponding functions into the common list.