ANDROID: mm: build alloc_contig_dump_pages in page_alloc.o

GKI has CONFIG_DYNAMIC_DEBUG_CORE. Thus, to enable only the
specific alloc_contig_dump_pages without needing all pr_debug
in every source files is using -DCONFIG_DYNAMIC_MODULE
when the page_alloc.o compiled.

Bug: 182195592
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I93266eb4161b3653389c737d4c767fd5d1083339
This commit is contained in:
Minchan Kim
2021-03-11 12:05:40 -08:00
parent 28f6641041
commit 8d03e49505

View File

@@ -57,6 +57,7 @@ obj-y := filemap.o mempool.o oom_kill.o fadvise.o \
# Give 'page_alloc' its own module-parameter namespace # Give 'page_alloc' its own module-parameter namespace
page-alloc-y := page_alloc.o page-alloc-y := page_alloc.o
page-alloc-$(CONFIG_SHUFFLE_PAGE_ALLOCATOR) += shuffle.o page-alloc-$(CONFIG_SHUFFLE_PAGE_ALLOCATOR) += shuffle.o
CFLAGS_page_alloc.o += -DDYNAMIC_DEBUG_MODULE
obj-y += page-alloc.o obj-y += page-alloc.o
obj-y += init-mm.o obj-y += init-mm.o