From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by dpdk.org (Postfix) with ESMTP id 526EC1B43E for ; Fri, 28 Sep 2018 19:58:22 +0200 (CEST) Received: by mail-wr1-f67.google.com with SMTP id o16so7305449wrx.2 for ; Fri, 28 Sep 2018 10:58:22 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=74kiFFpb2FI39nGpC/jxY9aR/Ir/3JJi81oRJCs8uj8=; b=J29PpcqdblzBhNQPxxPEDgiIoLEHVSlehmUDAeQoCql2OXjnvgwwWownvfY8BJc51N GWorMiVHEYpEfeRCoHRCMTasI5Ep0OgLy2qCJtrM/YqCTMxR+e6qUxMcY9L2axWgMr5/ Wexf0BYNKZ8Lh43Yz0Zw9oDVmlpq6EtuJt5tvyYzx2dDjNMBW1Cg4mIy/9XOPSIek29/ THUqiR3curHH8e+AX9mHJXtiirnNa65lp3IyCeZ0trnpRcS3yNo7GdT7Om9OFSlElLEH Y+DSdEGHPOTt4iVll8B5iuzght3p+iis/MnVcpykGl3roDyEje9zunCTl5fKCd0/pUB+ DNQA== X-Gm-Message-State: ABuFfoiBHROpwu2x+y4qwUKx74//BouNBhqmcg15wp3urdRtJczNQjZ+ Y2Q1UopzzzDSm9wah99QPXCGlzhr X-Google-Smtp-Source: ACcGV62miNrCfjTcLTUQr2nmpmQHRr8KYku9C6VrUkVtRCpD9KzJPk/PgPkhWpPoIBzZNjdCR2yiWg== X-Received: by 2002:adf:a599:: with SMTP id g25-v6mr12839361wrc.88.1538157501399; Fri, 28 Sep 2018 10:58:21 -0700 (PDT) Received: from localhost ([2a01:4b00:f419:6f00:8361:8946:ba2b:d556]) by smtp.gmail.com with ESMTPSA id z4-v6sm4446953wrt.89.2018.09.28.10.58.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 28 Sep 2018 10:58:19 -0700 (PDT) From: Luca Boccassi To: dev@dpdk.org Cc: bruce.richardson@intel.com Date: Fri, 28 Sep 2018 18:58:03 +0100 Message-Id: <20180928175803.12955-1-bluca@debian.org> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] build: add drivers_install_subdir 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: Fri, 28 Sep 2018 17:58:22 -0000 Allow users and packagers to override the default dpdk/drivers subdirectory where the PMDs get installed under $lib. Signed-off-by: Luca Boccassi --- meson.build | 3 ++- meson_options.txt | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index c9af33532d..123e3e81d6 100644 --- a/meson.build +++ b/meson.build @@ -15,7 +15,8 @@ dpdk_libraries = [] dpdk_drivers = [] dpdk_extra_ldflags = [] -driver_install_path = join_paths(get_option('libdir'), 'dpdk/drivers') +driver_install_path = join_paths(get_option('libdir'), + get_option('drivers_install_subdir')) eal_pmd_path = join_paths(get_option('prefix'), driver_install_path) # configure the build, and make sure configs here and in config folder are diff --git a/meson_options.txt b/meson_options.txt index cb58b1b607..0834ae364e 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,5 +1,7 @@ option('allow_invalid_socket_id', type: 'boolean', value: false, description: 'allow out-of-range NUMA socket id\'s for platforms that don\'t report the value correctly') +option('drivers_install_subdir', type: 'string', value: 'dpdk/drivers', + description: 'subdirectory of libdir where to install PMDs') option('enable_driver_mlx_glue', type: 'boolean', value: false, description: 'Enable glue library for Mellanox ConnectX-3/4/5 NIC PMD') option('enable_kmods', type: 'boolean', value: true, -- 2.19.0