-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use JSON for IFS build configuration, with schema (#2219)
Replaces existing .ini file, consistent with Storage config, more structured.
- Loading branch information
Showing
10 changed files
with
87 additions
and
36 deletions.
There are no files selected for viewing
Submodule IFS
updated
17 files
+0 −3 | .gitmodules | |
+36 −16 | README.rst | |
+6 −2 | component.mk | |
+1 −0 | requirements.txt | |
+10 −9 | src/include/IFS/File/Stat.h | |
+1 −1 | test/fstest.hw | |
+63 −0 | test/fwfsImage1.fwfs | |
+0 −27 | test/fwfsImage1.ini | |
+84 −0 | tools/fsbuild/README.rst | |
+55 −111 | tools/fsbuild/config.py | |
+63 −0 | tools/fsbuild/example.fwfs | |
+0 −21 | tools/fsbuild/fsbuild.ini | |
+13 −10 | tools/fsbuild/fsbuild.py | |
+0 −83 | tools/fsbuild/readme.md | |
+0 −1 | tools/fsbuild/rjsmin | |
+108 −0 | tools/fsbuild/schema.json | |
+0 −8 | tools/fsbuild/util.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
jsonschema | ||
rjsmin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
pyserial | ||
jsonschema | ||
rjsmin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
// Filesystem builder configuration | ||
{ | ||
"name": "Sming IFS demo volume", | ||
"id": "0x12345678", | ||
// Where to read files from | ||
"source": { | ||
"/": "files", | ||
"README.rst": "README.rst", | ||
"test.jsonc": "basic_ifs.hw", | ||
"readme.md": "${SMING_HOME}/Components/IFS/README.rst", | ||
"sming.png": "${SMING_HOME}/../docs/api-logo.png", | ||
"Data": "${SMING_HOME}/Core/Data", | ||
"framework": "${SMING_HOME}/../docs/source/framework", | ||
"Sming": "${SMING_HOME}/Core" | ||
}, | ||
// Directories to mount other object stores | ||
"mountpoints": { | ||
"config": 1 | ||
}, | ||
// Rules for file metadata. All rules are evaluated in sequence for every file | ||
"rules": [ | ||
{ | ||
"mask": "*", | ||
"read": "guest", | ||
"write": "admin" | ||
}, | ||
{ | ||
"mask": ".*", | ||
"read": "admin" | ||
}, | ||
{ | ||
"mask": "*.html", | ||
"readonly": true | ||
}, | ||
{ | ||
"mask": [ | ||
"*.js", | ||
"*.png", | ||
"*.ico", | ||
"*.jpg", | ||
"*.jpeg", | ||
"*.html", | ||
"*.css", | ||
"*.txt", | ||
"*.md" | ||
], | ||
"compress": "gzip" | ||
}, | ||
{ | ||
"mask": [ | ||
"/styles.css", | ||
"*.ico", | ||
"*.png" | ||
], | ||
"read": "any" | ||
}, | ||
{ | ||
"mask": [ | ||
"/Data/*", | ||
"/framework/*", | ||
"/Sming/*" | ||
], | ||
"compress": "gzip" | ||
}, | ||
//This is a template file so firmware needs to read it | ||
{ | ||
"mask": "/error.html", | ||
"compress": "none" | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters