ALAMEDA, Calif. (AP) — Derek Carr and general manager Reggie McKenzie never doubted the two sides could reach a long-term contract agreement to keep the quarterback with the Raiders before Carr’s self-imposed training camp deadline.

Carr was open about how much he wanted to spend his entire career with the organization and after a decade searching for a franchise quarterback the Raiders weren’t about to let a player they drafted and developed leave just as he was becoming a star.

So the two sides were able to agree on a five-year, $125 million extension that makes Carr the NFL’s richest player, at least temporarily, and won’t hinder the team’s ability to give its other young stars like AP Defensive Player of the Year Khalil Mack, receiver Amari Cooper and guard Gabe Jackson new contracts before they hit free agency.

“I think that both sides wanted it to get done,” Carr said Friday. “It was two family members just figuring out how to get along, and we did. We figured out a way to do it so that we have the opportunity to sign the other guys that I think are important to this organization. That was really important to me, not just to take every single dime that we could.”

Carr will still get plenty. The $25 million per year in new money is the richest contract ever in the NFL, beating out the $24.8 million a year Andrew Luck got from Indianapolis. That could be surpassed with Detroit’s Matthew Stafford and Washington’s Kirk Cousins in line for new deals soon.

But Carr is not worried about that and the Raiders are pleased to have the face of their franchise under contract through 2022 as they…