Logue will play Det. Harvey Bullock, the rough-around-the-edges partner of the future Commissioner Gordon, played by McKenzie.

The Warner Bros. TV project has a series commitment from the network. Bruno Heller, creator of “The Mentalist,” wrote the pilot script that details the origins of Batman’s rock-ribbed Commissioner Gordon and his early battles with Gotham City’s supervillains.

Heller is exec producing with pilot director Danny Cannon. Project is skedded to start lensing March 17 in — where else? — Gotham.

Logue has been a TV regular for years. He’s most recently been seen on FX’s “Sons of Anarchy,” History’s “Vikings” and BBC America’s “Copper.” He’s repped by UTA, Kipperman Management and attorney Shep Rosenman of Katz Golden Sullivan and Rosenman.

Donal Logue is an inspired choice to play Detective Harvey Bullock! Created by Archie Goodwin during his classic run on Detective Comics in 1973, Bullock is the unshaven, undisciplined and inebriated soul of the Gotham Police Squad, the yin to James Gordon’s yang. Logue has the bulldog energy to bring Bullock to vivid life, as his role on LIFE showed. GOTHAM is in good hands!