Use TEMP_FAILURE_RETRY, always build bootchart.cpp.
Also switch the revision parsing over to sscanf as promised. I haven't
done the hardware parsing because I don't yet know whether we actually need
to keep the space-stripping code.
Change-Id: Ic33378345cd515cb08d00c543acf44eb72673396
diff --git a/init/Android.mk b/init/Android.mk
index 01ce4da..ae472bd 100644
--- a/init/Android.mk
+++ b/init/Android.mk
@@ -4,6 +4,7 @@
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
+ bootchart.cpp \
builtins.cpp \
devices.cpp \
init.cpp \
@@ -17,13 +18,14 @@
util.cpp \
watchdogd.cpp \
+#LOCAL_CLANG := true
+
LOCAL_CPPFLAGS += \
- -Wall \
+ -Wall -Wextra \
-Werror -Wno-error=deprecated-declarations \
-Wno-unused-parameter \
ifeq ($(strip $(INIT_BOOTCHART)),true)
-LOCAL_SRC_FILES += bootchart.cpp
LOCAL_CPPFLAGS += -DBOOTCHART=1
endif