Generate profile.d script in compile