Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
Remove sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanScherer committed Sep 21, 2018
1 parent b86687d commit e79e520
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions scripts/compile_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ IMAGE_NAME["rpi2_3"]=kernel7.img
function create_dir_for_build_user () {
local target_dir=$1

sudo mkdir -p $target_dir
sudo chown $BUILD_USER:$BUILD_GROUP $target_dir
mkdir -p $target_dir
chown $BUILD_USER:$BUILD_GROUP $target_dir
}

function setup_build_dirs () {
Expand Down Expand Up @@ -244,7 +244,7 @@ echo "*** the kernel timestamp is: $NEW_VERSION ***"
echo "#############################################"

# clear build cache to fetch the current raspberry/firmware
sudo rm -fr $RASPBERRY_FIRMWARE
rm -fr $RASPBERRY_FIRMWARE

# setup necessary build environment: dir, repos, etc.
prepare_kernel_building
Expand Down
6 changes: 4 additions & 2 deletions scripts/prepare_build_environment.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
sudo apt-get update
#!/bin/bash

apt-get update

# needed by compile-kernel
for package in git-core build-essential libncurses5-dev bc tree fakeroot devscripts binfmt-support qemu qemu-user-static debootstrap kpartx lvm2 dosfstools apt-cacher-ng debhelper quilt; do
sudo apt-get install -y $package
apt-get install -y $package
done

0 comments on commit e79e520

Please sign in to comment.