scripts: sync with master

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

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