bootstrap.sh 798 B

1234567891011121314151617181920212223242526
  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 -u github.com/bldy/build/cmd/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. # And build:
  12. ./util/build
  13. # See \`build -h' for more information on the build tool.
  14. To build with bldy just type bldy //:kernel
  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