You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"generate_axp_full if 0 will only generate boot_parts axp, default 0"
20
21
echo"delete_first_files before copy new builtin files, delete some files, one line one item, format same with command rm,"
21
22
echo"you can also create a delete_first.txt in builtin_files_dir and leave this arg empty"
22
23
echo""
@@ -44,6 +45,7 @@ whl_path=$2
44
45
builtin_files_dir_path=$3
45
46
skip_build_apps=0
46
47
board_name=maixcam
48
+
generate_axp_full=0
47
49
48
50
# 如果提供了第五个参数且不为空,则将 skip_build_apps 设置为 1
49
51
if [ -n"$4" ];then
@@ -66,9 +68,18 @@ fi
66
68
67
69
check_axp2img_command
68
70
69
-
delete_first_files=""
70
71
if [ -n"$6" ];then
71
-
delete_first_files=$6
72
+
if [ "x$6"=="x1" ];then
73
+
generate_axp_full=1
74
+
elif [ "x$6"!="x0" ];then
75
+
echo"generate_axp_full arg should be 0 or 1"
76
+
exit 1
77
+
fi
78
+
fi
79
+
80
+
delete_first_files=""
81
+
if [ -n"$7" ];then
82
+
delete_first_files=$7
72
83
if [[ !-e"$delete_first_files" ]];then
73
84
echo"Error: delete_first_files $delete_first_files file does not exist"
74
85
exit 1
@@ -121,7 +132,9 @@ rm -rf tmp/delete_files.txt
121
132
sync
122
133
123
134
# get sudo permission for update_img.sh later
124
-
sudo echo"Need sudo permission for update_img.sh later, grant permission now"
135
+
echo -e "\n\n======================================\nFor MaixCDK/MaixPy maintainer:\n DON'T forget to update APPs like launcher, settings, app_store in builtin_files !!\n\nNeed sudo permission for update_img.sh later, grant permission now\n======================================\n"
136
+
sudo echo""
137
+
125
138
126
139
# 1. 检查参数 文件或者文件夹是否存在,然后拷贝一份 builtin_files_dir_path 到 tmp,不要影响原目录,检查 base os file 是不是 xz, 如果是解压到临时目录 tmp,并改名为 os_version_str.img,不是则拷贝一份到 tmp 目录下 os_version_str.img
0 commit comments