加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
hyj0904 提交于 2021-02-25 10:29 . wifi prov
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化