Replies: 2 comments
-
|
This is a wonderful goal and great topic for discussion, because I don't feel that the solutions are 100% obvious. Let's see where the conversation takes us. For
{
"build": {
"BUILD": "$(MODDABLE)/build",
"MODULES": "$(MODDABLE)/modules",
"COMMODETTO": "$(MODULES)/commodetto",
"PIU": "$(MODULES)/piu"
},
"platforms": {
"esp32/esp32c3_cdc": {
"build": {
"USE_USB": "2"
}
},
...
"...": {
"include": "$(SUBPLATFORMDIRECTORY)/manifest_mod.json"
}
},
"typescript": {
...I'm pretty sure we'll need to add empty stubs for "mac/", "win/" and "lin/*" to support mods in the simulator - and perhaps some other MCUs, so that they don't fall into the "..." default case. Even though it is a little more complicated to set up, I think I prefer (2) since it is a general purpose mechanism that can work for every subplatform target.
{ platform:"esp32/esp32_thing", id:"com.sparkfun.thing.esp32", targets:[ "bootloader.bin", "partition-table.bin", "xs_esp32.bin" ] }Those could easily go into each subplatforms manifest. It is some work to set that up initially, but I expect your LLM friends would be happy to help. ;) But... then |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for confirming.
I think this approach should work fine.
It does seem that mcbundle is more complicated than I had originally thought.The application manifest specifies the device |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We’re working on adding support for M5StackChan in the external subplatform. However, in order to use it the same way as existing devices, we’ll also need support in mcrun and mcbundle.
Here, I’d like to discuss how we can add support for mcrun and mcbundle.
My understanding is as follows.
mcrun
My understanding is that, for subplatforms, manifest_mod needs to read the build settings for each device. Would it be sufficient to place a file equivalent to manifest_mod in the external subplatforms directory?
mcbundle
Since the bundle settings for each device are defined in mcbundle.js, would the corresponding configuration file need to be placed in the external subplatforms directory?
Even for devices on existing subplatforms, it’s easy to overlook updating
manifest_mod.jsonormcbundle.js, so I think it would be better if the definitions were located under each device’s directory.Beta Was this translation helpful? Give feedback.
All reactions