Using g++ to complie to a executable file
Syntax: g++ -o UpgradeSWGenerator UpgradeSWGenerator.cc

Using UpgradeSWGenerator to generate UpgradeSW.sh
Syntax: UpgradeSWGenerator $DeviceInfo $ImagePath $EraseUserData

	$DeviceInfo and ImagePath are needed.
	If you want to earase user data then set $EraseUserData to 1.