Will Smith is to star in a biopic of homeless stockbroker Chris Gardner.

Former San Francisco Mayor Willie Brown told KRON 4 Morning News that the film has been in the pipeline for the past two years.

The movie will tell the story of Chris Gardner, who often slept rough with his son whilst he earned enough money as a stockbroker to start up his own business, Gardner Rich & Co. in 1987 Chicago.