Closed holzingk closed 6 years ago
I tend to forget which revision I build my toolchain with.
We can also read it with our Erlang build tools, to warn users if something changed in RTEMS so that they rebuild Erlang maybe.
I don't know if keeping track of the build revision is necessary at all, or if it can be obtained otherwise.
Writing it in a C header could be valuable as well, but it's hard to access that value from Erlang during buildtime.
Maybe keep that open and wait for other people's comments?
If it's just a reminder for the toolchain version, the file should be generated in the rtems-install directory.
+1 to this change. Both a file and header seems useful. I think reading it from a header file shouldn't be a big problem, ever from Erlang
OK. So basically the following changes would be good before merging that patch:
rtems-install
rtems-install/rtems/4.12/arm-rtems-4.12/atsamv/lib/include/grisp/build-version.h
.Okay. Will update PR.
I could also create a .hrl
file.
@nextl00p Create a .hrl
file as well, maybe we can find a use for it
Updated!
Looks mostly OK for me. Two points:
.gitignore
is no longer necessary with the new version of the patch.${PREFIX}/include
can be used by an application. Try whether you can include it in some of the applications and still compile it. ${PREFIX}/${TARGET}/${BSP_NAME}/lib/include/grisp
would be an alternative path for that.
I don't really have a problem with merging this but just out of curiosity: What is the purpose of that file?
If for example you want to use it in some c file for printing a revision, it would be a better solution to directly generate a header (maybe in libgrisp).