Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd6bc117 authored by Lingutla Chandrasekhar's avatar Lingutla Chandrasekhar Committed by Gerrit - the friendly Code Review server
Browse files

ion: ignore ion_cma_heap if CONFIG_ION is disabled



Ignore ion_cma_heap/ion_cma_secure_heap compilation
when CONFIG_ION disabled.
Compile only when both ION and CMA enabled, to avoid
compilation errors.

Change-Id: I20a2f82202a7d30f5719f12aa64bff152e0902ff
Signed-off-by: default avatarLingutla Chandrasekhar <clingutla@codeaurora.org>
parent 60d40c19
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
obj-$(CONFIG_ION) +=	ion.o ion_heap.o ion_page_pool.o ion_system_heap.o \
			ion_carveout_heap.o ion_chunk_heap.o ion_system_secure_heap.o
obj-$(CONFIG_CMA) += ion_cma_heap.o ion_cma_secure_heap.o
ifeq ($(CONFIG_CMA),y)
obj-$(CONFIG_ION) += ion_cma_heap.o ion_cma_secure_heap.o
endif
obj-$(CONFIG_ION_TEST) += ion_test.o
ifdef CONFIG_COMPAT
obj-$(CONFIG_ION) += compat_ion.o