Skip to content

add requirement doc for FreeBSD#35704

Merged
wfurt merged 5 commits intodotnet:masterfrom
wfurt:freebsdReq
May 7, 2020
Merged

add requirement doc for FreeBSD#35704
wfurt merged 5 commits intodotnet:masterfrom
wfurt:freebsdReq

Conversation

@wfurt
Copy link
Member

@wfurt wfurt commented May 1, 2020

add doc how to build FreeBSD runtime on Linux
native build steps TBD.

cc: @am11

@wfurt wfurt added the os-freebsd FreeBSD OS label May 1, 2020
@wfurt wfurt requested review from janvorli and jkotas May 1, 2020 08:03
```
After that, FreeBSD build can be started by running
```
ROOTFS_DIR=$(pwd)/rootfs/freebsd ./build.sh -cross -os FreeBSD
Copy link
Member

@am11 am11 May 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ROOTFS_DIR=$(pwd)/rootfs/freebsd ./build.sh -cross -os FreeBSD
ROOTFS_DIR=$(pwd)/rootfs/freebsd ./build.sh -cross -os FreeBSD -arch x64

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be amd64 or x64? I did not add it as it works without it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think x64 is correct. At some point, some scripts had default cross-build set to arm.

Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding.

docker run --rm --volume $(pwd):$(pwd) --workdir $(pwd) --env ROOTFS_DIR=/crossrootfs/x64 -ti mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-freebsd-11-20200430154008-a84b0d2 ./build.sh -cross -FreeBSD
```

Build using Toolchain Setup
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These instructions duplicate the docker image setup. Do we really need them?

I would just document the docker steps above, and mention that if somebody needs to build without docker, they can look at the dockerfile to find the current steps for setting up the environment.

@wfurt wfurt changed the title add requirement doc for FreebSD add requirement doc for FreeBSD May 1, 2020
@wfurt wfurt merged commit 0ec9747 into dotnet:master May 7, 2020
@wfurt wfurt deleted the freebsdReq branch May 7, 2020 20:47
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants