From 34dd21414db0d8be8c2d43445ab6fa9b9e39b505 Mon Sep 17 00:00:00 2001 From: "Christopher N. Hesse" Date: Sun, 29 Nov 2015 01:08:40 +0100 Subject: init: Allow targets to ignore the ro.revision property Change-Id: I789879cde2797474b9303fd5bbf10d4760e6b822 --- init/Android.mk | 4 ++++ init/init.cpp | 2 ++ 2 files changed, 6 insertions(+) (limited to 'init') 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]; -- cgit v1.1