You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
885 B
18 lines
885 B
#----------------------------------------------------------------------
|
|
# Compile update bin
|
|
#----------------------------------------------------------------------
|
|
LOADERCMDLINE_ZIP := $(VENDOR_TOOLS)/pc/huanglong/ToolPlatform/linux/HiLoaderCmdLine-*-linux-x86_64.zip
|
|
LOADERCMDLINE_OBJ_PATH := $(PRODUCT_OUT)
|
|
LOADERCMDLINE_OBJ := $(LOADERCMDLINE_OBJ_PATH)/HiLoaderCmdLine
|
|
|
|
.PHONY: updatebin
|
|
updatebin:
|
|
ifneq ($(findstring $(CHIP_VERSION), "hi3751v811"),)
|
|
unzip -d $(LOADERCMDLINE_OBJ_PATH) $(LOADERCMDLINE_ZIP)
|
|
chmod +x $(LOADERCMDLINE_OBJ)/jre/bin/java
|
|
sed -i -e 's#Path=.*#Path=../images/flash_c.xml#g' ${LOADERCMDLINE_OBJ}/sample/config/soctfile.config
|
|
cd $(LOADERCMDLINE_OBJ); ./jre/bin/java -jar hiloadercmdline.jar --soctfile ../images/usb_update.bin
|
|
rm -rf $(LOADERCMDLINE_OBJ)
|
|
endif
|
|
#----------------------------------------------------------------------
|
|
# Update bin End
|