Moved initVariant weak attribute out of main.cpp

This is the second part to the commit posted here: https://github.com/Chris--A/Arduino/commit/84a1635d9701f01a103cd00d3badd5cf8e778aea