Audi will build an F1 powertrain at a new facility in Germany and will decide on which team to partner with by the end of the year.