diff options
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 41 |
1 files changed, 38 insertions, 3 deletions
@@ -3,6 +3,19 @@ set -e mkdir -p lib/ +SYSTEM_NAME="$(uname -s)" +MAKE="make" +GIT="git" +GCC="gcc" +CLANG="clang" + + +if [ "$SYSTEM_NAME" = "OpenBSD" ] +then + MAKE="$(which gmake)" +fi + + # arg0: Output path. # arg1: Command for downloading try_fetch() { @@ -14,25 +27,47 @@ try_fetch() { fi } +prepare() { + if [[ -d .git/ ]] + then + # Copy git hooks + cp -v builddeps/hooks/* .git/ + fi +} + fetch() { - try_fetch "git clone https://github.com/limine-bootloader/limine.git --branch=v6.x-branch-binary --depth=1" "stand/limine" + try_fetch "git clone https://github.com/limine-bootloader/limine.git --branch=v9.3.0-binary --depth=1" "stand/limine" } build_limine() { - make -C stand/limine/ + $MAKE -C stand/limine/ } build_kconf() { - make -C tools/kconf/ + $MAKE -C tools/kconf/ +} + +build_omar() { + $MAKE -C tools/omar/ } build() { build_limine build_kconf + build_omar } echo "----------------------------------" echo +echo " Preparing build environment... " +echo +echo "----------------------------------" +echo -e "\n" + +prepare + +echo "----------------------------------" +echo echo " Fetching sources... " echo echo "----------------------------------" |