Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Refactor build #63

Merged
merged 4 commits into from
Sep 26, 2016
Merged

Refactor build #63

merged 4 commits into from
Sep 26, 2016

Conversation

steveklabnik
Copy link
Member

This PR refactors the build process for the kernel. Now, a simple

$ xargo build --release --target x86_64-unknown-intermezzos-gnu

is enough to build the kernel entirely. See the individual commits for more.

Really that's what we're using it for, so it's a better name.
This PR changes intermezzOS to build entirely with "cargo build." See
the makefile for the big diff here.

Major changes:

1. We now are a binary target instead of a library target.
2. I moved non-asm files to the top level, rather than being in a
   subdir.
3. A build.rs now calls out to nasm to build the boot code, rather than
   invoking it ourselves.
4. The interrupts crate needs rlibc. I'm not 100% sure why, but it needs
   it, so there it is.

Thanks again to @japaric for leading the way ahead here.
Someday this will be cargo test --all, but not yet.

Also, for some reason, cargo test in the main project, complaining about PIC
@steveklabnik steveklabnik merged commit 746a466 into master Sep 26, 2016
@steveklabnik steveklabnik deleted the refactor-build branch September 26, 2016 17:17
@slayerjain
Copy link
Contributor

what's xargo?

@jtdowney
Copy link

@slayerjain
Copy link
Contributor

ah nice 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants