1 # copyright (c) 2011 - 2012 espressif system
3 #ifneq ($(KERNELRELEASE),)
4 # kbuild part of makefile
6 CROSS_COMPILE := $(TOOLCHAIN_PREFIX)
8 MODPATH := $(shell pwd)
9 DRIVER_NAME := esp_prealloc
11 ####################### NORMAL OPTION ########################################
12 EXTRA_CFLAGS += -DESP_PRE_MEM # normal mode, support SDIO
13 #EXTRA_CFLAGS += -DESP_PRE_MEM -DESP_SPI # normal mode, support SPI
14 ##############################################################################
16 ####################### ADVANCE OPTION ###########################
17 #EXTRA_CFLAGS += -DESP_SLAB # ex mode, most users unlikely use this mode, if someone use, please add this macro extractly
18 ##############################################################################
19 obj-y:= $(DRIVER_NAME).o
20 $(DRIVER_NAME)-y += esp_mem.o
21 $(DRIVER_NAME)-y += esp_slab.o
22 $(DRIVER_NAME)-y += esp_mem_init.o