The New York Giants have agreed upon a one-year deal with Josh Freeman.

Freeman will compete for the No. 2 quarterback job with Curtis Painter and Ryan Nassib.

Eli Manning underwent surgery on his ankle last week.

Freeman, 26, a first-round pick of the Buccaneers in 2009, started 56 games for the team. He enjoyed his best season in 2010, when he started 16 games and threw for 3,451 yards and 25 touchdowns with six interceptions. 

He has struggled since, throwing 43 interceptions over the past four seasons.