DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 0/6] enable easier app compilation testing with meson
@ 2018-03-29 13:54 Bruce Richardson
  2018-03-29 13:54 ` [dpdk-dev] [PATCH 1/6] examples: add empty meson files for unsupported examples Bruce Richardson
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Bruce Richardson @ 2018-03-29 13:54 UTC (permalink / raw)
  To: dev; +Cc: hemant.agrawal, shreyansh.jain, Bruce Richardson

Summary:
	With this set you can test building all applicable examples by
	calling meson with "-Dexamples=all"

When building DPDK with meson, it's possible to specify a list of sample
apps to have built along with the main code. However, specifying a full
list of all apps can be unwieldy, so this set adds support for passing
"all" as the examples to be built.

With "all", meson just adds all subdirectories of "examples" to the build,
so the first few patches are ensuring that we don't get an error by
attempting to build an unsupported application. On linux, only 7 apps were
unsupported, in that they had not been given a meson.build file. On
FreeBSD, a few others had to have their meson.build files updated to report
them as unsupported.

In terms of behaviour, the meson.build file for each app will report if the
app can be built or not. If "all" is requested, then a message is printed
and the meson run can continue. If, however, the app is requested by name,
then an error is reported and the meson run halts.

The final two patches in the series are more cleanup, the former improves
error reporting, while the last patch is a performance improvement. Meson
runs quickly enough in the normal case, but with a full set of examples,
the dependency chain resolution can slow things down. Reducing the lists of
dependencies makes a noticable difference in this case. [NOTE: this
slowness and speedup only applies to the meson run; the actual build using
ninja is as fast as ever!]

Bruce Richardson (6):
  examples: add empty meson files for unsupported examples
  examples/l2fwd-cat: make build dependent on pqos library
  examples: disable unsupported examples on BSD
  examples: allow building all examples as part of meson build
  examples: improve error report for missing meson deps
  drivers/dpaa*: reduce meson dependency lists

 drivers/bus/dpaa/meson.build            |  2 +-
 drivers/bus/fslmc/meson.build           |  2 +-
 drivers/crypto/dpaa2_sec/meson.build    |  2 +-
 drivers/event/dpaa/meson.build          |  2 +-
 drivers/event/dpaa2/meson.build         |  2 +-
 drivers/mempool/dpaa2/meson.build       |  2 +-
 drivers/net/dpaa/meson.build            |  2 +-
 drivers/net/dpaa2/meson.build           |  2 +-
 examples/ethtool/meson.build            | 10 +++++++
 examples/kni/meson.build                |  3 +++
 examples/l2fwd-cat/meson.build          |  4 ++-
 examples/l3fwd-power/meson.build        |  3 +++
 examples/meson.build                    | 48 ++++++++++++++++++++++++---------
 examples/multi_process/meson.build      | 10 +++++++
 examples/netmap_compat/meson.build      | 10 +++++++
 examples/performance-thread/meson.build | 10 +++++++
 examples/quota_watermark/meson.build    | 10 +++++++
 examples/server_node_efd/meson.build    | 10 +++++++
 examples/tep_termination/meson.build    |  3 +++
 examples/vhost/meson.build              |  3 +++
 examples/vhost_scsi/meson.build         |  3 +++
 examples/vm_power_manager/meson.build   | 10 +++++++
 22 files changed, 131 insertions(+), 22 deletions(-)
 create mode 100644 examples/ethtool/meson.build
 create mode 100644 examples/multi_process/meson.build
 create mode 100644 examples/netmap_compat/meson.build
 create mode 100644 examples/performance-thread/meson.build
 create mode 100644 examples/quota_watermark/meson.build
 create mode 100644 examples/server_node_efd/meson.build
 create mode 100644 examples/vm_power_manager/meson.build

-- 
2.14.3

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-04-09 13:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-29 13:54 [dpdk-dev] [PATCH 0/6] enable easier app compilation testing with meson Bruce Richardson
2018-03-29 13:54 ` [dpdk-dev] [PATCH 1/6] examples: add empty meson files for unsupported examples Bruce Richardson
2018-03-29 13:54 ` [dpdk-dev] [PATCH 2/6] examples/l2fwd-cat: make build dependent on pqos library Bruce Richardson
2018-03-29 13:54 ` [dpdk-dev] [PATCH 3/6] examples: disable unsupported examples on BSD Bruce Richardson
2018-03-29 13:54 ` [dpdk-dev] [PATCH 4/6] examples: allow building all examples as part of meson build Bruce Richardson
2018-03-29 13:54 ` [dpdk-dev] [PATCH 5/6] examples: improve error report for missing meson deps Bruce Richardson
2018-03-29 13:54 ` [dpdk-dev] [PATCH 6/6] drivers/dpaa*: reduce meson dependency lists Bruce Richardson
2018-04-02 10:02   ` Hemant Agrawal
2018-04-06 12:10 ` [dpdk-dev] [PATCH 0/6] enable easier app compilation testing with meson Van Haaren, Harry
2018-04-09 13:50   ` Bruce Richardson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).