build: add KERNEL_MAKE and KERNEL_MAKE_FLAGS variables and move to kernel.mk