common: init: Add necessary libraries

Change-Id: I0ba99df45865b33e6266d12b8dfe874af7155f05
This commit is contained in:
Willi Ye 2017-11-06 16:59:54 +01:00
parent f96e15a9d6
commit 1cfd518177
2 changed files with 9 additions and 5 deletions

View File

@ -5,12 +5,9 @@ LIBINIT_MSM_PATH := $(call my-dir)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional LOCAL_MODULE_TAGS := optional
LOCAL_SHARED_LIBRARIES := libbase liblog
LOCAL_C_INCLUDES := system/core/init LOCAL_C_INCLUDES := system/core/init
LOCAL_CPPFLAGS := \ LOCAL_CFLAGS := -Wall -DANDROID_TARGET=\"$(TARGET_BOARD_PLATFORM)\"
-Wall \
-Werror -Wno-error=deprecated-declarations \
-Wno-unused-parameter \
-DANDROID_TARGET=\"$(TARGET_BOARD_PLATFORM)\"
LOCAL_SRC_FILES := init_msm.cpp LOCAL_SRC_FILES := init_msm.cpp
ifneq ($(TARGET_LIBINIT_DEFINES_FILE),) ifneq ($(TARGET_LIBINIT_DEFINES_FILE),)
LOCAL_SRC_FILES += ../../../../$(TARGET_LIBINIT_DEFINES_FILE) LOCAL_SRC_FILES += ../../../../$(TARGET_LIBINIT_DEFINES_FILE)

View File

@ -31,6 +31,7 @@
#define __INIT_MSM__H__ #define __INIT_MSM__H__
#include <sys/system_properties.h> #include <sys/system_properties.h>
#include <log/log.h>
#define PROP_HWROTATE "ro.sf.hwrotation" #define PROP_HWROTATE "ro.sf.hwrotation"
#define PROP_BOOT_BASEBAND "ro.boot.baseband" #define PROP_BOOT_BASEBAND "ro.boot.baseband"
@ -42,4 +43,10 @@
void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *board_type); void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *board_type);
int read_file2(const char *fname, char *data, int max_size); int read_file2(const char *fname, char *data, int max_size);
#define ERROR(fmt, args...) \
do { \
fprintf(stderr, fmt, ## args); \
ALOG(LOG_ERROR, "libinit_msm", fmt, ## args); \
} while(0)
#endif /* __INIT_MSM__H__ */ #endif /* __INIT_MSM__H__ */