build kernel command line based on machine setup