build: cleanup, first step for unified call to kernel_config() - needs testing
(cherry picked from commit 1b9c601e4ceb3e7bbb717df9d177ef094fb7d486)