From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=88XK9lhJR7b8bMMCgvD8SlgN+Mc20fveo7Qp7afEfDQ=; b=xvOzusDWpbeP95W4A1cJji+gTKftWggzIy66IN0J39G2xsa/bdMk756bXCi4Ajb32o 8opo7DeXW7yxc4O0uI5lmbdZGJVaDGE0ZTxh32jyy7SyMOcD8/vHfDCLU2F8zPDpp29J TvwWKDavFKM5XqMBX0pjNvoI1dfYMNcbLK5EtzaBoLWhk2nEdKQLpyiQ9oE4MAgs4geA kXjFECnnM4p7E9f99yptyGa6kKzkR+mPLGXtcEKIZbELcyCis72dDScV/YqVRX+cbvUk 3rCrYRT8l59XfDBm3bf9T5j275szfkX5tIHOc7fitzGROOT0bIgRsXhg0Ey9fex1D5ri UxzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=88XK9lhJR7b8bMMCgvD8SlgN+Mc20fveo7Qp7afEfDQ=; b=NFqKLUkOMTcOg5egKzpSZFSozTboQ431Su+LFSMoxXVsaGPb4ezCYU+lSO+OMyl05H 7U1Xfx2ryF622Xe66k5MK+AT61dhFKlsJQPO+FonYVxp4xuRovWHT1DzpBd3tNCI/MJW VJ58OCHkI/+9nIm4jcFw1rUlLNpUd0Gq7vhhKwCxCavaCs4eNVKH0M+gzvMd+fcmyGHI Qz/OmDMLhXq61GCwRxdTBsvXE46DroPRJZg08OlcfKt4yus+BJd3qhgUqYV4YgrsBsh+ zxxNsggq3CtyHi0YAHQmyMSX9qST7ADwPPspj4FfKW0vxUo5nQE9Ujxe/ZEgi47J4oNr h4Xw== X-Gm-Message-State: ALQs6tD6hypv1IIZWnN/jxQg94rox9VXG6H82+u1Uvvsr2dH8GMAyWSJ HuR2gR6H0LYSV4stk4OS9U0O5T7n0T8= X-Google-Smtp-Source: AIpwx4+vUiVRjcdfbRvMw84aZi/ahr5GL2VyYG8PNW5p407u6tUwIZbWoL0ZwoioaPB5R0s65XlmcA== X-Received: by 2002:a19:7013:: with SMTP id h19-v6mr3627652lfc.73.1524131150681; Thu, 19 Apr 2018 02:45:50 -0700 (PDT) Received: from sh.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id o203-v6sm658113lff.25.2018.04.19.02.45.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Apr 2018 02:45:49 -0700 (PDT) From: Tomasz Duszynski To: dev@dpdk.org Cc: bruce.richardson@intel.com, dima@marvell.com, nsamsono@marvell.com, Tomasz Duszynski Date: Thu, 19 Apr 2018 11:45:38 +0200 Message-Id: <1524131138-3204-1-git-send-email-tdu@semihalf.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH] net/mvpp2: get MUSDK library path from a meson option X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Apr 2018 09:45:51 -0000 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