summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-02-25 22:32:06 +0100
committerDees Troy <dees_troy@teamw.in>2016-02-29 15:22:48 +0100
commita60c78602d2b6746ad093fc3fd30fcc8980aac55 (patch)
tree79db5161ef5e4dc2b589eeabaa3d37f3b60868f2 /Android.mk
parentpartitions: Fix path based Find_Next_Storage (diff)
downloadandroid_bootable_recovery-a60c78602d2b6746ad093fc3fd30fcc8980aac55.tar
android_bootable_recovery-a60c78602d2b6746ad093fc3fd30fcc8980aac55.tar.gz
android_bootable_recovery-a60c78602d2b6746ad093fc3fd30fcc8980aac55.tar.bz2
android_bootable_recovery-a60c78602d2b6746ad093fc3fd30fcc8980aac55.tar.lz
android_bootable_recovery-a60c78602d2b6746ad093fc3fd30fcc8980aac55.tar.xz
android_bootable_recovery-a60c78602d2b6746ad093fc3fd30fcc8980aac55.tar.zst
android_bootable_recovery-a60c78602d2b6746ad093fc3fd30fcc8980aac55.zip
Diffstat (limited to '')
-rw-r--r--Android.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 2a91c09ef..08dbf6e16 100644
--- a/Android.mk
+++ b/Android.mk
@@ -466,6 +466,16 @@ include $(CLEAR_VARS)
BUSYBOX_LINKS := $(shell cat external/busybox/busybox-full.links)
exclude := tune2fs mke2fs mkdosfs mkfs.vfat gzip gunzip
+# Having /sbin/modprobe present on 32 bit devices with can cause a massive
+# performance problem if the kernel has CONFIG_MODULES=y
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 22; echo $$?),0)
+ ifneq ($(TARGET_ARCH), arm64)
+ ifneq ($(TARGET_ARCH), x86_64)
+ exclude += modprobe
+ endif
+ endif
+endif
+
# If busybox does not have restorecon, assume it does not have SELinux support.
# Then, let toolbox provide 'ls' so -Z is available to list SELinux contexts.
ifeq ($(TWHAVE_SELINUX), true)