Get rid of undefined Makefile variables and change deprecated -mcpu to -mtune

Change-Id: I60f88cfd89af528630f9b591f1c8d064c7236ebe