[build2] Handling other target types
Boris Kolpackov
boris at codesynthesis.com
Tue Apr 11 13:20:58 UTC 2017
Hi Max,
Moldmann Max (DC-MA/ENG52-NA) <Max.Moldmann at boschrexroth-us.com> writes:
> After build an elf file needs to be converted into the Intel Hex file format
> using e.g. objcopy -O ihex input.elf output.hex. And there are some other
> things you might want to do, i.e. calculating resource consumption like
> Flash or RAM usage. You can always do additional pre-build or post-build
> work in a script. But sometimes it's nice to do some of this stuff inside a
> makefile so that it is only done when these additional target dependencies
> are met. So it would be nice to be able to tell build2 that there is a hex
> file target and it needs the elf file ({exe}) and then just fire some
> arbitrary shell commands.
Ok, got it, thanks (a side note: there is no "shell" on Windows ;-)). We
have this use-case in mind.
Boris
More information about the users
mailing list