1
0

arch/arm: Separate out architecture-specifics

This commit is contained in:
2012-10-14 23:02:14 -04:00
parent 03dfa30b70
commit a1fb385d97
10 changed files with 58 additions and 7 deletions

View File

@ -17,9 +17,9 @@ OBJCOPY = $(TOOL_PREFIX)objcopy
OBJDUMP = $(TOOL_PREFIX)objdump
# Define the flags we'll need for our tools
INCLUDES = -I include
INCLUDES = -I include -I arch/$(ARCH)/include
KCFLAGS = -g -Wall -Wextra -Werror -nostdlib -nostartfiles -fno-builtin -std=gnu99 -include config.h $(INCLUDES)
KLDFLAGS = -T link.ld -L /usr/lib/gcc/arm-elf/4.7.0/
KLDFLAGS = -T arch/$(ARCH)/kernel.ld -L /usr/lib/gcc/arm-elf/4.7.0/
EXTRA_LIBS = -lgcc
# Include the config file so we don't compile/link unnecessary objects
@ -30,7 +30,7 @@ KOBJS :=
# Initialize sub-directory Makefile inclusion
BASEDIR = $(shell pwd)
SUBDIRS := boot kernel drivers
SUBDIRS := arch/$(ARCH) kernel drivers
ifneq (,$(SUBDIRS))
include $(patsubst %,%/kernel.mk,$(SUBDIRS))
endif