summaryrefslogtreecommitdiff
path: root/boot/1.0/default
diff options
context:
space:
mode:
Diffstat (limited to 'boot/1.0/default')
-rw-r--r--boot/1.0/default/Android.bp9
-rw-r--r--boot/1.0/default/service.cpp4
2 files changed, 12 insertions, 1 deletions
diff --git a/boot/1.0/default/Android.bp b/boot/1.0/default/Android.bp
index b7d2ec8971..10634e8535 100644
--- a/boot/1.0/default/Android.bp
+++ b/boot/1.0/default/Android.bp
@@ -39,6 +39,13 @@ cc_binary {
"libhidlbase",
"libutils",
"android.hardware.boot@1.0",
+ "libhwbinder",
],
-
+ arch: {
+ arm: {
+ cflags: [
+ "-DARCH_ARM_32"
+ ],
+ },
+ },
}
diff --git a/boot/1.0/default/service.cpp b/boot/1.0/default/service.cpp
index f3996efe9c..2b50740f2a 100644
--- a/boot/1.0/default/service.cpp
+++ b/boot/1.0/default/service.cpp
@@ -17,10 +17,14 @@
#include <android/hardware/boot/1.0/IBootControl.h>
#include <hidl/LegacySupport.h>
+#include <hwbinder/ProcessState.h>
using ::android::hardware::boot::V1_0::IBootControl;
using android::hardware::defaultPassthroughServiceImplementation;
int main (int /* argc */, char * /* argv */ []) {
+#ifdef ARCH_ARM_32
+ android::hardware::ProcessState::initWithMmapSize((size_t)8192);
+#endif
return defaultPassthroughServiceImplementation<IBootControl>();
}