Browse Source

README: add instructions about building on a mac.

Change-Id: I4a328b0a8d0fff4299fd36deb79d354e169570c1
Aki Nyrhinen 8 years ago
parent
commit
4f986dc867
1 changed files with 12 additions and 4 deletions
  1. 12 4
      README

+ 12 - 4
README

@@ -35,14 +35,22 @@ up for code-review:
 
 One last thing, we need to initialize any submodules:
 
-    	git submodule init
+	git submodule init
 	git submodule update
 
-You're now all set, you can build the whole thing just by running
 
-	./BUILD all
+If you are on a Mac, you should install macports (https://www.macports.org/) and do
+
+	port install x86_64-elf-gcc
+	port install x86_64-elf-binutils
+	port install qemu
+	export TOOLPREFIX=x86_64-elf-
 
-which should take maybe a minute.
+and you're now all set, you can build the whole thing just by running
+
+	export HARVEY=$(pwd)
+	export ARCH=amd64
+	./BUILD all
 
 Once building is complete, you can try booting the kernel with qemu