Add build-rr.sh -k flag to build without userland libraries#46
Merged
anttikantee merged 4 commits intorumpkernel:masterfrom Sep 3, 2015
Merged
Add build-rr.sh -k flag to build without userland libraries#46anttikantee merged 4 commits intorumpkernel:masterfrom
anttikantee merged 4 commits intorumpkernel:masterfrom
Conversation
Member
|
Can you add support for Travis? |
build-rr.sh
Outdated
Member
There was a problem hiding this comment.
Can this bit somehow go into config.mk so that you don't need to keep typing "make kernonly" all the time in platform/hw?
Member
Author
|
I covered all the comments so far (thanks) and also fixed some other mistakes. I'll give the buildtests/Travis support a shot. |
Member
|
Thanks. Please rebase your branch to clean up unnecessary commits and drop a note when you think it's ready to merge. |
Currently only supported for the 'hw' platform. This builds rumprun without any userland code (i.e. libc, app-tools), for custom builds that invoke rump kernel functions directly.
Member
Author
|
Added the -k flag to buildtests.sh as well; and rebased the code now. Ready to be merged from my side, once Travis is green. |
anttikantee
added a commit
that referenced
this pull request
Sep 3, 2015
Add build-rr.sh -k flag to build without userland libraries
Member
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This will build the rump kernel bits and the platform code (i.e. librumpuser), but without libc or (as a consequence) app-tools. The motivation behind this is a use case where one invokes the rump kernel directly.
As there is no rumprun_base, the client code needs to provide the mainthread entry point invoked by the platform code. Linking also has to be done manually. This pull request contains some example code, showing how one could do this. Because there is no libc,
compiler_rtfrom the NetBSD tree is built if-kis used.Currently, only the
hwplatform is supported. I haven't found the time yet to fixxensupport, e.g.mini-os/types.hcurrently includes some userland headers.