Create memory accounting lunch target
This memory accounting lunch target will involve
coupled debug kernel with memory accounting configs.
Bug: 175771521
Signed-off-by: Lucas Wei <lucaswei@google.com>
Change-Id: I5fa9c14cb536fc99eed56de515d81b88fe46effb
diff --git a/BoardConfig-common.mk b/BoardConfig-common.mk
index 96ae578..17a472c 100644
--- a/BoardConfig-common.mk
+++ b/BoardConfig-common.mk
@@ -241,6 +241,10 @@
else ifeq (,$(filter-out sargo_kernel_debug_memory bonito_kernel_debug_memory, $(TARGET_PRODUCT)))
BOARD_VENDOR_KERNEL_MODULES += \
$(wildcard device/google/bonito-kernel/debug_memory/*.ko)
+else ifeq (,$(filter-out sargo_kernel_debug_memory_accounting bonito_kernel_debug_memory_accounting, $(TARGET_PRODUCT)))
+BOARD_VENDOR_KERNEL_MODULES += \
+ $(wildcard device/google/bonito-kernel/debug_memory_acounting/*.ko)
+BOARD_KERNEL_CMDLINE += page_owner=on
else ifeq (,$(filter-out sargo_kernel_debug_locking bonito_kernel_debug_locking, $(TARGET_PRODUCT)))
BOARD_VENDOR_KERNEL_MODULES += \
$(wildcard device/google/bonito-kernel/debug_locking/*.ko)
@@ -260,6 +264,8 @@
BOARD_PREBUILT_DTBIMAGE_DIR := device/google/bonito-kernel/kasan
else ifeq (,$(filter-out sargo_kernel_debug_memory bonito_kernel_debug_memory, $(TARGET_PRODUCT)))
BOARD_PREBUILT_DTBIMAGE_DIR := device/google/bonito-kernel/debug_memory
+else ifeq (,$(filter-out sargo_kernel_debug_memory_accounting bonito_kernel_debug_memory_accounting, $(TARGET_PRODUCT)))
+BOARD_PREBUILT_DTBIMAGE_DIR := device/google/bonito-kernel/debug_memory_accounting
else ifeq (,$(filter-out sargo_kernel_debug_locking bonito_kernel_debug_locking, $(TARGET_PRODUCT)))
BOARD_PREBUILT_DTBIMAGE_DIR := device/google/bonito-kernel/debug_locking
else ifeq (,$(filter-out sargo_kernel_debug_hang bonito_kernel_debug_hang, $(TARGET_PRODUCT)))