1
0
mirror of https://github.com/elua/elua.git synced 2025-01-08 20:56:17 +08:00

15 Commits

Author SHA1 Message Date
Bogdan Marinescu
091b5d31e9 Lua build system improvements and bug fixes
- specify -Dmacro on the builder command line to automatically include the macro in the compiler command line
- refactoring: option handling code now moved to utils/utils.lua
- various small bugfixes
2011-04-07 17:38:10 +03:00
Bogdan Marinescu
ab5e07bf10 Small fix for running build_elua.lua in Windows 2011-03-06 13:06:45 +02:00
Bogdan Marinescu
9cde5334a8 Compiled files are now found automatically
The files that will be compiled to link an eLua image are now found automatically,
there's no need to specify them explicitly anymore. This applies only to the main
'build_elua.lua' build file, each target's 'conf.lua' still needs to specify them
explicitly (but can use the same automatic source file finding as the main build file).
2011-03-06 03:29:31 +02:00
Bogdan Marinescu
2764ae4c57 Added 'summary' display mode in builder
Added a 'summary' display mode in the builder which displays less information
(thus making the output more readable) and also adds colors :) Not exactly
very useful but I saw this recently in cmake and I _had_ to implement it :)
Activate with "disp_mode=summary" in the command line.
2011-03-05 21:42:20 +02:00
Bogdan Marinescu
77ac825d39 Targets can be reffered to by name now
Now a target can be reffered to also by its name, not only by the
corresponding _target object. Also added 'utils.lua' as a separate
file in utils/ (it used to be a part of build.lua)
2011-03-05 20:22:11 +02:00
Bogdan Marinescu
163870081d Yeah, you guessed it: even more improvements to the build system :) 2011-02-27 18:31:09 +00:00
Bogdan Marinescu
aafb49e079 added automatic check of changes in the command line for different tools; if a change is detected the build system will automatically issue a 'clean' before building the target 2011-02-23 08:04:03 +00:00
Bogdan Marinescu
1822ee1572 Now all eLua platforms compile using build_elua.lua; output compared with scons' output to verify that the same code is generated 2011-02-22 09:58:02 +00:00
Bogdan Marinescu
cd3d721519 added more platforms to the new build script; fixed issue that prevented compilation under Windows 2011-02-21 23:29:54 +00:00
Bogdan Marinescu
36d160876d More refinements to the new build system (yes, a lot of those, I know :) ) It is now possible to send arguments to targets if they are Lua functions. For example:
$ lua build_elua.lua board=et-stm32 burn /dev/ttyUSB0

will invoke stm32ld (the default for stm32's platform 'burn' target) on port /dev/ttyUSB0.
I really have to document all this stuff somewhere. Don't panic though, for now you can use the old build system exactly like you used it before :)
2011-02-21 16:08:55 +00:00
Bogdan Marinescu
b95dd84c41 - avr32 platform now uses the Lua build system (lua build_elua.lua board=mizar32|atevk1100|atevk1101)
- added support for per-backend targets. avr32 now has a 'burn' target (besides the regular 'prog') that can be used to build the image and burn it to the board (lua build_elua.lua board=atevk1100 burn). It is created in 'conf.lua'
- other fixes and improvements to the build system
2011-02-21 13:22:47 +00:00
Bogdan Marinescu
df9cacec40 mkfs.lua bug fixes; now it works with actual ROMFS data in all modes (verbatim, compress, compile) 2011-02-21 07:57:44 +00:00
Bogdan Marinescu
e3d6ee2715 Continuing work on the build system, try 'lua build_elua.lua board=et-stm32 prog' (it only works for stm32 for now). Still a lot of WIP and not throughly tested (for example the new mkfs.lua script was not tested at all with a non-empty FS) but it does seem to work nicely. NOTE: you need to install 'lpack' for this to work (luarocks install lpack). Anybody knows of a good way
to implement make's (or scon's ) '-jn' option (for parallel builds) in a cross-platform manner?
2011-02-21 01:01:21 +00:00
Bogdan Marinescu
2d0dbd0ed3 First step towards a Lua based build system. NOT Lake based, just a set of functions that I wrote (utils/build.lua). Does automatic dependency checking (something Lake doesn't do very
well), per-project build directories and other nice stuff. So far used only for mux and rfs_server; 'lua mux.lua' or 'lua rfs_server.lua' to test (add "-c" to clean). Only needs lfs.
2011-02-20 00:15:16 +00:00
Bogdan Marinescu
f9fbead54c merged pre0.8 branch back to trunk 2011-02-02 17:52:12 +00:00