include $(KERNEL_MIXED_BUILD_PATH)/Kbuild.common

# this build is tmp solution for b/243501482,
# not support for projects don't use Android.mk.
# Should be deferred-free-helper-objs+=.. if it really needs to support
ifeq ($(LOCAL_MODULE),mtk_ion.ko)
ccflags-y += -I$(srctree)/lib
mtk_ion-objs := ion.o \
		ion_buffer.o \
		ion_dma_buf.o \
		ion_heap.o
obj-$(CONFIG_ION) += mtk_ion.o
endif

ifeq ($(LOCAL_MODULE),ion_sys_heap.ko)
obj-$(CONFIG_ION_SYSTEM_HEAP) += ion_sys_heap.o
ion_sys_heap-objs := heaps/ion_system_heap.o heaps/ion_page_pool.o
endif

ifeq ($(LOCAL_MODULE),ion_cma_heap.ko)
obj-$(CONFIG_ION_CMA_HEAP) += ion_cma_heap.o
ion_cma_heap-objs := heaps/ion_cma_heap.o
endif
