build: clean up building kernel modules using meson
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 4 Apr 2018 16:04:52 +0000 (17:04 +0100)
committerBruce Richardson <bruce.richardson@intel.com>
Tue, 17 Apr 2018 14:09:43 +0000 (16:09 +0200)
commit3f708560fec4d96bc4ad892fd58815600ed79eef
treed6a5403e5f5267b2cbeb2dc6753c73bb45fec206
parentafd18fa21b5ee4e7a5c2df6e5ab58431f5bfac01
build: clean up building kernel modules using meson

The meson.build files for building the kernel modules directory could
be improved now that it is extracted from the EAL. For example, no
global processing is necessary inside the kernel folder, just need to
subdir to the appropriate bsd or linux folder to do the actual work.

To avoid potential race conditions with the BSD module builds when
the kernel build system is creating the dev_if.h and other files,
we serialize the kernel module builds (all 2 of them!) by setting
up each module to depend on all the previous.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Tested-by: Hemant Agrawal <hemant.agrawal@nxp.com>
kernel/freebsd/BSDmakefile.meson
kernel/freebsd/meson.build [new file with mode: 0644]
kernel/linux/meson.build [new file with mode: 0644]
kernel/meson.build