From mboxrd@z Thu Jan 1 00:00:00 1970 From: Panu Matilainen Subject: Re: [PATCH 07/10] mk: install binding tool in sbin directory Date: Wed, 2 Dec 2015 11:58:39 +0200 Message-ID: <565EC0CF.6070600@redhat.com> References: <1449028676-19232-1-git-send-email-thomas.monjalon@6wind.com> <1449028676-19232-8-git-send-email-thomas.monjalon@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: Thomas Monjalon , dev@dpdk.org Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id AE9F78DB2 for ; Wed, 2 Dec 2015 10:58:42 +0100 (CET) In-Reply-To: <1449028676-19232-8-git-send-email-thomas.monjalon@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 12/02/2015 05:57 AM, Thomas Monjalon wrote: > sbin/dpdk_nic_bind is a symbolic link to tools/dpdk_nic_bind.py > where some python objects may be generated. > > Signed-off-by: Thomas Monjalon > --- > mk/rte.sdkinstall.mk | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk > index 46253ff..d6df30c 100644 > --- a/mk/rte.sdkinstall.mk > +++ b/mk/rte.sdkinstall.mk > @@ -38,6 +38,7 @@ prefix ?= /usr/local > exec_prefix ?= $(prefix) > kerneldir ?= $(exec_prefix)/kmod > bindir ?= $(exec_prefix)/bin > +sbindir ?= $(exec_prefix)/sbin > libdir ?= $(exec_prefix)/lib > includedir ?= $(prefix)/include/dpdk > datarootdir ?= $(prefix)/share > @@ -106,6 +107,9 @@ install-runtime: > --keep-newer-files --warning=no-ignore-newer > $(Q)$(call rte_mkdir, $(DESTDIR)$(datadir)) > $(Q)cp -a $(RTE_SDK)/tools $(DESTDIR)$(datadir) > + $(Q)$(call rte_mkdir, $(DESTDIR)$(sbindir)) > + $(Q)$(call rte_symlink, $(DESTDIR)$(datadir)/dpdk_nic_bind.py, \ > + $(DESTDIR)$(sbindir)/dpdk_nic_bind) > > install-kmod: > ifneq '$(wildcard $O/kmod/*)' '' > This symlink is broken, it expects dpdk_nic_bind.py to reside in $(datadir) root when it actually is in $(datadir)/tools/ Other than that, getting rid of the .py suffix is a nice touch. - Panu -