summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorChristopher N. Hesse <raymanfx@gmail.com>2015-11-29 01:08:40 +0100
committerChristopher N. Hesse <raymanfx@gmail.com>2015-11-29 01:08:40 +0100
commit34dd21414db0d8be8c2d43445ab6fa9b9e39b505 (patch)
treeedc9209b7e61e5473dbdc2e7bf4858eeaa15902c /init
parent5029693a0c8c6793e5306333af09d6604761c9c2 (diff)
downloadsystem_core-34dd21414db0d8be8c2d43445ab6fa9b9e39b505.zip
system_core-34dd21414db0d8be8c2d43445ab6fa9b9e39b505.tar.gz
system_core-34dd21414db0d8be8c2d43445ab6fa9b9e39b505.tar.bz2
init: Allow targets to ignore the ro.revision property
Change-Id: I789879cde2797474b9303fd5bbf10d4760e6b822
Diffstat (limited to 'init')
-rw-r--r--init/Android.mk4
-rw-r--r--init/init.cpp2
2 files changed, 6 insertions, 0 deletions
diff --git a/init/Android.mk b/init/Android.mk
index 99d12c2..159c4f2 100644
--- a/init/Android.mk
+++ b/init/Android.mk
@@ -64,6 +64,10 @@ ifneq ($(TARGET_IGNORE_RO_BOOT_SERIALNO),)
LOCAL_CFLAGS += -DIGNORE_RO_BOOT_SERIALNO
endif
+ifneq ($(TARGET_IGNORE_RO_BOOT_REVISION),)
+LOCAL_CFLAGS += -DIGNORE_RO_BOOT_REVISION
+endif
+
LOCAL_MODULE:= init
LOCAL_C_INCLUDES += \
external/zlib \
diff --git a/init/init.cpp b/init/init.cpp
index 1c45795..df04ea3 100644
--- a/init/init.cpp
+++ b/init/init.cpp
@@ -814,7 +814,9 @@ static void export_kernel_boot_props() {
{ "ro.boot.baseband", "ro.baseband", "unknown", },
{ "ro.boot.bootloader", "ro.bootloader", "unknown", },
{ "ro.boot.hardware", "ro.hardware", "unknown", },
+#ifndef IGNORE_RO_BOOT_REVISION
{ "ro.boot.revision", "ro.revision", "0", },
+#endif
};
for (size_t i = 0; i < ARRAY_SIZE(prop_map); i++) {
char value[PROP_VALUE_MAX];