Skip to content

Commit cec42cc

Browse files
committed
Merge branch 'zephyr'
2 parents c661e2b + 3f91c38 commit cec42cc

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

examples/manifest_piu.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"include": [
3-
"$(MODULES)/base/easing/manifest.json",
4-
"$(MODULES)/io/display/manifest.json"
3+
"$(MODULES)/base/easing/manifest.json"
54
],
65
"modules": {
76
"commodetto/Bitmap": "$(COMMODETTO)/commodettoBitmap",

tools/mcconfig.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ class ZephyrMakeFile extends MAKEFILE {
321321
var target = result.target;
322322
this.line("list(APPEND mOBJECTS ", source, ")");
323323
if (result.recipe) {
324-
this.error("don't know what to do with the recipe");
324+
throw new Error("don't know what to do with the recipe: " + result.recipe);
325325
// this.write(tool.recipes[result.recipe]);
326326
}
327327
}
@@ -1449,15 +1449,15 @@ export default class extends Tool {
14491449
else {
14501450
let action, secondary = "";
14511451
if (undefined === this.environment.ZEPHYR_BOARD)
1452-
this.error("ZEPHYR_BOARD undefined");
1452+
throw new Error("ZEPHYR_BOARD undefined");
14531453

14541454
action = "build";
14551455
if (this.buildTarget == "build")
14561456
secondary = `${path} -d ${this.tmpPath}${this.slash}build -- -DEXTRA_CONF_FILE=${this.tmpPath}${this.slash}zephyr.conf -DMODDABLE_BUILD_DIR=${this.tmpPath} ${overlay}`
14571457
else if (this.buildTarget == "all" || undefined === this.buildTarget) /* all */
14581458
secondary = `${path} -d ${this.tmpPath}${this.slash}build -- -DEXTRA_CONF_FILE=${this.tmpPath}${this.slash}zephyr.conf -DMODDABLE_BUILD_DIR=${this.tmpPath} ${overlay} && west -z ${this.environment.ZEPHYR_BASE} flash -d ${this.tmpPath}${this.slash}build && serial2xsbug ${this.environment.UPLOAD_PORT} ${this.environment.DEBUGGER_SPEED} 8N1`;
14591459
else
1460-
this.error("unknown target");
1460+
throw new Error("unknown target: " + this.buildTarget);
14611461

14621462
command = `cd ${this.moddablePath} && west -v -z ${this.environment.ZEPHYR_BASE} ${action} -b ${this.environment.ZEPHYR_BOARD} -d ${this.tmpPath}${this.slash}build`;
14631463

0 commit comments

Comments
 (0)