# image_list.append("=".join([info.nv_bin, "nv"]))
# 资源文件
-
+ info.res_delfile = []
+ # 多个文件删除例子
+ # info.res_delfile = ["/user/userdata/ConfigModel.json","/user/res/APPLIST_COMPASS_IMAGE.bin"]
+
+ info.res_rmdir = []
+ # 删除路径例子
+ # info.res_rmdir = ["/user/res/dials"]
+
if os.path.exists(info.res_dir) :
- result = res_pack(info.res_dir, info.res_index, info.res_data)
- #result = res_pack(info.res_dir, info.res_index, info.res_data,info.res_delfile,info.res_rmdir)
+ result = res_pack(info.res_dir, info.res_index, info.res_data,info.res_delfile,info.res_rmdir)
if not result:
sys.exit("[ERROR] resource file pack failed!!!")
image_list.append("=".join([info.res_index, "res_index"]))
chunkSize = get_pagesize(g_pagetype);
spareSize = sel_oob_info->oobsize;
+ printf("chunkSize %d spareSize %d\n",chunkSize,spareSize);
printf("Processing directory %s into image file %s\n",argv[1],argv[2]);