Added script to generate kernel defines