konnected-io / konnected-security

Konnected connects wired sensors and switches to SmartThings, Home Assistant, Hubitat and OpenHAB
https://konnected.io
Apache License 2.0
416 stars 322 forks source link

Use luac.cross directly and check size #139

Closed kit-klein closed 3 years ago

kit-klein commented 3 years ago

Previously we were using the docker builder lfs script to create the LFS. This worked fine but did not include a check to ensure the built lfs does not exceed to lfs partition size.

This PR now uses the docker builder to call the luac.cross.int directly (similar to the PRO project). This let's us pass the -m 10000 arg which will cause the build to fail if the compiled lfs image it too large.

I also included a comment in the user_config.h file reflecting the max lfs partition size - this can be enabled next time we do a firmware release.

kit-klein commented 3 years ago

Closing this as it is included in #140