On 11/22/24 08:05, Michael Tokarev wrote:
Maybe a more general question would be:
what is our main build entry point?  Is it `make` (or `make all`)
still, or is it meson now?

s/meson/ninja/

But no, it's always make.  Using make ensures that:

1) you build stuff that is not emulators (option ROMs, TCG tests). Meson is only for stuff that runs on the host

2) you rerun configure if it changes.

For this specific optionrom thing, I'd say we should add a separate
rule to the top-level Makefile (or to meson.build) which is not
run by default but can be run explicitly, like `make optionrom` -
this will check if pc-bios/optionrom/config.mak is there and either
run make in this subdir or complain saying no i386 compiler is found.

The optionroms are built by default to ensure that they do not bitrot. I think they're not copied (this is really old policy...) so that, if there is no need, the binary does not change at all across releases.

But yes, adding an explicit makefile target is useful. It could also copy the build products over to the source directory.

Paolo


Reply via email to