Cross compiler is now set by the arch
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 6 Jun 2013 21:19:25 +0000 (14:19 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 6 Jun 2013 21:19:25 +0000 (14:19 -0700)
Also removes old -I path, which probably hasn't been used since before the
symlinks-era.

Makefile
kern/arch/i686/Makefile [new file with mode: 0644]
kern/arch/riscv/Makefile [new file with mode: 0644]
kern/arch/sparc/Makefile [new file with mode: 0644]

index 90553bc..37707ce 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -183,11 +183,11 @@ include $(srctree)/scripts/Kbuild.include
 
 # Akaros Build Environment
 # =========================================================================
-AKAROSINCLUDE   := \
-                               -I$(srctree)/kern/arch/ \
-                               -I$(srctree)/kern/include/
+AKAROSINCLUDE   := -I$(srctree)/kern/include/
 
-CROSS_COMPILE := $(ARCH)-ros-
+# CROSS_COMPILE is defined per-arch.  Each arch can set other makeflags, kbuild
+# directories, etc. 
+include $(srctree)/kern/arch/$(ARCH)/Makefile
 
 CC         := $(CROSS_COMPILE)gcc 
 CPP        := $(CROSS_COMPILE)g++
diff --git a/kern/arch/i686/Makefile b/kern/arch/i686/Makefile
new file mode 100644 (file)
index 0000000..3df576d
--- /dev/null
@@ -0,0 +1 @@
+CROSS_COMPILE := i686-ros-
diff --git a/kern/arch/riscv/Makefile b/kern/arch/riscv/Makefile
new file mode 100644 (file)
index 0000000..8c19136
--- /dev/null
@@ -0,0 +1 @@
+CROSS_COMPILE := riscv-ros-
diff --git a/kern/arch/sparc/Makefile b/kern/arch/sparc/Makefile
new file mode 100644 (file)
index 0000000..869f988
--- /dev/null
@@ -0,0 +1 @@
+CROSS_COMPILE := sparc-ros-