Bernhard Kirchen
5d8bb8f810
Merge upstream tag 'v24.9.26' into development
2024-09-27 20:07:53 +02:00
Thomas Basler
67cae68e83
GitHub Build Action: Automatically generate littlefs image
...
If a data directory exists, the content of this directory will be placed in the littlefs image and embedded into the factory.bin file
2024-09-26 17:43:07 +02:00
Thomas Basler
155735c828
Embed current branch into building process
2024-09-25 21:46:38 +02:00
Bernhard Kirchen
f298fd92f5
webapp: autocompile script: changes package.json triggers build
...
if the package.json file changes, we must trigger building the web
application, as in particular, a completely different version of yarn
could be required.
2024-09-21 21:47:02 +02:00
Bernhard Kirchen
2f4eef47e9
webapp: autocompile script needs to run yarn within webapp dir
...
we need to change the working directory to the webapp directory such
that corepack installs and uses the expected version of yarn. otherwise,
corepack installs a copy of yarn into the repository root directory.
2024-09-21 21:04:10 +02:00
Bernhard Kirchen
a2092e66c4
webapp: autocompile script: use portable subprocess
...
we added shell=True so that on Windows, yarn would be found. however,
using the list syntax to define the command and its arguments to
Python's subprocess is broken on GNU/Linux by shell=True. instead, use a
single string (command and arguments), which works on both Windows and
GNU/Linux.
2024-09-21 21:00:48 +02:00
Bernhard Kirchen
789a07e288
webapp: use shell=True in autocompile script
...
we need shell=True as on Windows, path resolution to find the yarn
"exectuable" (a shell script) is only performed by cmd.exe, not by
Python itself. as we are calling yarn with fixed arguments, using
shell=True is fine.
2024-09-20 15:53:05 +02:00
Bernhard Kirchen
f8595865ea
webapp autocompile: try yarnpkg
2024-09-11 21:51:08 +02:00
spcqike
cec4003f6e
Implement webapp autocompile ( #1193 )
...
add pre-script to check if webapp was compiled or sources changed and auto compile.
---------
Co-authored-by: Bernhard Kirchen <schlimmchen@posteo.net>
2024-09-05 23:02:42 +02:00
Bernhard Kirchen
d9d0141fde
Merge upstream tag 'v24.6.29' into development
2024-07-10 21:45:43 +02:00
Marc-Philip
3d66b318ec
avoid using pkg_resources
...
This is deprecated in python 3.12.
Also, improve file handling
2024-06-10 22:31:15 +02:00
Bernhard Kirchen
7548fceb48
check FW bin file size when creating factory.bin
2024-06-02 13:28:10 +02:00
Bernhard Kirchen
90aafe2cbf
check FW bin file size when creating factory.bin
2024-06-01 22:19:58 +02:00
Bernhard Kirchen
841523f028
embrace upstream __compiled_constants.h approach
2024-05-07 22:04:36 +02:00
Bernhard Kirchen
255e81e6bd
Merge upstream tag 'v24.5.6' into development
2024-05-07 22:03:26 +02:00
Stefan Oberhumer
97800434c4
Prevent compiling the whole project on each commit.
...
Putting the git information into a generated sourcefile prevents
recompiling the whole project after each commit.
2024-04-18 09:02:57 +02:00
helgeerbe
63205f88be
Merge remote-tracking branch 'tbnobody/OpenDTU/master' into development
2024-01-16 17:39:45 +01:00
Thomas Basler
6556268056
Allow multiple patch directories per environment
2024-01-07 00:47:05 +01:00
helgeerbe
84647d80e2
dummy commit to check system info
2023-08-10 16:40:17 +02:00
helgeerbe
be2846a07a
on error assume branch is master
2023-08-10 14:48:52 +02:00
helgeerbe
1100f10c99
fix use dulwich befor installation
2023-08-10 13:27:45 +02:00
helgeerbe
c8a561dbd7
fix linting errors
2023-08-10 13:03:51 +02:00
helgeerbe
9475a78211
catch error if git repo can't be accessd
2023-08-10 10:53:33 +02:00
helgeerbe
401a3b86a8
show branch in system info
2023-08-09 15:32:08 +02:00
Thomas Basler
08b44fb2ba
Added post build script to generate a .factory.bin file
...
This file can just be flashed to address 0x0 and contains all other required data. No need to flash multiple files anymore.
2023-05-25 20:47:45 +02:00
Thomas Basler
12d03f06b0
Added functionality to apply custom patch files during building
...
Usefull to patch existing libraries
2023-04-20 23:13:18 +02:00
Thomas Basler
f5fc52b92f
Move auto_firmware_version.py to pio-scripts subdirectory
2023-04-20 22:46:05 +02:00