building up the kernel dependencies and middleware infrastructure