Creation of Makefiles for arch directory.

This commit creates all the Makefiles that describe the object-
bundles for the arch directory and  every sub-directory below.

Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@linux.intel.com>
Change-Id: Icb4ebcfc430a132e514507149ad5ab6878eeed64
This commit is contained in:
Juan Manuel Cruz 2015-03-09 17:05:07 -06:00 committed by Anas Nashif
commit 1c233a0377
18 changed files with 168 additions and 0 deletions

6
arch/Makefile Normal file
View file

@ -0,0 +1,6 @@
ifeq (${ARCH},arm)
obj-y += arm/
endif
ifeq (${ARCH},x86)
obj-y += x86/
endif

6
arch/arm/Makefile Normal file
View file

@ -0,0 +1,6 @@
obj-y = core/
obj-y += bsp/
obj-y += timer/
obj-$(CONFIG_BSP_FSL_FRDM_K64F) += fsl_frdm_k64f/
obj-$(CONFIG_BSP_TI_LM3S6965) += ti_lm3s6965/

View file

@ -0,0 +1,15 @@
EXTRA_CFLAGS +=-I $(srctree)/include/bsp
EXTRA_CFLAGS +=-I $(srctree)/kernel/common/bsp
EXTRA_CFLAGS +=-I $(srctree)/drivers
ifeq (${CONFIG_BSP_FSL_FRDM_K64F},y)
EXTRA_CFLAGS +=-I $(srctree)/arch/arm/fsl_frdm_k64f
endif
ifeq (${CONFIG_BSP_TI_LM3S6965},y)
EXTRA_CFLAGS +=-I $(srctree)/arch/arm/ti_lm3s6965
endif
obj-y = vector_table.o reset.o \
prep_c.o scs.o scb.o
obj-$(CONFIG_RUNTIME_NMI) += nmi.o

14
arch/arm/bsp/Makefile Normal file
View file

@ -0,0 +1,14 @@
EXTRA_CFLAGS +=-I $(srctree)/include/bsp
EXTRA_CFLAGS +=-I $(srctree)/kernel/common/bsp
EXTRA_CFLAGS +=-I $(srctree)/drivers
ifeq (${CONFIG_BSP_FSL_FRDM_K64F},y)
EXTRA_CFLAGS +=-I $(srctree)/arch/arm/fsl_frdm_k64f
endif
ifeq (${CONFIG_BSP_TI_LM3S6965},y)
EXTRA_CFLAGS +=-I $(srctree)/arch/arm/ti_lm3s6965
endif
obj-y = CortexM/
obj-y += sysFatalErrorHandler.o rand32.o

16
arch/arm/core/Makefile Normal file
View file

@ -0,0 +1,16 @@
EXTRA_CFLAGS += -I$(srctree)/kernel/nanokernel/include
EXTRA_CFLAGS += -I$(srctree)/kernel/microkernel/include
EXTRA_CFLAGS += -I$(srctree)/target/src/bsp/arm
EXTRA_AFLAGS := ${EXTRA_CFLAGS}
obj-y = atomic.o exc_exit.o ffs.o irq_init.o \
nano_fiber_abort.o swap.o basepri.o \
fault.o gdb_stub_irq_vector_table.o \
irq_manage.o nanocontext.o cpu_idle.o \
fault_s.o gdb_stub.o isr_wrapper.o \
nanofatal.o
obj-y += offsets/
obj-$(MICROKERNEL) += task_abort.o

View file

@ -0,0 +1 @@
obj-y = offsets.o

View file

@ -0,0 +1,14 @@
EXTRA_CFLAGS +=-I $(srctree)/include/bsp
EXTRA_CFLAGS +=-I $(srctree)/kernel/common/bsp
EXTRA_CFLAGS +=-I $(srctree)/drivers
EXTRA_CFLAGS +=-I $(srctree)/arch/arm/fsl_frdm_k64f
EXTRA_AFLAGS := ${EXTRA_CFLAGS}
obj-y += system.o
obj-y += nmi_on_reset.o
obj-y += wdog.o
obj-$(CONFIG_IRQ_VECTOR_TABLE_BSP) += irq_vector_table.o
obj-$(CONFIG_SW_ISR_TABLE_BSP) += sw_isr_table.o

View file

@ -0,0 +1,14 @@
EXTRA_CFLAGS +=-I $(srctree)/include/bsp
EXTRA_CFLAGS +=-I $(srctree)/kernel/common/bsp
EXTRA_CFLAGS +=-I $(srctree)/drivers
EXTRA_CFLAGS +=-I $(srctree)/arch/arm/ti_lm3s6965
EXTRA_AFLAGS := ${EXTRA_CFLAGS}
obj-y += system.o
obj-y += nmi_on_reset.o
obj-y += scp.o
obj-$(CONFIG_IRQ_VECTOR_TABLE_BSP) += irq_vector_table.o
obj-$(CONFIG_SW_ISR_TABLE_BSP) += sw_isr_table.o

