arch/arm: Separate out architecture-specifics
This commit is contained in:
6
Makefile
6
Makefile
@ -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
|
||||
|
Reference in New Issue
Block a user