scripts: sync with master, gcc linaro changes

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