Re: [PATCH v2 1/2] Makefile: deprecate in favor of Meson
David Gibson <[email protected]>
| Newsgroups | org.kernel.vger.devicetree-compiler |
|---|---|
| Message-ID | <aBI_wad4TnNRCTWA@zatzit> |
On Wed, Apr 30, 2025 at 11:10:20AM -0400, Eli Schwartz wrote: > On 4/30/25 10:56 AM, David Gibson wrote: > >> +$(warning WARNING: Building dtc using the Makefile is deprecated, in favor of using the Meson build system instead.) > >> +$(warning ) > >> +$(warning https://mesonbuild.com) > > > > For succinctness, I suggest: > > > > WARNING: Building dtc using make is deprecated in favour of using Meson (https://mesonbuild.com) > > > > Note that British/Australian spelling is preferred for this project, hence "favour". > > > Yup, sounds reasonable. :) > > > >> +$(warning ) > >> +$(warning Use `meson setup builddir/ && ninja -C builddir/` to build, or `meson configure` to see build options.) > > > > I'd prefer to suggest "meson compile -C builddir" here, rather than > > directly invoking ninja, and I'd also like to list "meson test -C > > builddir" as the replacement for "make check". > > > As you wish, of course. But note that "meson compile" is a dispatching > command that first checks whether the build has been setup using a > non-default --backend option instead of the default ninja: > > - Microsoft msbuild > - Apple xcode > > and then determines which of the three to run. So if you decide to run > "meson compile -C builddir/" it will just in turn run, on your behalf, > "ninja -C builddir/". I'm aware. > It also has the side effect of, if your compiler is MSVC cl.exe, loading > vcvarsall.bat before dispatching to ninja, as a workaround for > > https://github.com/ninja-build/ninja/issues/1610 > > None of that matters for dtc, I guess. :) Well.. maybe. Since it's not tested, it probably doesn't work, but AFAIK there's no inherent reason dtc couldn't be built on MSVC or xcode. That's why I'd prefer to list the more broadly correct command. -- David Gibson (he or they) | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you, not the other way | around. http://www.ozlabs.org/~dgibson
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEO+dNsU4E3yXUXRK2zQJF27ox2GcFAmgSP8AACgkQzQJF27ox 2Gfl5Q/+PgkeQ2n5I+kY7u0EFrZbtzPGCHzj+ahUMH+ix9eizc7TgoJvS3iBTiQF /uwsrJKpGOypQlpTIa5mScdpbBWiZhSZoGZBEE5fN18zFdPDCa/X1NIsxdrXvHxk Fq0ExBGBDSvZw2SOKZu/khAnmArsWkmUNSJKCxDLnuDqO004Eg6pyKMdiSHQk9df bWRC45U8ucw1xZQ4ArSx1OADV6uQtebuCY1o01W/5vRk2CcdleZbXaM90PROUC1t OiJdGyc1Onea9RKH/M/poEyFNNUmSEdUwrDPQBr40CbNBZekJDlUYueyYR51yM0W nCxRhSqmPVPkMrargsxrMCWNqNH1TzQ5OX8yZqQiXXVG0cpa51h3KvMrSiUwnWnI mv1PKJ6c+W06fywSwsIonT9I7+ynz78go6SAy1Q+RwpHLN+Y49JmdNUsr5sejIXE tEW/9eNxYLrrEIjkem8ZbVBNYNAdc6uQFmmEyZ8DCKN8b4VyV7v91Rpvkw5gJrNt wyvN/1wOT2o7+UYBJhGyR+WOtDk1/uqtEiZM9IhDjP52QS/Tywwi4hpR6xP0u71I +GRW0VysOYhOgD3zMZFFDzxjYvuco4NyEDgCfDZtC2P5l6Q+1ah1oATNT78QSG8q 2T39miKsC/hjX2lR2ARUObvd83t9iRk4gme5U2f4gPuRQwX8pZM= =dYq5 -----END PGP SIGNATURE-----