Skeleton for prepare_kernel. Experimented with applying git patches.