OTTAWA -- The Liberal government is giving $40 million in federal money to BlackBerry to help the company develop self-driving car technologies.

Prime Minister Justin Trudeau was in the Ottawa suburb of Kanata on Friday to announce the support for BlackBerry, the one-time smartphone leader that is now working on advanced software for autonomous vehicles.

BlackBerry says its QNX software is already in tens of millions of cars, guiding systems related to driver assistance, hands-free features and entertainment consoles.

The federal money, to come from the Strategic Innovation Fund, will go toward software development and skills training for workers.

The company is putting $300 million of its own money into the initiative, expected to create 800 jobs over the next decade at BlackBerry's Kanata campus as well as support 300 existing jobs there.