summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-10-09 10:22:17 -0700
committerTao Bao <tbao@google.com>2017-10-09 10:23:12 -0700
commitacecd095381dd2dd921f492e0d043eac504efb93 (patch)
tree2982e437dde42cb4f7fc04be7adcecb3de0973d1
parent7c62d00eee2dbb8ffd24653d1adc363d131585fb (diff)
downloaddragon-acecd095381dd2dd921f492e0d043eac504efb93.tar.gz
Update the path to error_code.h.
Now it has been moved into otautil/. Also drop the include path of bootable/recovery, since edify and otautil both export their headers. Test: mmma bootable/recovery Change-Id: I25fc624ada8609f2006c42bb36b2767918bda5c1
-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,