From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomasz Duszynski Subject: [PATCH] net/mvpp2: get MUSDK library path from a meson option Date: Thu, 19 Apr 2018 11:45:38 +0200 Message-ID: <1524131138-3204-1-git-send-email-tdu@semihalf.com> Cc: bruce.richardson@intel.com, dima@marvell.com, nsamsono@marvell.com, Tomasz Duszynski To: dev@dpdk.org Return-path: Received: from mail-lf0-f68.google.com (mail-lf0-f68.google.com [209.85.215.68]) by dpdk.org (Postfix) with ESMTP id 3EE646CC2 for ; Thu, 19 Apr 2018 11:45:51 +0200 (CEST) Received: by mail-lf0-f68.google.com with SMTP id v207-v6so6829237lfa.10 for ; Thu, 19 Apr 2018 02:45:51 -0700 (PDT) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Since not cluttering environment and keeping all relevant settings local to the cross build is reasonable get MUSDK library installation path from a meson option. Signed-off-by: Tomasz Duszynski --- drivers/net/mvpp2/meson.build | 2 +- meson_options.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/mvpp2/meson.build b/drivers/net/mvpp2/meson.build index 6ea13ee..e139889 100644 --- a/drivers/net/mvpp2/meson.build +++ b/drivers/net/mvpp2/meson.build @@ -3,7 +3,7 @@ # Copyright(c) 2018 Semihalf. # All rights reserved. -path = run_command('printenv', 'LIBMUSDK_PATH').stdout().strip() +path = get_option('lib_musdk_dir') lib_dir = path + '/lib' inc_dir = path + '/include' diff --git a/meson_options.txt b/meson_options.txt index 1a674aa..c843278 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -8,6 +8,8 @@ option('include_subdir_arch', type: 'string', value: '', description: 'subdirectory where to install arch-dependent headers') option('kernel_dir', type: 'string', value: '', description: 'path to the kernel for building kernel modules') +option('lib_musdk_dir', type: 'string', value: '', + description: 'path to the MUSDK library installation directory') option('machine', type: 'string', value: 'native', description: 'set the target machine type') option('max_lcores', type: 'string', value: '128', -- 2.7.4