Creation of Makefiles for drivers directory.

This commit adds the Makefiles that describe the object-bundles
for the drivers directory and every subdirectory below.

Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@linux.intel.com>
Change-Id: Id77cff9cf0ab51827acc2aef32cbed3ec3ad586b
This commit is contained in:
Juan Manuel Cruz 2015-03-09 17:11:37 -06:00 committed by Anas Nashif
parent 1c233a0377
commit f2ae6d5202
7 changed files with 57 additions and 0 deletions

5
drivers/Makefile Normal file
View file

@ -0,0 +1,5 @@
obj-$(CONFIG_DRV_CONSOLE) = console/
obj-$(CONFIG_DRV_SERIAL) += serial/
obj-$(CONFIG_DRV_TIMER) += timer/
obj-$(CONFIG_DRV_INTCTL) += interrupt_controller/
obj-$(CONFIG_DRV_PCI) += pci/

21
drivers/console/Makefile Normal file
View file

@ -0,0 +1,21 @@
EXTRA_CFLAGS +=-I$(srctree)/drivers
ifeq (${CONFIG_BSP_GENERIC_PC},y)
EXTRA_CFLAGS +=-I$(srctree)/arch/x86
EXTRA_CFLAGS +=-I$(srctree)/arch/x86/generic_pc
endif
ifeq (${CONFIG_BSP_QUARK},y)
EXTRA_CFLAGS +=-I$(srctree)/arch/x86
EXTRA_CFLAGS +=-I$(srctree)/arch/x86/generic_pc
endif
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 = uart_console.o

View file

@ -0,0 +1,5 @@
EXTRA_CFLAGS +=-I$(srctree)/drivers
EXTRA_CFLAGS +=-I$(srctree)/arch/x86/generic_pc
EXTRA_CFLAGS +=-I$(srctree)/arch/x86
obj-${CONFIG_PIC}${CONFIG_SHUTOFF_PIC} = i8259.o

1
drivers/pci/Makefile Normal file
View file

@ -0,0 +1 @@
obj-y = pci.o pci_config.o pci_interface.o

1
drivers/random/Makefile Normal file
View file

@ -0,0 +1 @@
obj-y = rand32-timer.o

23
drivers/serial/Makefile Normal file
View file

@ -0,0 +1,23 @@
EXTRA_CFLAGS +=-I$(srctree)/drivers
ifeq (${CONFIG_BSP_GENERIC_PC},y)
EXTRA_CFLAGS +=-I$(srctree)/arch/x86
EXTRA_CFLAGS +=-I$(srctree)/arch/x86/generic_pc
endif
ifeq (${CONFIG_BSP_QUARK},y)
EXTRA_CFLAGS +=-I$(srctree)/arch/x86
EXTRA_CFLAGS +=-I$(srctree)/arch/x86/quark
endif
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-$(CONFIG_DRV_NS16550) = ns16550.o
obj-$(CONFIG_DRV_K20_UART) = k20UartDrv.o
obj-$(CONFIG_DRV_STELLARIS_UART) = stellarisUartDrv.o

1
drivers/timer/Makefile Normal file
View file

@ -0,0 +1 @@
obj-$(CONFIG_PIT) = i8253.o