The solution is obvious but titanic: develop our own hardware. The software side in infrastructure terms is not so dramatic because we already have excellent open source options: OpenBSD, FreeBSD and Linux.
The article is missing one big and critical sector as well: defense.
I think is pretty obvious that buying military tech from the other side of the world is an extremely poor choice. China and Russia (in terms of development) are the examples to follow.
On the other hand it can take many decades and ridiculous amounts of money to develop the defense industry to be neck to neck with the west (if such thing is achievable).
When I see countries praising jet fighters like the F-35 and acquiring or wanting acquire them, do they really understand that is not their fighters at all? If total control over mundane CPUs and hardware is already a reality imagine what level of control the might have over those machines.