7
arch/arm/timer/Makefile Normal file
View file

@ -0,0 +1,7 @@
EXTRA_CFLAGS +=-I $(srctree)/include/bsp
EXTRA_CFLAGS +=-I $(srctree)/kernel/common/bsp
EXTRA_CFLAGS +=-I $(srctree)/drivers
EXTRA_CFLAGS +=-I $(srctree)/arch/arm/fsl_frdm_k64f
obj-y = systick.o
obj-$(CONFIG_GDB_INFO) += systick_gdb.o

8
arch/x86/Makefile Normal file
View file

@ -0,0 +1,8 @@
obj-y = core/
obj-y += bsp/
obj-y += timer/
obj-y += interrupt_controller/
obj-$(CONFIG_MICROKERNEL) += task/
obj-$(CONFIG_BSP_QUARK) += quark/
obj-$(CONFIG_BSP_GENERIC_PC) += generic_pc/

19
arch/x86/bsp/Makefile Normal file
View file

@ -0,0 +1,19 @@
ifeq (${CONFIG_BSP_GENERIC_PC},y)
EXTRA_CFLAGS +=-I$(srctree)/arch/x86/generic_pc
endif
ifeq (${CONFIG_BSP_QUARK},y)
EXTRA_CFLAGS +=-I$(srctree)/arch/x86/quark
endif
obj-y = crt0.o sysFatalErrorHandler.o driver_static_irq_stubs.o
ifneq ($(CONFIG_CLFLUSH_INSTRUCTION_SUPPORTED),y)
obj-y += cache_s.o
endif
obj-$(CONFIG_LOAPIC) += systemApic.o
obj-$(CONFIG_CLFLUSH_INSTRUCTION_SUPPORTED) += cache.o
obj-$(CONFIG_PIC) += systemPic.o
obj-$(CONFIG_PIC) += i8259Boi.o
obj-$(CONFIG_TEST_RANDOM_GENERATOR) += rand32.o

19
arch/x86/core/Makefile Normal file
View file

@ -0,0 +1,19 @@
EXTRA_CFLAGS += -I$(srctree)/kernel/nanokernel/include
EXTRA_CFLAGS += -I$(srctree)/kernel/microkernel/include
obj-y = gdt.o nanocontext.o nanofatal.o cpuhalt.o \
excstub.o swap.o ffs.o intboiexit.o msr.o \
excconnect.o inthndlset.o
ifeq ($(CONFIG_LOCK_INSTRUCTION_UNSUPPORTED),y)
obj-y += nanoatomic_nolock.o
else
obj-y += nanoatomic.o
endif
obj-$(CONFIG_FP_SHARING) += nanofloat.o
obj-$(CONFIG_UNALIGNED_WRITE_UNSUPPORTED) += unaligned.o
ifneq ($(CONFIG_NO_ISRS),y)
obj-y += intconnect.o intstub.o
endif

View file

@ -0,0 +1 @@
obj-y = offsets.o

View file

@ -0,0 +1,5 @@
EXTRA_CFLAGS +=-I$(srctree)/arch/x86
EXTRA_CFLAGS +=-I$(srctree)/drivers
EXTRA_AFLAGS := ${EXTRA_CFLAGS}
obj-y = system.o

View file

@ -0,0 +1,6 @@
EXTRA_CFLAGS +=-I$(srctree)/drivers
EXTRA_CFLAGS +=-I$(srctree)/arch/x86/generic_pc
EXTRA_CFLAGS +=-I$(srctree)/arch/x86
obj-$(CONFIG_LOAPIC) += loApicIntr.o
obj-$(CONFIG_IOAPIC) += ioApicIntr.o

7
arch/x86/quark/Makefile Normal file
View file

@ -0,0 +1,7 @@
EXTRA_CFLAGS += -I$(srctree)/include/bsp
EXTRA_CFLAGS += -I$(srctree)/kernel/common/bsp
EXTRA_CFLAGS += -I$(srctree)/drivers
EXTRA_AFLAGS := ${EXTRA_CFLAGS}
obj-y = system.o

4
arch/x86/task/Makefile Normal file
View file

@ -0,0 +1,4 @@
EXTRA_CFLAGS +=-I$(srctree)/kernel/microkernel/include
EXTRA_AFLAGS := ${EXTRA_CFLAGS}
obj-y = strtask.o

6
arch/x86/timer/Makefile Normal file
View file

@ -0,0 +1,6 @@
EXTRA_CFLAGS +=-I$(srctree)/drivers
EXTRA_CFLAGS +=-I$(srctree)/arch/x86/generic_pc
EXTRA_CFLAGS +=-I$(srctree)/arch/x86
obj-$(CONFIG_HPET_TIMER) += hpet.o
obj-$(CONFIG_LOAPIC_TIMER) += loApicTimer.o