代码拉取完成,页面将自动刷新
CPRE := @
ifeq ($(V),1)
CPRE :=
VERB := --verbose
endif
MK_GENERATED_IMGS_PATH:=generated
.PHONY:startup
startup: all
all:
@echo "Build Solution by $(BOARD) "
$(CPRE) scons $(VERB) --board=$(BOARD) -j4
@echo YoC SDK Done
@echo [INFO] Create bin files
$(CPRE) product image $(MK_GENERATED_IMGS_PATH)/images.zip -i $(MK_GENERATED_IMGS_PATH)/data -l -v "v1.0" -p
$(CPRE) product image $(MK_GENERATED_IMGS_PATH)/images.zip -e $(MK_GENERATED_IMGS_PATH) -x
@echo [INFO] Create wm bin files
$(CPRE) csky-elfabiv2-objcopy -O binary yoc.elf yoc.bin
$(CPRE) gcc ../../components/chip_w800/wmsdk/tools/w800/wm_tool.c -Wall -lpthread -O2 -o wm_tool
$(CPRE) ./wm_tool -b yoc.bin -fc 0 -it 1 -ih 80D0000 -ra 80D0400 -ua 8010000 -nh 0 -un 0 -vs yoc-7.3.0
$(CPRE) cat ../../components/chip_w800/wmsdk/tools/w800/w800_secboot.img yoc.img > yoc.fls
$(CPRE) ./wm_tool -b yoc.img -fc 1 -it 1 -ih 80D0000 -ra 80D0400 -ua 8010000 -nh 0 -un 0 -vs yoc-7.3.0
$(CPRE) mv yoc_gz.img yoc_ota.img
run:all
$(CPRE) ./wm_tool -c $(DL_PORT) -rs at -ds 2000000 -dl yoc.fls -sl str -ws 115200
.PHONY:flash
flash:
$(CPRE) product flash $(MK_GENERATED_IMGS_PATH)/images.zip -w prim -f script/w800_flash.elf
.PHONY:flashall
flashall:
$(CPRE) product flash $(MK_GENERATED_IMGS_PATH)/images.zip -a -f script/w800_flash.elf
sdk:
$(CPRE) yoc sdk
.PHONY:clean
clean:
$(CPRE) scons -c
$(CPRE) find . -name "*.[od]" -delete
$(CPRE) rm yoc_sdk yoc.* generated out -rf
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。