Move error_code.h into otautil.
This way it stops requiring relative path ".." in LOCAL_C_INCLUDES (uncrypt and edify). Soong doesn't accept non-local ".." in "local_include_dirs". Test: mmma bootable/recovery Change-Id: Ia4649789cef2aaeb2785483660e9ea5a8b389c62
This commit is contained in:
parent
281d4eefb1
commit
623fe7e701
12 changed files with 19 additions and 11 deletions
|
@ -30,6 +30,7 @@ LOCAL_C_INCLUDES := \
|
||||||
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
||||||
LOCAL_STATIC_LIBRARIES := \
|
LOCAL_STATIC_LIBRARIES := \
|
||||||
libotafault \
|
libotafault \
|
||||||
|
libotautil \
|
||||||
libbase \
|
libbase \
|
||||||
libcrypto \
|
libcrypto \
|
||||||
libbspatch \
|
libbspatch \
|
||||||
|
@ -53,6 +54,7 @@ LOCAL_C_INCLUDES := \
|
||||||
bootable/recovery
|
bootable/recovery
|
||||||
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
||||||
LOCAL_STATIC_LIBRARIES := \
|
LOCAL_STATIC_LIBRARIES := \
|
||||||
|
libotautil \
|
||||||
libcrypto \
|
libcrypto \
|
||||||
libbspatch \
|
libbspatch \
|
||||||
libbase \
|
libbase \
|
||||||
|
@ -77,6 +79,7 @@ LOCAL_C_INCLUDES := \
|
||||||
bootable/recovery
|
bootable/recovery
|
||||||
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
||||||
LOCAL_STATIC_LIBRARIES := \
|
LOCAL_STATIC_LIBRARIES := \
|
||||||
|
libotautil \
|
||||||
libcrypto \
|
libcrypto \
|
||||||
libbspatch \
|
libbspatch \
|
||||||
libbase \
|
libbase \
|
||||||
|
@ -99,6 +102,7 @@ LOCAL_STATIC_LIBRARIES := \
|
||||||
libapplypatch \
|
libapplypatch \
|
||||||
libbase \
|
libbase \
|
||||||
libedify \
|
libedify \
|
||||||
|
libotautil \
|
||||||
libcrypto
|
libcrypto
|
||||||
LOCAL_CFLAGS := -Wall -Werror
|
LOCAL_CFLAGS := -Wall -Werror
|
||||||
include $(BUILD_STATIC_LIBRARY)
|
include $(BUILD_STATIC_LIBRARY)
|
||||||
|
@ -114,6 +118,7 @@ LOCAL_STATIC_LIBRARIES := \
|
||||||
libapplypatch \
|
libapplypatch \
|
||||||
libedify \
|
libedify \
|
||||||
libotafault \
|
libotafault \
|
||||||
|
libotautil \
|
||||||
libbspatch \
|
libbspatch \
|
||||||
libbase \
|
libbase \
|
||||||
libziparchive \
|
libziparchive \
|
||||||
|
|
|
@ -30,7 +30,8 @@ LOCAL_CFLAGS := -Wall -Werror
|
||||||
LOCAL_CPPFLAGS := -Wno-unused-parameter
|
LOCAL_CPPFLAGS := -Wno-unused-parameter
|
||||||
LOCAL_CPPFLAGS += -Wno-deprecated-register
|
LOCAL_CPPFLAGS += -Wno-deprecated-register
|
||||||
LOCAL_MODULE := libedify
|
LOCAL_MODULE := libedify
|
||||||
LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
|
LOCAL_STATIC_LIBRARIES += \
|
||||||
LOCAL_STATIC_LIBRARIES += libbase
|
libotautil \
|
||||||
|
libbase
|
||||||
|
|
||||||
include $(BUILD_STATIC_LIBRARY)
|
include $(BUILD_STATIC_LIBRARY)
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "error_code.h"
|
#include "otautil/error_code.h"
|
||||||
|
|
||||||
struct State {
|
struct State {
|
||||||
State(const std::string& script, void* cookie);
|
State(const std::string& script, void* cookie);
|
||||||
|
|
|
@ -49,9 +49,9 @@
|
||||||
#include <ziparchive/zip_archive.h>
|
#include <ziparchive/zip_archive.h>
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "error_code.h"
|
|
||||||
#include "otautil/SysUtil.h"
|
#include "otautil/SysUtil.h"
|
||||||
#include "otautil/ThermalUtil.h"
|
#include "otautil/ThermalUtil.h"
|
||||||
|
#include "otautil/error_code.h"
|
||||||
#include "private/install.h"
|
#include "private/install.h"
|
||||||
#include "roots.h"
|
#include "roots.h"
|
||||||
#include "ui.h"
|
#include "ui.h"
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
cc_library_static {
|
cc_library_static {
|
||||||
name: "libotautil",
|
name: "libotautil",
|
||||||
|
|
||||||
|
host_supported: true,
|
||||||
|
|
||||||
srcs: [
|
srcs: [
|
||||||
"SysUtil.cpp",
|
"SysUtil.cpp",
|
||||||
"DirUtil.cpp",
|
"DirUtil.cpp",
|
||||||
|
|
|
@ -75,4 +75,4 @@ enum UncryptErrorCode {
|
||||||
kUncryptBlockDeviceFindError,
|
kUncryptBlockDeviceFindError,
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _ERROR_CODE_H_
|
#endif // _ERROR_CODE_H_
|
|
@ -61,13 +61,13 @@
|
||||||
#include "adb_install.h"
|
#include "adb_install.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
#include "error_code.h"
|
|
||||||
#include "fuse_sdcard_provider.h"
|
#include "fuse_sdcard_provider.h"
|
||||||
#include "fuse_sideload.h"
|
#include "fuse_sideload.h"
|
||||||
#include "install.h"
|
#include "install.h"
|
||||||
#include "minadbd/minadbd.h"
|
#include "minadbd/minadbd.h"
|
||||||
#include "minui/minui.h"
|
#include "minui/minui.h"
|
||||||
#include "otautil/DirUtil.h"
|
#include "otautil/DirUtil.h"
|
||||||
|
#include "otautil/error_code.h"
|
||||||
#include "roots.h"
|
#include "roots.h"
|
||||||
#include "rotate_logs.h"
|
#include "rotate_logs.h"
|
||||||
#include "screen_ui.h"
|
#include "screen_ui.h"
|
||||||
|
|
|
@ -39,8 +39,8 @@
|
||||||
|
|
||||||
#include "common/test_constants.h"
|
#include "common/test_constants.h"
|
||||||
#include "edify/expr.h"
|
#include "edify/expr.h"
|
||||||
#include "error_code.h"
|
|
||||||
#include "otautil/SysUtil.h"
|
#include "otautil/SysUtil.h"
|
||||||
|
#include "otautil/error_code.h"
|
||||||
#include "print_sha1.h"
|
#include "print_sha1.h"
|
||||||
#include "updater/blockimg.h"
|
#include "updater/blockimg.h"
|
||||||
#include "updater/install.h"
|
#include "updater/install.h"
|
||||||
|
|
|
@ -17,10 +17,10 @@ LOCAL_PATH := $(call my-dir)
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
LOCAL_SRC_FILES := uncrypt.cpp
|
LOCAL_SRC_FILES := uncrypt.cpp
|
||||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
|
|
||||||
LOCAL_MODULE := uncrypt
|
LOCAL_MODULE := uncrypt
|
||||||
LOCAL_STATIC_LIBRARIES := \
|
LOCAL_STATIC_LIBRARIES := \
|
||||||
libbootloader_message \
|
libbootloader_message \
|
||||||
|
libotautil \
|
||||||
libbase \
|
libbase \
|
||||||
liblog \
|
liblog \
|
||||||
libfs_mgr \
|
libfs_mgr \
|
||||||
|
|
|
@ -116,7 +116,7 @@
|
||||||
#include <cutils/sockets.h>
|
#include <cutils/sockets.h>
|
||||||
#include <fs_mgr.h>
|
#include <fs_mgr.h>
|
||||||
|
|
||||||
#include "error_code.h"
|
#include "otautil/error_code.h"
|
||||||
|
|
||||||
static constexpr int WINDOW_SIZE = 5;
|
static constexpr int WINDOW_SIZE = 5;
|
||||||
static constexpr int FIBMAP_RETRY_LIMIT = 3;
|
static constexpr int FIBMAP_RETRY_LIMIT = 3;
|
||||||
|
|
|
@ -50,8 +50,8 @@
|
||||||
#include <ziparchive/zip_archive.h>
|
#include <ziparchive/zip_archive.h>
|
||||||
|
|
||||||
#include "edify/expr.h"
|
#include "edify/expr.h"
|
||||||
#include "error_code.h"
|
|
||||||
#include "otafault/ota_io.h"
|
#include "otafault/ota_io.h"
|
||||||
|
#include "otautil/error_code.h"
|
||||||
#include "print_sha1.h"
|
#include "print_sha1.h"
|
||||||
#include "rangeset.h"
|
#include "rangeset.h"
|
||||||
#include "updater/install.h"
|
#include "updater/install.h"
|
||||||
|
|
|
@ -57,10 +57,10 @@
|
||||||
#include <ziparchive/zip_archive.h>
|
#include <ziparchive/zip_archive.h>
|
||||||
|
|
||||||
#include "edify/expr.h"
|
#include "edify/expr.h"
|
||||||
#include "error_code.h"
|
|
||||||
#include "mounts.h"
|
#include "mounts.h"
|
||||||
#include "otafault/ota_io.h"
|
#include "otafault/ota_io.h"
|
||||||
#include "otautil/DirUtil.h"
|
#include "otautil/DirUtil.h"
|
||||||
|
#include "otautil/error_code.h"
|
||||||
#include "print_sha1.h"
|
#include "print_sha1.h"
|
||||||
#include "tune2fs.h"
|
#include "tune2fs.h"
|
||||||
#include "updater/updater.h"
|
#include "updater/updater.h"
|
||||||
|
|
Loading…
Reference in a new issue