summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-10-10 16:31:38 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-10-10 16:31:38 +0000
commitc980a4a3c1d7158ccaa6c53adf6dde0500fd6257 (patch)
treea7fce1fb787c168227bb6e40b66c1f64eb7ed2d6
parent4ce6a9040883ba22ec0efd29db9f21c39a54aeda (diff)
parentb56ea6e59542116c1951e4411186a5da82c78ce3 (diff)
downloaddragon-c980a4a3c1d7158ccaa6c53adf6dde0500fd6257.tar.gz
Merge "Update the path to error_code.h." am: 4aab2f3500 am: 9800e87306
am: b56ea6e595 Change-Id: I6f9c9096e74f62a5275cd1aff56c6480322ea602
-rw-r--r--recovery/updater/Android.mk6
-rw-r--r--recovery/updater/recovery_updater.cpp5
2 files changed, 5 insertions, 6 deletions
diff --git a/recovery/updater/Android.mk b/recovery/updater/Android.mk
index 7dc1efb..207aa91 100644
--- a/recovery/updater/Android.mk
+++ b/recovery/updater/Android.mk
@@ -13,13 +13,12 @@ LOCAL_SRC_FILES := \
vboot_interface.c \
recovery_updater.cpp \
update_fw.cpp
-# For error_code.h (included by recovery_updater.cpp).
-LOCAL_C_INCLUDES += bootable/recovery
# For vboot_struct.h
LOCAL_C_INCLUDES += external/vboot_reference/firmware/include
LOCAL_CFLAGS += -Werror
LOCAL_STATIC_LIBRARIES := \
- libedify
+ libedify \
+ libotautil
include $(BUILD_STATIC_LIBRARY)
@@ -49,7 +48,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := flash_ec.c flash_mtd.c flash_device.c vboot_interface.c debug_ec.c flash_file.cpp fwtool.cpp update_fw.cpp
LOCAL_SHARED_LIBRARIES := liblog
LOCAL_CFLAGS += -Wno-unused-parameter -DUSE_LOGCAT
-LOCAL_C_INCLUDES += bootable/recovery
# For vboot_struct.h
LOCAL_C_INCLUDES += external/vboot_reference/firmware/include
LOCAL_STATIC_LIBRARIES := \
diff --git a/recovery/updater/recovery_updater.cpp b/recovery/updater/recovery_updater.cpp
index b9b67f0..a478584 100644
--- a/recovery/updater/recovery_updater.cpp
+++ b/recovery/updater/recovery_updater.cpp
@@ -24,8 +24,9 @@
#include <string>
#include <vector>
-#include "edify/expr.h"
-#include "error_code.h"
+#include <edify/expr.h>
+#include <otautil/error_code.h>
+
#include "update_fw.h"
Value* firmware_update(const char *name, State * state,