device.mk: Correct endif and remove inline kernel