bootstrap.sh 656 B

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