diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2018-03-08 19:33:06 +0100 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2018-03-08 19:33:06 +0100 |
commit | 0d8a614a4a04cee03a98857a9e5694c2ce2d7590 (patch) | |
tree | 111b1ec4b4980b9dfd187f40b72b62586ed24fd5 /create.sh | |
parent | 2bb95cbb525323af64f2af84a32336f0c9137976 (diff) |
refactoring and more progress
Diffstat (limited to 'create.sh')
-rwxr-xr-x | create.sh | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -22,7 +22,7 @@ set -euo pipefail # target options export CARCH=riscv64 -export CHOST=riscv64-linux-gnu +export CHOST=riscv64-unknown-linux-gnu export LINUX_ARCH=riscv export GCC_MARCH=rv64gc export GCC_MABI=lp64d @@ -38,8 +38,8 @@ export startdir="$(pwd)" export topbuilddir="$startdir"/build export topsrcdir="$startdir"/src -# output control -. src/feedback.sh +. "$topsrcdir"/shared/feedback.sh +. "$topsrcdir"/shared/common.sh [ $(id -u) -ne 0 ] && die "must be root" [ -z "${SUDO_USER:-}" ] && die "SUDO_USER must be set in environment" @@ -48,12 +48,13 @@ mkdir -p "$topbuilddir" chown $SUDO_USER "$topbuilddir" # Stage 1: prepare cross toolchain -./src/stage1/stage1.sh +. "$topsrcdir"/stage1/stage1.sh # Stage 2: cross-compile base-devel -./src/stage2/stage2.sh +. "$topsrcdir"/stage2/stage2.sh # Stage 3: libremakepkg native base-devel -./src/stage3/stage3.sh +. "$topsrcdir"/stage3/stage3.sh msg "all done." +notify --text "*Bootstrap Finished*" |