Any other idea?
Kconfig? Seems to be the simplest solution to me. Is this really something that users would want to change at runtime? If you want to have it you build it in, otherwise you don't... same with all other optional features (e.g. timestamps, CBMEM console, stuff like that).