diff --git a/tools/otagui/.gitignore b/tools/otagui/.gitignore
index 21f295a0c..b81e39b9a 100644
--- a/tools/otagui/.gitignore
+++ b/tools/otagui/.gitignore
@@ -25,3 +25,4 @@ pnpm-debug.log*
*.njsproj
*.sln
*.sw?
+*.db
diff --git a/tools/otagui/.prettierrc.js b/tools/otagui/.prettierrc.js
index a6b80c2e1..09167982e 100644
--- a/tools/otagui/.prettierrc.js
+++ b/tools/otagui/.prettierrc.js
@@ -1,4 +1,5 @@
module.exports = {
singleQuote: true,
- semi: false
+ semi: false,
+ useTabs: false
}
diff --git a/tools/otagui/ota_interface.py b/tools/otagui/ota_interface.py
index 387ddddbf..f5b5fb036 100644
--- a/tools/otagui/ota_interface.py
+++ b/tools/otagui/ota_interface.py
@@ -49,14 +49,10 @@ class ProcessesManagement:
def get_status(self):
return [self.get_status_by_ID(id=id) for id in self.get_keys()]
- def get_list(self, dir):
- files = os.listdir(dir)
- return files
-
def ota_generate(self, args, id=0):
command = ['ota_from_target_files']
# Check essential configuration is properly set
- if not os.path.isfile('target/' + args['target']):
+ if not os.path.isfile(args['target']):
raise FileNotFoundError
if not args['output']:
raise SyntaxError
@@ -65,14 +61,17 @@ class ProcessesManagement:
command.append('-k')
command.append(
'../../../build/make/target/product/security/testkey')
- if args['incremental']:
- if not os.path.isfile('target/' + args['incremental']):
+ if args['isIncremental']:
+ if not os.path.isfile(args['incremental']):
raise FileNotFoundError
command.append('-i')
- command.append('target/' + args['incremental'])
- command.append('target/' + args['target'])
+ command.append(args['incremental'])
+ if args['isPartial']:
+ command.append('--partial')
+ command.append(args['partial'])
+ command.append(args['target'])
command.append(args['output'])
-
+ # Start a subprocess and collect the output
stderr_pipes = pipes.Template()
stdout_pipes = pipes.Template()
ferr = stderr_pipes.open(os.path.join(
diff --git a/tools/otagui/src/components/BaseCheckbox.vue b/tools/otagui/src/components/BaseCheckbox.vue
index e9e0d24ce..21a697789 100644
--- a/tools/otagui/src/components/BaseCheckbox.vue
+++ b/tools/otagui/src/components/BaseCheckbox.vue
@@ -3,6 +3,7 @@
type="checkbox"
:checked="modelValue"
class="field"
+ v-bind="$attrs"
@change="$emit('update:modelValue', $event.target.checked)"
>
diff --git a/tools/otagui/src/components/FileSelect.vue b/tools/otagui/src/components/FileSelect.vue
new file mode 100644
index 000000000..42e39a9fa
--- /dev/null
+++ b/tools/otagui/src/components/FileSelect.vue
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tools/otagui/src/components/PartialCheckbox.vue b/tools/otagui/src/components/PartialCheckbox.vue
new file mode 100644
index 000000000..426b261f8
--- /dev/null
+++ b/tools/otagui/src/components/PartialCheckbox.vue
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tools/otagui/src/views/SimpleForm.vue b/tools/otagui/src/views/SimpleForm.vue
index 6357a3521..6d678a561 100644
--- a/tools/otagui/src/views/SimpleForm.vue
+++ b/tools/otagui/src/views/SimpleForm.vue
@@ -3,16 +3,16 @@
+
+
+
Build Library
+
+ Careful: Use a same filename will overwrite the original build.
+
+
+
+