about summary refs log tree commit diff homepage
path: root/scripts/build/p-uclibc-linux-ubuntu.inc
diff options
context:
space:
mode:
authorMartin Nowack <m.nowack@imperial.ac.uk>2022-03-25 22:57:31 +0000
committerCristian Cadar <c.cadar@imperial.ac.uk>2022-03-30 12:18:59 +0100
commit818275b7249250780ddd5ed021cae64288514270 (patch)
tree9ed884e1db33bb33ce992dc6afeaff75ee85f81b /scripts/build/p-uclibc-linux-ubuntu.inc
parent71c1c45fe266d73e307f422f09f2afdc41c70ec3 (diff)
downloadklee-818275b7249250780ddd5ed021cae64288514270.tar.gz
Add support to `sudo` if necessary
Instead if executing system-relevant changes directly, use `sudo` on
Ubuntu-based machines.

Simplifies the installation procedure.
Diffstat (limited to 'scripts/build/p-uclibc-linux-ubuntu.inc')
-rw-r--r--scripts/build/p-uclibc-linux-ubuntu.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/build/p-uclibc-linux-ubuntu.inc b/scripts/build/p-uclibc-linux-ubuntu.inc
index 36bdce58..e10304aa 100644
--- a/scripts/build/p-uclibc-linux-ubuntu.inc
+++ b/scripts/build/p-uclibc-linux-ubuntu.inc
@@ -1,7 +1,7 @@
-#!/bin/bash
 # Build dependencies
 install_build_dependencies_uclibc() { 
-  apt update -y
+  source "${DIR}/common-functions"
+  with_sudo apt update -y
 
   dependencies=(
     build-essential
@@ -13,5 +13,5 @@ install_build_dependencies_uclibc() {
   )
 
   #Install essential dependencies
-  apt -y --no-install-recommends install "${dependencies[@]}"
+  with_sudo apt -y --no-install-recommends install "${dependencies[@]}"
 }
\ No newline at end of file