NEW YORK — Having already played Jackie Robinson and James Brown, Chadwick Boseman will tackle another icon in a courtroom thriller about Thurgood Marshall.

Producers announced Wednesday that Boseman will star as the legendary attorney in “Marshall,” a film to be directed by “Django Unchained” producer Reginald Hudlin. The film focuses on a case early in the career of the Supreme Court justice.

Boseman co-stars as the Black Panther in Marvel’s upcoming “Captain America: Civil War.”