123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #!/bin/sh
- set -e
- HOSTBIN=$(go env GOHOSTOS)_$(go env GOHOSTARCH)/bin
- export GOBIN=$(pwd)/$HOSTBIN
- echo GOBIN is now $GOBIN
- echo Building harvey-os.org commands into $HOSTBIN
- echo actually this will not work. You can thank go modules any time.
- echo so get these commands yourself.
- echo go install harvey-os.org/cmd/build@latest
- echo go install harvey-os.org/cmd/elf2c@latest
- echo go install harvey-os.org/cmd/mksys@latest
- echo go install harvey-os.org/cmd/data2c@latest
- echo go install harvey-os.org/cmd/qtap@latest
- echo 'Can not build ... until ipfs gets fixed :-('
- #echo go install harvey-os.org/cmd/...
- #echo Building u-root into $HOSTBIN
- # Download u-root sources into $GOPATH because that's what u-root expects.
- # See https://github.com/u-root/u-root/issues/805
- # and https://github.com/u-root/u-root/issues/583
- #go get -d -u github.com/u-root/u-root
- #go install github.com/u-root/u-root@latest
- # this will make booting a VM easier
- mkdir -p tmp
- cat <<EOF
- To build for x86_64 (CC=clang is also supported):
- export HARVEY=$(pwd)
- PATH=\$PATH:\$HARVEY/$HOSTBIN CC=gcc ARCH=amd64 build
- To build for riscv (does not work at present):
- export HARVEY=$(pwd)
- TOOLPREFIX=riscv64-linux-gnu- CC=gcc ARCH=riscv build
- To enable access to files, create a harvey and none user (none is only required for drawterm/cpu access):
- sudo useradd harvey
- sudo useradd none
- To run in qemu in cpu mode:
- ./util/GO9PCPU
- or to run in terminal mode:
- ./util/GO9PTERM
- To netboot, follow the instructions here: https://github.com/Harvey-OS/harvey/wiki/Booting-Harvey-on-real-hardware-I-(TFTP)
- EOF
|