HBO’s long-gestating rock ‘n’ roll drama project — from the power quartet of Martin Scorsese, Mick Jagger, George Mastras and Terence Winter — has tapped Juno Temple for a key role.

Temple will play an ambitious assistant at the record label run by Bobby Cannavale’s character in the drama set against the backdrop of New York City in the late 1970s when the punk scene was emerging and the music biz was flush with cash and excess. Olivia Wilde was set on Monday in the role of Cannavale’s wife.

The high-profile casting deals ensure that the untitled project, which has been percolating for more than two years, is moving toward pilot production this summer. Winter and “Breaking Bad” alum Mastras co-wrote the script and Scorsese is attached to direct, on the heels of the pair’s collaboration on HBO’s “Boardwalk Empire” and more recently “The Wolf of Wall Street.”

Jagger is exec producing (and undoubtedly serving as an I-was-there consultant) along with Mastras, who will serve as showrunner if the project is greenlit to series. Also on board as exec producers are Victoria Pearman, Emma Tillinger Koskoff and Rick Yorn.

Temple, who will be seen next opposite Angelina Jolie in Disney’s “Maleficent,” is repped by UTA.