Changed dependency generation rules.
Updated toolchain and config file setup.
Fixed directory creation order.
Added Kconfig rules.