scripts: merge in gcc linaro changes

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>