From 3c8053515a88956015fa5bccebb124df1cdeb1a3 Mon Sep 17 00:00:00 2001 From: Ben Swartzlander Date: Fri, 27 Jan 2017 19:57:11 -0500 Subject: [PATCH] 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 --- init-buildroot.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init-buildroot.sh b/init-buildroot.sh index 3590106..feabfcc 100755 --- a/init-buildroot.sh +++ b/init-buildroot.sh @@ -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