bootstrap.sh 829 B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. echo Building the build tool...
  3. GOBIN="$(pwd)/util" GOPATH="$(pwd)/util/third_party:$(pwd)/util" go get -u github.com/Harvey-OS/ninep/cmd/ufs
  4. # GOBIN="$(pwd)/util" GOPATH="$(pwd)/util/third_party:$(pwd)/util" go get -f -u bldy.build/bldy
  5. GOBIN="$(pwd)/util" GOPATH="$(pwd)/util/third_party:$(pwd)/util" go get harvey/cmd/...
  6. # this will make booting a VM easier
  7. mkdir -p tmp
  8. cat <<EOF
  9. # We support RISC-V, but the default is x86_64 (which we call amd64 for historical reasons):
  10. export ARCH=amd64
  11. # You also need to export your C compiler flavor (gcc, clang, gcc-7...)
  12. export CC=gcc
  13. # And build:
  14. ./util/build
  15. # See \`build -h' for more information on the build tool.
  16. To enable access to files, create a harvey and none user:
  17. sudo useradd harvey
  18. sudo useradd none
  19. none is only required for drawterm/cpu access
  20. EOF