igb_uio: build with meson
[dpdk.git] / lib / librte_eal / linuxapp / meson.build
index bda974a..16a3f6b 100644 (file)
 #   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 subdir('eal')
+
+if get_option('enable_kmods')
+       kernel_dir = get_option('kernel_dir')
+       if kernel_dir == ''
+               kernel_version = run_command('uname', '-r').stdout().strip()
+               kernel_dir = '/lib/modules/' + kernel_version + '/build'
+       endif
+
+       subdir('igb_uio')
+endif