platform_external_dtc/libfdt
Marc-André Lureau 67849a3279 build-sys: add meson build
The meson build system allows projects to "vendor" dtc easily, thanks to
subproject(). QEMU has recently switched to meson, and adding meson
support to dtc will help to handle the QEMU submodule.

meson rules are arguably simpler to write and maintain than
the hand-crafted/custom Makefile. meson support various backends, and
default build options (including coverage, sanitizer, debug/release
etc, see: https://mesonbuild.com/Builtin-options.html)

Compare to the Makefiles, the same build targets should be built and
installed and the same tests should be run ("meson test" can be provided
extra test arguments for running the equivalent of checkm/checkv).

There is no support EXTRAVERSION/LOCAL_VERSION/CONFIG_LOCALVERSION,
instead the version is simply set with project(), and vcs_tag() is
used for git/dirty version reporting (This is most common and is
hopefully enough. If necessary, configure-time options could be added
for extra versioning.).

libfdt shared library is build following regular naming conventions:
instead of libfdt.so.1 -> libfdt-1.6.0.so (with current build-sys),
libfdt.so.1 -> libfdt.so.1.6.0. I am not sure why the current build
system use an uncommon naming pattern. I also included a libfdt.pc
pkg-config file, as convenience.

Both Linux native build and mingw cross-build pass. CI pass. Tests are
only run on native build.

The current Makefiles are left in-tree, and make/check still work.
Eventually, the Makefiles could be marked as deprecated, to start a
transition period and avoid having to maintain 2 build systems in the
near future.

(run_tests.sh could eventually be replaced by the meson test runner,
which would have several advantages in term of flexibility/features,
but this is left for another day)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20201012073405.1682782-3-marcandre.lureau@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2020-10-21 14:36:07 +11:00
..
.gitignore Link tools and tests against libfdt shared library 2019-03-29 17:20:16 +11:00
fdt.c libfdt: fdt_move(): Fix comparison warnings 2020-10-02 10:28:36 +10:00
fdt.h libfdt: Replace GPL/BSD boilerplate/reference with SPDX tags 2019-06-21 21:06:10 +10:00
fdt_addresses.c libfdt: Allow #size-cells of 0 2019-07-28 16:31:44 +10:00
fdt_check.c libfdt: fix fdt_check_full buffer overrun 2020-07-10 19:55:36 +10:00
fdt_empty_tree.c libfdt: Replace GPL/BSD boilerplate/reference with SPDX tags 2019-06-21 21:06:10 +10:00
fdt_overlay.c libfdt: overlay: Fix comparison warning 2020-09-25 14:05:51 +10:00
fdt_ro.c libfdt: fdt_get_string(): Fix sequential write comparison warnings 2020-10-02 10:33:01 +10:00
fdt_rw.c libfdt: fdt_splice_(): Fix comparison warning 2020-09-24 11:07:27 +10:00
fdt_strerror.c libfdt: fdt_strerror(): Fix comparison warning 2020-10-02 10:34:18 +10:00
fdt_sw.c libfdt: fdt_create_with_flags(): Fix comparison warning 2020-10-02 10:29:27 +10:00
fdt_wip.c libfdt: libfdt_wip: Fix comparison warning 2020-10-02 10:30:07 +10:00
libfdt.h libfdt: Fix kernel-doc comments 2020-10-13 15:46:44 +11:00
libfdt_env.h libfdt: Replace GPL/BSD boilerplate/reference with SPDX tags 2019-06-21 21:06:10 +10:00
libfdt_internal.h libfdt: Add support for disabling internal checks 2020-03-03 09:59:55 +11:00
Makefile.libfdt libfdt: Allow exclusion of fdt_check_full() 2020-02-24 13:38:44 +11:00
meson.build build-sys: add meson build 2020-10-21 14:36:07 +11:00
TODO dtc: Update TODO files 2007-12-19 08:20:26 -06:00
version.lds libfdt: De-inline fdt_header_size() 2020-02-24 13:38:44 +11:00