Browse Source

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
changes/40/426440/1
Ben Swartzlander 2 years ago
parent
commit
3c8053515a
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      init-buildroot.sh

+ 5
- 0
init-buildroot.sh View File

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

Loading…
Cancel
Save