diff options
author | Keun-young Park <keunyoung@google.com> | 2017-03-28 09:41:36 -0700 |
---|---|---|
committer | Keun-young Park <keunyoung@google.com> | 2017-03-29 12:25:33 -0700 |
commit | c4ffa5c47d0ac84cae57337412c2459f2cb11da5 (patch) | |
tree | 6ca1351a740a5d915e625f6d6d94ea4a9e7e6bc1 /init/Android.mk | |
parent | 8772b3686efad95dc53afca5004fcd62c2797638 (diff) | |
download | core-c4ffa5c47d0ac84cae57337412c2459f2cb11da5.tar.gz core-c4ffa5c47d0ac84cae57337412c2459f2cb11da5.tar.bz2 core-c4ffa5c47d0ac84cae57337412c2459f2cb11da5.zip |
set zero shutdown timeout for eng build
- still it will take time to kill services, < 3 secs in tested device.
bug: 36678028
Test: reboot
Change-Id: I3f3eb83aede8cd950da12e3fcc259eeaf8517c3b
Diffstat (limited to 'init/Android.mk')
-rw-r--r-- | init/Android.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/init/Android.mk b/init/Android.mk index b52c9493f..1ca88d7c5 100644 --- a/init/Android.mk +++ b/init/Android.mk @@ -16,6 +16,14 @@ init_options += \ -DREBOOT_BOOTLOADER_ON_PANIC=0 endif +ifneq (,$(filter eng,$(TARGET_BUILD_VARIANT))) +init_options += \ + -DSHUTDOWN_ZERO_TIMEOUT=1 +else +init_options += \ + -DSHUTDOWN_ZERO_TIMEOUT=0 +endif + init_options += -DLOG_UEVENTS=0 init_cflags += \ |