Modify
host$ vi ./device/hisilicon/godbox/driver/sdk/sample/ecs/sample_hmc_e2prom.c
host $ vi ./device/hisilicon/godbox/driver/sdk/sample/ecs/Android.mk
include $(CLEAR_VARS)
LOCAL_MODULE:= sample_hmc_e2prom
LOCAL_CFLAGS := $(CFG_CFLAGS)
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../msp_base/common/include
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../msp_base/mpi/include
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../msp_base/ha_codec/include
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../common
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../msp_base/ecs/include
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../../../../packages/apps/SettingTV/jni
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../msp/ha_codec/include
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../msp/component/hiflash/include
LOCAL_SHARED_LIBRARIES :=libsample_common libhi_flash libhi_common libhi_mpi libc libhi_ecs libdl libtde libhi_jpegfmw
LOCAL_SRC_FILES := sample_hmc_e2prom.c
LOCAL_MODULE_TAGS := eng
include $(BUILD_EXECUTABLE)
Build
host$ cd ./device/hisilicon/godbox
host$ mm
Install to Android board
host$ cd ./out/target/product/godbox/system/bin/
host$ adb connect 111.111.111.77
host$ adb push sample_hmc_e2prom /mnt/sda/sda1/
target$ cd /mnt/sda/sda1
target$ ./sample_hmc_e2prom
[Hi3716C] adb command (0) | 2013.12.19 |
---|---|
[Hi3716C] Kernel module build (0) | 2013.12.16 |
[Hi3716C-Kernel] tags, cscope (0) | 2013.11.28 |
[Hi3716C-Kernel] Kernel Build command (0) | 2013.11.26 |
[Hi3716C-fastboot] Build commands for fastboot (0) | 2013.11.26 |