Install packages automatically on Ubuntu

For gate jobs, we need to automate the installing of
dependencies, so check if we're on Ubuntu and handle that
case automatically. Other distros can still use the script
but need to manually take care of dependencies.

Change-Id: Id2c6a815c018cdfe3b288c38c7033275f25d8f13
This commit is contained in:
Ben Swartzlander 2017-01-27 19:57:11 -05:00
parent aab91a6caa
commit 3c8053515a
1 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,11 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
if which lsb_release 2> /dev/null && [ $(lsb_release -i -s) = "Ubuntu" ]
then
sudo apt-get -y install curl unzip bc python quilt parted qemu-utils \
build-essential gcc-multilib
fi
VERSION=2016.02
FILENAME=buildroot-${VERSION}.tar.bz2