Re: [meta-intel] [meta-dpdk 2/2] Introduce the v18.11.1 bb
On Thu, May 23, 2019 at 04:05:24PM +0800, Kevin Hao wrote: > This is the latest LTS version. > > Signed-off-by: Kevin Hao > --- > ...Drop-the-unneeded-files-when-installation.patch | 31 > ...dk-18.11-dpdk-fix-for-parellel-make-issue.patch | 42 > ++ > recipes-extended/dpdk/dpdk_18.11.1.bb | 15 > 3 files changed, 88 insertions(+) > create mode 100644 > recipes-extended/dpdk/dpdk/dpdk-18.11-Drop-the-unneeded-files-when-installation.patch > create mode 100644 > recipes-extended/dpdk/dpdk/dpdk-18.11-dpdk-fix-for-parellel-make-issue.patch > create mode 100644 recipes-extended/dpdk/dpdk_18.11.1.bb > > diff --git > a/recipes-extended/dpdk/dpdk/dpdk-18.11-Drop-the-unneeded-files-when-installation.patch > > b/recipes-extended/dpdk/dpdk/dpdk-18.11-Drop-the-unneeded-files-when-installation.patch > new file mode 100644 > index ..82f6f4b159e9 > --- /dev/null > +++ > b/recipes-extended/dpdk/dpdk/dpdk-18.11-Drop-the-unneeded-files-when-installation.patch > @@ -0,0 +1,31 @@ > +From e4930e1c46ef494186ee54766d2f49876b9f460e Mon Sep 17 00:00:00 2001 > +From: Kevin Hao > +Date: Thu, 23 May 2019 15:34:20 +0800 > +Subject: [PATCH] Drop the unneeded files when installation > + > +These are not needed as part of image. Drop them to avoid the QA > +warning. > + > +Signed-off-by: Kevin Hao > +--- > + mk/rte.sdkinstall.mk | 3 +-- > + 1 file changed, 1 insertion(+), 2 deletions(-) > + > +diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk > +index 2d34b4e5af9f..389654c292ab 100644 > +--- a/mk/rte.sdkinstall.mk > b/mk/rte.sdkinstall.mk > +@@ -129,9 +129,8 @@ install-sdk: > + $(Q)$(call rte_mkdir,$(DESTDIR)$(sdkdir)) > + $(Q)cp $(CP_FLAGS) $(RTE_SDK)/mk$(DESTDIR)$(sdkdir) We still need to drop the files in this dir because I got the QA warning when building on amr64 platform. No idea why it didn't occur on the x86-64 platform. I will send a v2 version. Thanks, Kevin > + $(Q)cp $(CP_FLAGS) $(RTE_SDK)/buildtools$(DESTDIR)$(sdkdir) > +-$(Q)$(call rte_mkdir, > $(DESTDIR)$(targetdir)/app) > ++$(Q)$(call rte_mkdir,$(DESTDIR)$(targetdir)) > + $(Q)cp $(CP_FLAGS) $O/.config $(DESTDIR)$(targetdir) > +-$(Q)cp $(CP_FLAGS) $O/app/dpdk-pmdinfogen > $(DESTDIR)$(targetdir)/app > + $(Q)$(call rte_symlink, $(DESTDIR)$(includedir), > $(DESTDIR)$(targetdir)/include) > + $(Q)$(call rte_symlink, $(DESTDIR)$(libdir), > $(DESTDIR)$(targetdir)/lib) > + > +-- > +2.14.4 > + > diff --git > a/recipes-extended/dpdk/dpdk/dpdk-18.11-dpdk-fix-for-parellel-make-issue.patch > > b/recipes-extended/dpdk/dpdk/dpdk-18.11-dpdk-fix-for-parellel-make-issue.patch > new file mode 100644 > index ..e95c9a4ff5ce > --- /dev/null > +++ > b/recipes-extended/dpdk/dpdk/dpdk-18.11-dpdk-fix-for-parellel-make-issue.patch > @@ -0,0 +1,42 @@ > +From 5e78af18b6dda83e317ccadab1654fca26aaf6dd Mon Sep 17 00:00:00 2001 > +From: Rahul Kumar Gupta > +Date: Fri, 2 Sep 2016 15:48:52 +0800 > +Subject: [PATCH] dpdk: fix for parellel make issue > + > +To make sure that the path of libraries should be correct and > +libraries will be build before, And available at the time of > +linking example apps. > + > +Signed-off-by: Rahul Kumar Gupta > +--- > + examples/Makefile | 1 + > + examples/ethtool/ethtool-app/Makefile | 1 + > + 2 files changed, 2 insertions(+) > + > +diff --git a/examples/Makefile b/examples/Makefile > +index 33fe0e586d97..1a3966f9e95a 100644 > +--- a/examples/Makefile > b/examples/Makefile > +@@ -14,6 +14,7 @@ DIRS-$(CONFIG_RTE_LIBRTE_BBDEV) += bbdev_app > + DIRS-$(CONFIG_RTE_LIBRTE_PMD_BOND) += bond > + DIRS-y += cmdline > + DIRS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += distributor > ++DEPDIRS-y += examples/ethtool/lib > + DIRS-y += ethtool > + DIRS-y += exception_path > + DIRS-$(CONFIG_RTE_LIBRTE_EFD) += server_node_efd > +diff --git a/examples/ethtool/ethtool-app/Makefile > b/examples/ethtool/ethtool-app/Makefile > +index 9ecfc0b89367..fb5fdc43818c 100644 > +--- a/examples/ethtool/ethtool-app/Makefile > b/examples/ethtool/ethtool-app/Makefile > +@@ -19,6 +19,7 @@ SRCS-y := main.c ethapp.c > + CFLAGS += -O3 -pthread -I$(SRCDIR)/../lib > + CFLAGS += $(WERROR_FLAGS) > + > ++LDLIBS += -L$(ETHTOOL_LIB_PATH)/ > + LDLIBS += -L$(subst ethtool-app,lib,$(RTE_OUTPUT))/lib > + LDLIBS += -lrte_ethtool > + > +-- > +2.14.4 > + > diff --git a/recipes-extended/dpdk/dpdk_18.11.1.bb > b/recipes-extended/dpdk/dpdk_18.11.1.bb > new file mode 100644 > index ..2cb84924a757 > --- /dev/null > +++ b/recipes-extended/dpdk/dpdk_18.11.1.bb > @@ -0,0 +1,15 @@ > +include dpdk.inc > + > +STABLE = "-stable" > +BRANCH = "18.11" > +SRCREV = "16ece46735c9b70b7033ca7ae095930e9038d9fd" > + > +LICENSE = "BSD & LGPLv2 & GPLv2" > +LIC_FILES_CHKSUM = >
[meta-intel] [meta-dpdk 2/2] Introduce the v18.11.1 bb
This is the latest LTS version. Signed-off-by: Kevin Hao --- ...Drop-the-unneeded-files-when-installation.patch | 31 ...dk-18.11-dpdk-fix-for-parellel-make-issue.patch | 42 ++ recipes-extended/dpdk/dpdk_18.11.1.bb | 15 3 files changed, 88 insertions(+) create mode 100644 recipes-extended/dpdk/dpdk/dpdk-18.11-Drop-the-unneeded-files-when-installation.patch create mode 100644 recipes-extended/dpdk/dpdk/dpdk-18.11-dpdk-fix-for-parellel-make-issue.patch create mode 100644 recipes-extended/dpdk/dpdk_18.11.1.bb diff --git a/recipes-extended/dpdk/dpdk/dpdk-18.11-Drop-the-unneeded-files-when-installation.patch b/recipes-extended/dpdk/dpdk/dpdk-18.11-Drop-the-unneeded-files-when-installation.patch new file mode 100644 index ..82f6f4b159e9 --- /dev/null +++ b/recipes-extended/dpdk/dpdk/dpdk-18.11-Drop-the-unneeded-files-when-installation.patch @@ -0,0 +1,31 @@ +From e4930e1c46ef494186ee54766d2f49876b9f460e Mon Sep 17 00:00:00 2001 +From: Kevin Hao +Date: Thu, 23 May 2019 15:34:20 +0800 +Subject: [PATCH] Drop the unneeded files when installation + +These are not needed as part of image. Drop them to avoid the QA +warning. + +Signed-off-by: Kevin Hao +--- + mk/rte.sdkinstall.mk | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk +index 2d34b4e5af9f..389654c292ab 100644 +--- a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk +@@ -129,9 +129,8 @@ install-sdk: + $(Q)$(call rte_mkdir,$(DESTDIR)$(sdkdir)) + $(Q)cp $(CP_FLAGS) $(RTE_SDK)/mk$(DESTDIR)$(sdkdir) + $(Q)cp $(CP_FLAGS) $(RTE_SDK)/buildtools$(DESTDIR)$(sdkdir) +- $(Q)$(call rte_mkdir, $(DESTDIR)$(targetdir)/app) ++ $(Q)$(call rte_mkdir,$(DESTDIR)$(targetdir)) + $(Q)cp $(CP_FLAGS) $O/.config $(DESTDIR)$(targetdir) +- $(Q)cp $(CP_FLAGS) $O/app/dpdk-pmdinfogen $(DESTDIR)$(targetdir)/app + $(Q)$(call rte_symlink, $(DESTDIR)$(includedir), $(DESTDIR)$(targetdir)/include) + $(Q)$(call rte_symlink, $(DESTDIR)$(libdir), $(DESTDIR)$(targetdir)/lib) + +-- +2.14.4 + diff --git a/recipes-extended/dpdk/dpdk/dpdk-18.11-dpdk-fix-for-parellel-make-issue.patch b/recipes-extended/dpdk/dpdk/dpdk-18.11-dpdk-fix-for-parellel-make-issue.patch new file mode 100644 index ..e95c9a4ff5ce --- /dev/null +++ b/recipes-extended/dpdk/dpdk/dpdk-18.11-dpdk-fix-for-parellel-make-issue.patch @@ -0,0 +1,42 @@ +From 5e78af18b6dda83e317ccadab1654fca26aaf6dd Mon Sep 17 00:00:00 2001 +From: Rahul Kumar Gupta +Date: Fri, 2 Sep 2016 15:48:52 +0800 +Subject: [PATCH] dpdk: fix for parellel make issue + +To make sure that the path of libraries should be correct and +libraries will be build before, And available at the time of +linking example apps. + +Signed-off-by: Rahul Kumar Gupta +--- + examples/Makefile | 1 + + examples/ethtool/ethtool-app/Makefile | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/examples/Makefile b/examples/Makefile +index 33fe0e586d97..1a3966f9e95a 100644 +--- a/examples/Makefile b/examples/Makefile +@@ -14,6 +14,7 @@ DIRS-$(CONFIG_RTE_LIBRTE_BBDEV) += bbdev_app + DIRS-$(CONFIG_RTE_LIBRTE_PMD_BOND) += bond + DIRS-y += cmdline + DIRS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += distributor ++DEPDIRS-y += examples/ethtool/lib + DIRS-y += ethtool + DIRS-y += exception_path + DIRS-$(CONFIG_RTE_LIBRTE_EFD) += server_node_efd +diff --git a/examples/ethtool/ethtool-app/Makefile b/examples/ethtool/ethtool-app/Makefile +index 9ecfc0b89367..fb5fdc43818c 100644 +--- a/examples/ethtool/ethtool-app/Makefile b/examples/ethtool/ethtool-app/Makefile +@@ -19,6 +19,7 @@ SRCS-y := main.c ethapp.c + CFLAGS += -O3 -pthread -I$(SRCDIR)/../lib + CFLAGS += $(WERROR_FLAGS) + ++LDLIBS += -L$(ETHTOOL_LIB_PATH)/ + LDLIBS += -L$(subst ethtool-app,lib,$(RTE_OUTPUT))/lib + LDLIBS += -lrte_ethtool + +-- +2.14.4 + diff --git a/recipes-extended/dpdk/dpdk_18.11.1.bb b/recipes-extended/dpdk/dpdk_18.11.1.bb new file mode 100644 index ..2cb84924a757 --- /dev/null +++ b/recipes-extended/dpdk/dpdk_18.11.1.bb @@ -0,0 +1,15 @@ +include dpdk.inc + +STABLE = "-stable" +BRANCH = "18.11" +SRCREV = "16ece46735c9b70b7033ca7ae095930e9038d9fd" + +LICENSE = "BSD & LGPLv2 & GPLv2" +LIC_FILES_CHKSUM = "file://license/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ + file://license/lgpl-2.1.txt;md5=4b54a1fd55a448865a0b32d41598759d \ + file://license/bsd-3-clause.txt;md5=0f00d99239d922ffd13cabef83b33444" + +SRC_URI += "\ +file://dpdk-18.11-dpdk-fix-for-parellel-make-issue.patch \ +file://dpdk-18.11-Drop-the-unneeded-files-when-installation.patch \ +" -- 2.14.4 -- ___ meta-intel mailing list meta-intel@yoctoproject.org