Add generator for kernel entry point.