zephyr/drivers/Makefile

25 lines
786 B
Makefile

subdir-ccflags-y += -I$(srctree)/include/drivers
subdir-ccflags-y +=-I$(srctree)/arch/$(ARCH)/platforms/$(subst $(DQUOTE),,$(CONFIG_PLATFORM))
subdir-asflags-y +=-I$(srctree)/arch/$(ARCH)/platforms/$(subst $(DQUOTE),,$(CONFIG_PLATFORM))
obj-y = console/
obj-y += random/
obj-y += serial/
obj-y += timer/
obj-y += interrupt_controller/
obj-$(CONFIG_GROVE) += grove/
obj-$(CONFIG_PCI) += pci/
obj-$(CONFIG_BLUETOOTH) += bluetooth/
obj-$(CONFIG_SHARED_IRQ) += shared_irq/
obj-$(CONFIG_SPI) += spi/
obj-$(CONFIG_GPIO) += gpio/
obj-$(CONFIG_I2C) += i2c/
obj-$(CONFIG_PWM) += pwm/
obj-$(CONFIG_ADC) += adc/
obj-$(CONFIG_ETHERNET) += ethernet/
obj-$(CONFIG_WATCHDOG) += watchdog/
obj-$(CONFIG_RTC) += rtc/
obj-$(CONFIG_CLOCK_CONTROL) += clock_control/
obj-$(CONFIG_IPI) += ipi/
obj-y += aio/