OSDN Git Service

Fix issues to use 64-bit binder on 32-bit image
authorChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 11 Jun 2018 10:12:39 +0000 (18:12 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 15 Jun 2018 09:01:42 +0000 (17:01 +0800)
Fixes: 66fd14a3 (Always use 64-bit binder)

Reported-and-Tested-by: Mauro Rossi <issor.oruam@gmail.com>
BoardConfig.mk
selinux_diffconfig

index 7d71496..2c03a77 100644 (file)
@@ -76,7 +76,7 @@ ifneq ($(strip $(BOARD_GPU_DRIVERS)),)
 TARGET_HARDWARE_3D := true
 endif
 
-BOARD_KERNEL_CMDLINE := root=/dev/ram0 androidboot.selinux=permissive $(if $(filter true,$(TARGET_USES_64_BIT_BINDER)),,vmalloc=192M)
+BOARD_KERNEL_CMDLINE := root=/dev/ram0 androidboot.selinux=permissive $(if $(filter x86_64,$(TARGET_ARCH) $(TARGET_KERNEL_ARCH)),,vmalloc=192M)
 TARGET_KERNEL_DIFFCONFIG := device/generic/common/selinux_diffconfig
 
 COMPATIBILITY_ENHANCEMENT_PACKAGE := true
index 807ed71..4fe6c38 100644 (file)
@@ -5,3 +5,4 @@ CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
 CONFIG_DEFAULT_SECURITY_SELINUX=y
 # CONFIG_DEFAULT_SECURITY_DAC is not set
 CONFIG_DEFAULT_SECURITY="selinux"
+# CONFIG_ANDROID_BINDER_IPC_32BIT is not set