summaryrefslogtreecommitdiff
path: root/Kernel/makeall.sh
blob: 5eec01557c5c6d7eb5c621e0457542cbac733cf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
set -e

script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
cd "$script_path"

# Get user and group details for setting qemu disk image ownership
build_user=$(id -u)
build_group=$(id -g)
export build_user
export build_group

sudo id

MAKE=make

if [ "$(uname -s)" = "OpenBSD" ]; then
	MAKE=gmake
fi

$MAKE -C ../ clean && \
    $MAKE -C ../ && \
    $MAKE -C ../ test && \
    $MAKE -C ../ install &&
    sudo -E PATH="$PATH" ./build-image-qemu.sh