Hello, I was going through the GitHub repo of flashrom, and I saw some files outside the folders.
Do you think it will be a good idea to organise the files in the directory and use a build automation tool like waf,cmake or maybe bazel to auto-generate Makefiles. It can also be used to create and link shared libraries easily.
Looking forward to your opinions.
Best Regards Prakhar
Hi Prakhar,
historical flashrom lived mostly in the root directory. We have started with moving stuff around. E.g the headers are now in a include directory and some platform specific stuff has also found a new home.
The bigger problem with moving stuff around is, that flashrom is not just a library and a cli build ontop of it. The cli, and an other programm, ich_descriptors_tool, uses internal symbols of the library. Also the "internal" programmer is mixed with some "core" functionality which makes it currently difficult to move files around. We would be happy to solve those issues to have a better structure in the repository.
For the second part, we've almost finnished the migration from gnumake to meson/ninja. Only cross-compiling for DOS and libpayload (coreboot payload) and a better update of the documentation is not finished yet. Plese feel free to test it of the most obscure platforms you've access to. With meson we already genreating a shared library.
-- Thomas
On Thu, 2023-02-23 at 09:49 +0530, Prakhar Agrawal wrote:
Hello, I was going through the GitHub repo of flashrom, and I saw some files outside the folders.
Do you think it will be a good idea to organise the files in the directory and use a build automation tool like waf,cmake or maybe bazel to auto-generate Makefiles. It can also be used to create and link shared libraries easily.
Looking forward to your opinions.
Best Regards Prakhar _______________________________________________ flashrom mailing list -- flashrom@flashrom.org To unsubscribe send an email to flashrom-leave@flashrom.org
I looked into meson. It's awesome!
It provides all the tools and is comparatively easy to write and understand.
Only cross-compiling for DOS and libpayload (coreboot payload)
Looking forward to the release, also if there are any open projects like writing a cross-build definition file, I would be happy to look into them and contribute.
-- Prakhar
A good starter project in this area would be to perhaps start moving drivers (apart from internal and a few exceptions) into drivers/{spi, parallel, opaque}/.
Cheers, Edward.
On Fri, 24 Feb 2023 at 06:45, Prakhar Agrawal prakhar.agrawal001@gmail.com wrote:
I looked into meson. It's awesome!
It provides all the tools and is comparatively easy to write and understand.
Only cross-compiling for DOS and libpayload (coreboot payload)
Looking forward to the release, also if there are any open projects like writing a cross-build definition file, I would be happy to look into them and contribute.
-- Prakhar _______________________________________________ flashrom mailing list -- flashrom@flashrom.org To unsubscribe send an email to flashrom-leave@flashrom.org