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

Commit

Permalink
Correct the build on Travis
Browse files Browse the repository at this point in the history
We need to split up the build into a few steps, as Travis won't let us
install GRUB.

This makefile isn't perfect yet, the default command doesn't quite work.
I will deal with that later.
  • Loading branch information
steveklabnik committed Dec 28, 2015
1 parent 82040fb commit b77ccc1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: rust
rust:
- nightly
script:
- make
- make build
addons:
apt:
packages:
Expand Down
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
default:
build:
nasm -f elf64 multiboot_header.asm
nasm -f elf64 boot.asm
ld -n -o kernel.bin -T linker.ld multiboot_header.o boot.o
iso:
mv kernel.bin isofiles/boot/
grub-mkrescue -o os.iso isofiles

run:
qemu-system-x86_64 -drive format=raw,file=os.iso

default: build iso run

0 comments on commit b77ccc1

Please sign in to comment.