Open kiwichris opened 7 years ago
Hello Chris,
Thank you for your contribution! We are very glad to know you use mkbootimage on FreeBSD!
We will gladly accept your contribution, but there are some remarks though:
The code has to be split to several commits, e.g:
--quiet
parameterWhy exactly are the EXTRA_INCLUDES
and the LDPATHS
variables needed? They are filled by hand while issuing gmake anyway. Is there a reason why the standard ones (CFLAGS
for specifying include dirs, and LDFLAGS
for specyfing lib dirs) cannot be used?
We need the --version
parameter to be kept. We use it for our CI. It is of course okay to print the version in usage
too but we don't want the parameter removed. If you want to keep it in usage, then it probably could be prettier, the name and version could be printed first, and then the doc, and probably without a "space" character after the new line - just some minor adjustments.
Thanks! Tom
Hi Tom,
Many thanks for the quick response. An even bigger thanks for developing this tool and making it available.
I am happy to split the patch up. I tossed the patch in to make sure the approach was fine.
I am happy to test the standard flags and use them. FYI on FreeBSD PCRE and libelf is installed under /usr/local and not under the OS directories.
Ah OK I did not know there was a --version
option happening. I am happy to add this and to make sure it is compatible with the existing option.
Hi @kiwichris, did you have time to revisit this? Would be great to support FreeBSD, though we don't use it normally ourselves so it would be splendid if you could include @tgorochowik's suggestions and test the changes yourself. You could even go and split this into several PRs, I'm sure some of the changes (like adding a --quiet
parameter etc.) are less controversial than others. Also, the README
and Makefile
have changed here since we last discussed this, so splitting this into a few PRs makes even more sense.
Hi, sure I can look at this. It has sat on the back burner for a bit then I got busy, you know usual story, but I would like to get FreeBSD support merged. The RTEMS project also supports MacOS and Windows (MSYS2) so these being supported would be good.
Tested on FreeBSD 11.0.