removed extra endif from kernel.mk