All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-networking][PATCH] add support for opendataplane
@ 2014-07-31 19:15 Yao Zhao
  2014-07-31 21:01 ` Khem Raj
  2014-08-01  9:15 ` Paul Eggleton
  0 siblings, 2 replies; 9+ messages in thread
From: Yao Zhao @ 2014-07-31 19:15 UTC (permalink / raw)
  To: openembedded-devel

support build opendataplane from linaro.

The OpenDataPlane (ODP) project provides a data plane application
programming environment that is easy to use, high performance,
and portable between networking SoCs.

Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
---
 ...inux-dpdk-remove-unnecessary-include-path.patch | 29 ++++++++++++++++++++++
 .../opendataplane/opendataplane.inc                | 21 ++++++++++++++++
 .../opendataplane/opendataplane_0.2.bb             | 25 +++++++++++++++++++
 .../opendataplane/opendataplane_git.bb             | 14 +++++++++++
 4 files changed, 89 insertions(+)
 create mode 100644 meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remove-unnecessary-include-path.patch
 create mode 100644 meta-networking/recipes-support/opendataplane/opendataplane.inc
 create mode 100644 meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
 create mode 100644 meta-networking/recipes-support/opendataplane/opendataplane_git.bb

diff --git a/meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remove-unnecessary-include-path.patch b/meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remove-unnecessary-include-path.patch
new file mode 100644
index 0000000..a0ef7ce
--- /dev/null
+++ b/meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remove-unnecessary-include-path.patch
@@ -0,0 +1,29 @@
+From 72b8eacc2985f054cadc5d0b48351a658998b8d6 Mon Sep 17 00:00:00 2001
+From: Yao Zhao <yao.zhao@windriver.com>
+Date: Wed, 30 Jul 2014 16:02:14 -0400
+Subject: [PATCH] linux-dpdk: remove unnecessary include path
+
+for dpdk include/arch and include/exec-env is only included
+by generic rte_xxx.h header, can't be included directly.
+
+Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
+---
+ platform/linux-dpdk/Makefile.am | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/platform/linux-dpdk/Makefile.am b/platform/linux-dpdk/Makefile.am
+index 4aa568f..dfcaadb 100644
+--- a/platform/linux-dpdk/Makefile.am
++++ b/platform/linux-dpdk/Makefile.am
+@@ -12,8 +12,6 @@ PLAT_CFLAGS  = -msse4.2
+ if SDK_INSTALL_PATH_
+ PLAT_CFLAGS += -include $(SDK_INSTALL_PATH)/include/rte_config.h
+ PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include
+-PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include/arch
+-PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include/exec-env
+ 
+ AM_LDFLAGS  += -L$(SDK_INSTALL_PATH)/lib
+ endif
+-- 
+1.9.1
+
diff --git a/meta-networking/recipes-support/opendataplane/opendataplane.inc b/meta-networking/recipes-support/opendataplane/opendataplane.inc
new file mode 100644
index 0000000..c4b184e
--- /dev/null
+++ b/meta-networking/recipes-support/opendataplane/opendataplane.inc
@@ -0,0 +1,21 @@
+SUMMARY = "Cross platform OpenDataPlane application APIs"
+
+DESCRIPTION = "The OpenDataPlane project has been established to \
+produce an open-source, cross-platform set of application \
+programming interfaces (APIs) for the networking data plane."
+
+HOMEPAGE = "http://www.opendataplane.org"
+SECTION = "networking"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=4ccfa994aa96974cfcd39a59faee20a2"
+                 
+SRC_URI = "git://git.linaro.org/lng/odp.git"
+
+COMPATIBLE_HOST = "^((?!mips).*)$"
+
+PACKAGECONFIG ??= "platform_linux_generic"
+PACKAGECONFIG[netmap] = "--enable-netmap,,,"
+PACKAGECONFIG[platform_linux_generic] = "--with-platform=linux-generic,,,"
+
+S = "${WORKDIR}/git"
+
diff --git a/meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb b/meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
new file mode 100644
index 0000000..74b6c2f
--- /dev/null
+++ b/meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
@@ -0,0 +1,25 @@
+require ${BPN}.inc
+
+#odp-0.2 tag
+SRCREV  = "6007d8833a6880abedf98f792586c0cfb9f10de0"
+PV = "0.2"
+
+#0.2 still using pure Makefile
+
+#override the Makefile DESTDIR
+export DESTDIR="${D}${exec_prefix}"
+
+do_install () {
+    oe_runmake install
+    
+    #move DESTDIR/share/odp/odp_x usr/bin
+    install -d ${D}${bindir}
+    for i in ${DESTDIR}/share/odp/*; do
+        filename=`basename $i`
+        mv ${DESTDIR}/share/odp/${filename} ${D}${bindir}/${filename}
+    done
+    rm -rf ${DESTDIR}/share
+}
+
+#non standard doc install location
+FILES_${PN}-doc += "/usr/doc/*"
diff --git a/meta-networking/recipes-support/opendataplane/opendataplane_git.bb b/meta-networking/recipes-support/opendataplane/opendataplane_git.bb
new file mode 100644
index 0000000..7415993
--- /dev/null
+++ b/meta-networking/recipes-support/opendataplane/opendataplane_git.bb
@@ -0,0 +1,14 @@
+require ${BPN}.inc
+
+SRC_URI += "file://0001-linux-dpdk-remove-unnecessary-include-path.patch"
+
+SRCREV  = "${AUTOREV}"
+#8f4f080625e2db810da3f13770ba418c72b08ede will support --with-sdk-install-path
+PV = "0.2+git${SRCPV}"
+
+PACKAGECONFIG[platform_linux_generic] = "--with-platform=linux-generic,,openssl,libcrypto"
+#need meta-intel layer's common/recipes-extended/dpdk/dpdk recipe
+PACKAGECONFIG[platform_linux_dpdk] = '--with-platform=linux-dpdk --with-sdk-install-path="${STAGING_EXECPREFIXDIR}",,dpdk,'
+PACKAGECONFIG[platform_linux_keystone2] = "--with-platform=linux-keystone2,,,"
+
+inherit autotools
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [meta-networking][PATCH] add support for opendataplane
  2014-07-31 19:15 [meta-networking][PATCH] add support for opendataplane Yao Zhao
@ 2014-07-31 21:01 ` Khem Raj
  2014-08-01  9:15 ` Paul Eggleton
  1 sibling, 0 replies; 9+ messages in thread
From: Khem Raj @ 2014-07-31 21:01 UTC (permalink / raw)
  To: openembeded-devel

On Thu, Jul 31, 2014 at 12:15 PM, Yao Zhao <yao.zhao@windriver.com> wrote:
> support build opendataplane from linaro.
>
> The OpenDataPlane (ODP) project provides a data plane application
> programming environment that is easy to use, high performance,
> and portable between networking SoCs.
>
> Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
> ---
>  ...inux-dpdk-remove-unnecessary-include-path.patch | 29 ++++++++++++++++++++++
>  .../opendataplane/opendataplane.inc                | 21 ++++++++++++++++
>  .../opendataplane/opendataplane_0.2.bb             | 25 +++++++++++++++++++
>  .../opendataplane/opendataplane_git.bb             | 14 +++++++++++
>  4 files changed, 89 insertions(+)
>  create mode 100644 meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remove-unnecessary-include-path.patch
>  create mode 100644 meta-networking/recipes-support/opendataplane/opendataplane.inc
>  create mode 100644 meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
>  create mode 100644 meta-networking/recipes-support/opendataplane/opendataplane_git.bb
>
> diff --git a/meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remove-unnecessary-include-path.patch b/meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remove-unnecessary-include-path.patch
> new file mode 100644
> index 0000000..a0ef7ce
> --- /dev/null
> +++ b/meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remove-unnecessary-include-path.patch
> @@ -0,0 +1,29 @@
> +From 72b8eacc2985f054cadc5d0b48351a658998b8d6 Mon Sep 17 00:00:00 2001
> +From: Yao Zhao <yao.zhao@windriver.com>
> +Date: Wed, 30 Jul 2014 16:02:14 -0400
> +Subject: [PATCH] linux-dpdk: remove unnecessary include path
> +
> +for dpdk include/arch and include/exec-env is only included
> +by generic rte_xxx.h header, can't be included directly.
> +
> +Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
> +---
> + platform/linux-dpdk/Makefile.am | 2 --
> + 1 file changed, 2 deletions(-)
> +
> +diff --git a/platform/linux-dpdk/Makefile.am b/platform/linux-dpdk/Makefile.am
> +index 4aa568f..dfcaadb 100644
> +--- a/platform/linux-dpdk/Makefile.am
> ++++ b/platform/linux-dpdk/Makefile.am
> +@@ -12,8 +12,6 @@ PLAT_CFLAGS  = -msse4.2
> + if SDK_INSTALL_PATH_
> + PLAT_CFLAGS += -include $(SDK_INSTALL_PATH)/include/rte_config.h
> + PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include
> +-PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include/arch
> +-PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include/exec-env

is this patch upstreamed ?

> +
> + AM_LDFLAGS  += -L$(SDK_INSTALL_PATH)/lib
> + endif
> +--
> +1.9.1
> +
> diff --git a/meta-networking/recipes-support/opendataplane/opendataplane.inc b/meta-networking/recipes-support/opendataplane/opendataplane.inc
> new file mode 100644
> index 0000000..c4b184e
> --- /dev/null
> +++ b/meta-networking/recipes-support/opendataplane/opendataplane.inc
> @@ -0,0 +1,21 @@
> +SUMMARY = "Cross platform OpenDataPlane application APIs"
> +
> +DESCRIPTION = "The OpenDataPlane project has been established to \
> +produce an open-source, cross-platform set of application \
> +programming interfaces (APIs) for the networking data plane."
> +
> +HOMEPAGE = "http://www.opendataplane.org"
> +SECTION = "networking"
> +LICENSE = "BSD-3-Clause"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=4ccfa994aa96974cfcd39a59faee20a2"
> +
> +SRC_URI = "git://git.linaro.org/lng/odp.git"
> +
> +COMPATIBLE_HOST = "^((?!mips).*)$"
> +
> +PACKAGECONFIG ??= "platform_linux_generic"
> +PACKAGECONFIG[netmap] = "--enable-netmap,,,"
> +PACKAGECONFIG[platform_linux_generic] = "--with-platform=linux-generic,,,"
> +
> +S = "${WORKDIR}/git"
> +
> diff --git a/meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb b/meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
> new file mode 100644
> index 0000000..74b6c2f
> --- /dev/null
> +++ b/meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
> @@ -0,0 +1,25 @@
> +require ${BPN}.inc
> +
> +#odp-0.2 tag
> +SRCREV  = "6007d8833a6880abedf98f792586c0cfb9f10de0"
> +PV = "0.2"
> +
> +#0.2 still using pure Makefile
> +
> +#override the Makefile DESTDIR
> +export DESTDIR="${D}${exec_prefix}"
> +
> +do_install () {
> +    oe_runmake install
> +
> +    #move DESTDIR/share/odp/odp_x usr/bin
> +    install -d ${D}${bindir}
> +    for i in ${DESTDIR}/share/odp/*; do
> +        filename=`basename $i`
> +        mv ${DESTDIR}/share/odp/${filename} ${D}${bindir}/${filename}
> +    done
> +    rm -rf ${DESTDIR}/share
> +}
> +
> +#non standard doc install location
> +FILES_${PN}-doc += "/usr/doc/*"

hardcoding /usr can be removed.

> diff --git a/meta-networking/recipes-support/opendataplane/opendataplane_git.bb b/meta-networking/recipes-support/opendataplane/opendataplane_git.bb
> new file mode 100644
> index 0000000..7415993
> --- /dev/null
> +++ b/meta-networking/recipes-support/opendataplane/opendataplane_git.bb
> @@ -0,0 +1,14 @@
> +require ${BPN}.inc
> +
> +SRC_URI += "file://0001-linux-dpdk-remove-unnecessary-include-path.patch"
> +
> +SRCREV  = "${AUTOREV}"
> +#8f4f080625e2db810da3f13770ba418c72b08ede will support --with-sdk-install-path
> +PV = "0.2+git${SRCPV}"
> +
> +PACKAGECONFIG[platform_linux_generic] = "--with-platform=linux-generic,,openssl,libcrypto"
> +#need meta-intel layer's common/recipes-extended/dpdk/dpdk recipe
> +PACKAGECONFIG[platform_linux_dpdk] = '--with-platform=linux-dpdk --with-sdk-install-path="${STAGING_EXECPREFIXDIR}",,dpdk,'
> +PACKAGECONFIG[platform_linux_keystone2] = "--with-platform=linux-keystone2,,,"
> +
> +inherit autotools


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-networking][PATCH] add support for opendataplane
  2014-07-31 19:15 [meta-networking][PATCH] add support for opendataplane Yao Zhao
  2014-07-31 21:01 ` Khem Raj
@ 2014-08-01  9:15 ` Paul Eggleton
  2014-08-01 11:39   ` Fathi Boudra
  1 sibling, 1 reply; 9+ messages in thread
From: Paul Eggleton @ 2014-08-01  9:15 UTC (permalink / raw)
  To: Yao Zhao; +Cc: openembedded-devel

On Thursday 31 July 2014 15:15:00 Yao Zhao wrote:
> support build opendataplane from linaro.
> 
> The OpenDataPlane (ODP) project provides a data plane application
> programming environment that is easy to use, high performance,
> and portable between networking SoCs.
> 
> Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
> ---
>  ...inux-dpdk-remove-unnecessary-include-path.patch | 29
> ++++++++++++++++++++++ .../opendataplane/opendataplane.inc                |
> 21 ++++++++++++++++ .../opendataplane/opendataplane_0.2.bb             | 25
> +++++++++++++++++++ .../opendataplane/opendataplane_git.bb             | 14
> +++++++++++ 4 files changed, 89 insertions(+)
>  create mode 100644
> meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remove-
> unnecessary-include-path.patch create mode 100644
> meta-networking/recipes-support/opendataplane/opendataplane.inc create mode
> 100644 meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
> create mode 100644
> meta-networking/recipes-support/opendataplane/opendataplane_git.bb
> 
> diff --git
> a/meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remov
> e-unnecessary-include-path.patch
> b/meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remov
> e-unnecessary-include-path.patch new file mode 100644
> index 0000000..a0ef7ce
> --- /dev/null
> +++
> b/meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remov
> e-unnecessary-include-path.patch @@ -0,0 +1,29 @@
> +From 72b8eacc2985f054cadc5d0b48351a658998b8d6 Mon Sep 17 00:00:00 2001
> +From: Yao Zhao <yao.zhao@windriver.com>
> +Date: Wed, 30 Jul 2014 16:02:14 -0400
> +Subject: [PATCH] linux-dpdk: remove unnecessary include path
> +
> +for dpdk include/arch and include/exec-env is only included
> +by generic rte_xxx.h header, can't be included directly.
> +
> +Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
> +---
> + platform/linux-dpdk/Makefile.am | 2 --
> + 1 file changed, 2 deletions(-)
> +
> +diff --git a/platform/linux-dpdk/Makefile.am
> b/platform/linux-dpdk/Makefile.am +index 4aa568f..dfcaadb 100644
> +--- a/platform/linux-dpdk/Makefile.am
> ++++ b/platform/linux-dpdk/Makefile.am
> +@@ -12,8 +12,6 @@ PLAT_CFLAGS  = -msse4.2
> + if SDK_INSTALL_PATH_
> + PLAT_CFLAGS += -include $(SDK_INSTALL_PATH)/include/rte_config.h
> + PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include
> +-PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include/arch
> +-PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include/exec-env
> +
> + AM_LDFLAGS  += -L$(SDK_INSTALL_PATH)/lib
> + endif
> +--
> +1.9.1
> +
> diff --git a/meta-networking/recipes-support/opendataplane/opendataplane.inc
> b/meta-networking/recipes-support/opendataplane/opendataplane.inc new file
> mode 100644
> index 0000000..c4b184e
> --- /dev/null
> +++ b/meta-networking/recipes-support/opendataplane/opendataplane.inc
> @@ -0,0 +1,21 @@
> +SUMMARY = "Cross platform OpenDataPlane application APIs"
> +
> +DESCRIPTION = "The OpenDataPlane project has been established to \
> +produce an open-source, cross-platform set of application \
> +programming interfaces (APIs) for the networking data plane."
> +
> +HOMEPAGE = "http://www.opendataplane.org"
> +SECTION = "networking"
> +LICENSE = "BSD-3-Clause"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=4ccfa994aa96974cfcd39a59faee20a2"
> +
> +SRC_URI = "git://git.linaro.org/lng/odp.git"
> +
> +COMPATIBLE_HOST = "^((?!mips).*)$"
> +
> +PACKAGECONFIG ??= "platform_linux_generic"
> +PACKAGECONFIG[netmap] = "--enable-netmap,,,"
> +PACKAGECONFIG[platform_linux_generic] = "--with-platform=linux-generic,,,"
> +
> +S = "${WORKDIR}/git"
> +
> diff --git
> a/meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
> b/meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb new
> file mode 100644
> index 0000000..74b6c2f
> --- /dev/null
> +++ b/meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
> @@ -0,0 +1,25 @@
> +require ${BPN}.inc
> +
> +#odp-0.2 tag
> +SRCREV  = "6007d8833a6880abedf98f792586c0cfb9f10de0"
> +PV = "0.2"
> +
> +#0.2 still using pure Makefile
> +
> +#override the Makefile DESTDIR
> +export DESTDIR="${D}${exec_prefix}"
> +
> +do_install () {
> +    oe_runmake install
> +
> +    #move DESTDIR/share/odp/odp_x usr/bin
> +    install -d ${D}${bindir}
> +    for i in ${DESTDIR}/share/odp/*; do
> +        filename=`basename $i`
> +        mv ${DESTDIR}/share/odp/${filename} ${D}${bindir}/${filename}
> +    done
> +    rm -rf ${DESTDIR}/share
> +}
> +
> +#non standard doc install location
> +FILES_${PN}-doc += "/usr/doc/*"
> diff --git
> a/meta-networking/recipes-support/opendataplane/opendataplane_git.bb
> b/meta-networking/recipes-support/opendataplane/opendataplane_git.bb new
> file mode 100644
> index 0000000..7415993
> --- /dev/null
> +++ b/meta-networking/recipes-support/opendataplane/opendataplane_git.bb
> @@ -0,0 +1,14 @@
> +require ${BPN}.inc
> +
> +SRC_URI += "file://0001-linux-dpdk-remove-unnecessary-include-path.patch"
> +
> +SRCREV  = "${AUTOREV}"

I'm fairly sure we want to avoid having recipes with SRCREV  = "${AUTOREV}" in 
commonly-used public layers, since it's hard to know if it will continue to 
work from one day to the next.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-networking][PATCH] add support for opendataplane
  2014-08-01  9:15 ` Paul Eggleton
@ 2014-08-01 11:39   ` Fathi Boudra
  2014-08-01 13:35     ` Yao Zhao
  0 siblings, 1 reply; 9+ messages in thread
From: Fathi Boudra @ 2014-08-01 11:39 UTC (permalink / raw)
  To: openembedded-devel

On 1 August 2014 12:15, Paul Eggleton <paul.eggleton@linux.intel.com> wrote:
> On Thursday 31 July 2014 15:15:00 Yao Zhao wrote:
>> support build opendataplane from linaro.
>>
>> The OpenDataPlane (ODP) project provides a data plane application
>> programming environment that is easy to use, high performance,
>> and portable between networking SoCs.
>>
>> Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
>> ---
>>  ...inux-dpdk-remove-unnecessary-include-path.patch | 29
>> ++++++++++++++++++++++ .../opendataplane/opendataplane.inc                |
>> 21 ++++++++++++++++ .../opendataplane/opendataplane_0.2.bb             | 25
>> +++++++++++++++++++ .../opendataplane/opendataplane_git.bb             | 14
>> +++++++++++ 4 files changed, 89 insertions(+)
>>  create mode 100644
>> meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remove-
>> unnecessary-include-path.patch create mode 100644
>> meta-networking/recipes-support/opendataplane/opendataplane.inc create mode
>> 100644 meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
>> create mode 100644
>> meta-networking/recipes-support/opendataplane/opendataplane_git.bb
>>
>> diff --git
>> a/meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remov
>> e-unnecessary-include-path.patch
>> b/meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remov
>> e-unnecessary-include-path.patch new file mode 100644
>> index 0000000..a0ef7ce
>> --- /dev/null
>> +++
>> b/meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remov
>> e-unnecessary-include-path.patch @@ -0,0 +1,29 @@
>> +From 72b8eacc2985f054cadc5d0b48351a658998b8d6 Mon Sep 17 00:00:00 2001
>> +From: Yao Zhao <yao.zhao@windriver.com>
>> +Date: Wed, 30 Jul 2014 16:02:14 -0400
>> +Subject: [PATCH] linux-dpdk: remove unnecessary include path
>> +
>> +for dpdk include/arch and include/exec-env is only included
>> +by generic rte_xxx.h header, can't be included directly.
>> +
>> +Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
>> +---
>> + platform/linux-dpdk/Makefile.am | 2 --
>> + 1 file changed, 2 deletions(-)
>> +
>> +diff --git a/platform/linux-dpdk/Makefile.am
>> b/platform/linux-dpdk/Makefile.am +index 4aa568f..dfcaadb 100644
>> +--- a/platform/linux-dpdk/Makefile.am
>> ++++ b/platform/linux-dpdk/Makefile.am
>> +@@ -12,8 +12,6 @@ PLAT_CFLAGS  = -msse4.2
>> + if SDK_INSTALL_PATH_
>> + PLAT_CFLAGS += -include $(SDK_INSTALL_PATH)/include/rte_config.h
>> + PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include
>> +-PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include/arch
>> +-PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include/exec-env
>> +
>> + AM_LDFLAGS  += -L$(SDK_INSTALL_PATH)/lib
>> + endif
>> +--
>> +1.9.1
>> +
>> diff --git a/meta-networking/recipes-support/opendataplane/opendataplane.inc
>> b/meta-networking/recipes-support/opendataplane/opendataplane.inc new file
>> mode 100644
>> index 0000000..c4b184e
>> --- /dev/null
>> +++ b/meta-networking/recipes-support/opendataplane/opendataplane.inc
>> @@ -0,0 +1,21 @@
>> +SUMMARY = "Cross platform OpenDataPlane application APIs"
>> +
>> +DESCRIPTION = "The OpenDataPlane project has been established to \
>> +produce an open-source, cross-platform set of application \
>> +programming interfaces (APIs) for the networking data plane."
>> +
>> +HOMEPAGE = "http://www.opendataplane.org"
>> +SECTION = "networking"
>> +LICENSE = "BSD-3-Clause"
>> +LIC_FILES_CHKSUM = "file://LICENSE;md5=4ccfa994aa96974cfcd39a59faee20a2"
>> +
>> +SRC_URI = "git://git.linaro.org/lng/odp.git"
>> +
>> +COMPATIBLE_HOST = "^((?!mips).*)$"
>> +
>> +PACKAGECONFIG ??= "platform_linux_generic"
>> +PACKAGECONFIG[netmap] = "--enable-netmap,,,"
>> +PACKAGECONFIG[platform_linux_generic] = "--with-platform=linux-generic,,,"
>> +
>> +S = "${WORKDIR}/git"
>> +
>> diff --git
>> a/meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
>> b/meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb new
>> file mode 100644
>> index 0000000..74b6c2f
>> --- /dev/null
>> +++ b/meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
>> @@ -0,0 +1,25 @@
>> +require ${BPN}.inc
>> +
>> +#odp-0.2 tag
>> +SRCREV  = "6007d8833a6880abedf98f792586c0cfb9f10de0"
>> +PV = "0.2"
>> +
>> +#0.2 still using pure Makefile
>> +
>> +#override the Makefile DESTDIR
>> +export DESTDIR="${D}${exec_prefix}"
>> +
>> +do_install () {
>> +    oe_runmake install
>> +
>> +    #move DESTDIR/share/odp/odp_x usr/bin
>> +    install -d ${D}${bindir}
>> +    for i in ${DESTDIR}/share/odp/*; do
>> +        filename=`basename $i`
>> +        mv ${DESTDIR}/share/odp/${filename} ${D}${bindir}/${filename}
>> +    done
>> +    rm -rf ${DESTDIR}/share
>> +}
>> +
>> +#non standard doc install location
>> +FILES_${PN}-doc += "/usr/doc/*"
>> diff --git
>> a/meta-networking/recipes-support/opendataplane/opendataplane_git.bb
>> b/meta-networking/recipes-support/opendataplane/opendataplane_git.bb new
>> file mode 100644
>> index 0000000..7415993
>> --- /dev/null
>> +++ b/meta-networking/recipes-support/opendataplane/opendataplane_git.bb
>> @@ -0,0 +1,14 @@
>> +require ${BPN}.inc
>> +
>> +SRC_URI += "file://0001-linux-dpdk-remove-unnecessary-include-path.patch"
>> +
>> +SRCREV  = "${AUTOREV}"
>
> I'm fairly sure we want to avoid having recipes with SRCREV  = "${AUTOREV}" in
> commonly-used public layers, since it's hard to know if it will continue to
> work from one day to the next.
>
> Cheers,
> Paul

fwiw, we have already a recipe in our layer:
https://git.linaro.org/openembedded/meta-linaro.git/blob/HEAD:/meta-linaro/recipes-extra/odp/odp.bb

You might want to check with our LNG guys for merging and keep only one.
In addition, they can also review/merge your extra patch...

Cheers,
Fathi


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-networking][PATCH] add support for opendataplane
  2014-08-01 11:39   ` Fathi Boudra
@ 2014-08-01 13:35     ` Yao Zhao
  2014-08-01 14:36       ` [meta-networking][PATCH v2] " Yao Zhao
  0 siblings, 1 reply; 9+ messages in thread
From: Yao Zhao @ 2014-08-01 13:35 UTC (permalink / raw)
  To: Fathi Boudra; +Cc: openembedded-devel

[Re: [oe] [meta-networking][PATCH] add support for opendataplane] On 01/08/2014 (Fri 14:39) Fathi Boudra wrote:

> On 1 August 2014 12:15, Paul Eggleton <paul.eggleton@linux.intel.com> wrote:
> > On Thursday 31 July 2014 15:15:00 Yao Zhao wrote:
> >> support build opendataplane from linaro.
> >>
> >> The OpenDataPlane (ODP) project provides a data plane application
> >> programming environment that is easy to use, high performance,
> >> and portable between networking SoCs.
> >>
> >> Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
> >> ---
> >>  ...inux-dpdk-remove-unnecessary-include-path.patch | 29
> >> ++++++++++++++++++++++ .../opendataplane/opendataplane.inc                |
> >> 21 ++++++++++++++++ .../opendataplane/opendataplane_0.2.bb             | 25
> >> +++++++++++++++++++ .../opendataplane/opendataplane_git.bb             | 14
> >> +++++++++++ 4 files changed, 89 insertions(+)
> >>  create mode 100644
> >> meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remove-
> >> unnecessary-include-path.patch create mode 100644
> >> meta-networking/recipes-support/opendataplane/opendataplane.inc create mode
> >> 100644 meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
> >> create mode 100644
> >> meta-networking/recipes-support/opendataplane/opendataplane_git.bb
> >>
> >> diff --git
> >> a/meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remov
> >> e-unnecessary-include-path.patch
> >> b/meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remov
> >> e-unnecessary-include-path.patch new file mode 100644
> >> index 0000000..a0ef7ce
> >> --- /dev/null
> >> +++
> >> b/meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remov
> >> e-unnecessary-include-path.patch @@ -0,0 +1,29 @@
> >> +From 72b8eacc2985f054cadc5d0b48351a658998b8d6 Mon Sep 17 00:00:00 2001
> >> +From: Yao Zhao <yao.zhao@windriver.com>
> >> +Date: Wed, 30 Jul 2014 16:02:14 -0400
> >> +Subject: [PATCH] linux-dpdk: remove unnecessary include path
> >> +
> >> +for dpdk include/arch and include/exec-env is only included
> >> +by generic rte_xxx.h header, can't be included directly.
> >> +
> >> +Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
> >> +---
> >> + platform/linux-dpdk/Makefile.am | 2 --
> >> + 1 file changed, 2 deletions(-)
> >> +
> >> +diff --git a/platform/linux-dpdk/Makefile.am
> >> b/platform/linux-dpdk/Makefile.am +index 4aa568f..dfcaadb 100644
> >> +--- a/platform/linux-dpdk/Makefile.am
> >> ++++ b/platform/linux-dpdk/Makefile.am
> >> +@@ -12,8 +12,6 @@ PLAT_CFLAGS  = -msse4.2
> >> + if SDK_INSTALL_PATH_
> >> + PLAT_CFLAGS += -include $(SDK_INSTALL_PATH)/include/rte_config.h
> >> + PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include
> >> +-PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include/arch
> >> +-PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include/exec-env
> >> +
> >> + AM_LDFLAGS  += -L$(SDK_INSTALL_PATH)/lib
> >> + endif
> >> +--
> >> +1.9.1
> >> +
> >> diff --git a/meta-networking/recipes-support/opendataplane/opendataplane.inc
> >> b/meta-networking/recipes-support/opendataplane/opendataplane.inc new file
> >> mode 100644
> >> index 0000000..c4b184e
> >> --- /dev/null
> >> +++ b/meta-networking/recipes-support/opendataplane/opendataplane.inc
> >> @@ -0,0 +1,21 @@
> >> +SUMMARY = "Cross platform OpenDataPlane application APIs"
> >> +
> >> +DESCRIPTION = "The OpenDataPlane project has been established to \
> >> +produce an open-source, cross-platform set of application \
> >> +programming interfaces (APIs) for the networking data plane."
> >> +
> >> +HOMEPAGE = "http://www.opendataplane.org"
> >> +SECTION = "networking"
> >> +LICENSE = "BSD-3-Clause"
> >> +LIC_FILES_CHKSUM = "file://LICENSE;md5=4ccfa994aa96974cfcd39a59faee20a2"
> >> +
> >> +SRC_URI = "git://git.linaro.org/lng/odp.git"
> >> +
> >> +COMPATIBLE_HOST = "^((?!mips).*)$"
> >> +
> >> +PACKAGECONFIG ??= "platform_linux_generic"
> >> +PACKAGECONFIG[netmap] = "--enable-netmap,,,"
> >> +PACKAGECONFIG[platform_linux_generic] = "--with-platform=linux-generic,,,"
> >> +
> >> +S = "${WORKDIR}/git"
> >> +
> >> diff --git
> >> a/meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
> >> b/meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb new
> >> file mode 100644
> >> index 0000000..74b6c2f
> >> --- /dev/null
> >> +++ b/meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
> >> @@ -0,0 +1,25 @@
> >> +require ${BPN}.inc
> >> +
> >> +#odp-0.2 tag
> >> +SRCREV  = "6007d8833a6880abedf98f792586c0cfb9f10de0"
> >> +PV = "0.2"
> >> +
> >> +#0.2 still using pure Makefile
> >> +
> >> +#override the Makefile DESTDIR
> >> +export DESTDIR="${D}${exec_prefix}"
> >> +
> >> +do_install () {
> >> +    oe_runmake install
> >> +
> >> +    #move DESTDIR/share/odp/odp_x usr/bin
> >> +    install -d ${D}${bindir}
> >> +    for i in ${DESTDIR}/share/odp/*; do
> >> +        filename=`basename $i`
> >> +        mv ${DESTDIR}/share/odp/${filename} ${D}${bindir}/${filename}
> >> +    done
> >> +    rm -rf ${DESTDIR}/share
> >> +}
> >> +
> >> +#non standard doc install location
> >> +FILES_${PN}-doc += "/usr/doc/*"
> >> diff --git
> >> a/meta-networking/recipes-support/opendataplane/opendataplane_git.bb
> >> b/meta-networking/recipes-support/opendataplane/opendataplane_git.bb new
> >> file mode 100644
> >> index 0000000..7415993
> >> --- /dev/null
> >> +++ b/meta-networking/recipes-support/opendataplane/opendataplane_git.bb
> >> @@ -0,0 +1,14 @@
> >> +require ${BPN}.inc
> >> +
> >> +SRC_URI += "file://0001-linux-dpdk-remove-unnecessary-include-path.patch"
> >> +
> >> +SRCREV  = "${AUTOREV}"
> >
> > I'm fairly sure we want to avoid having recipes with SRCREV  = "${AUTOREV}" in
> > commonly-used public layers, since it's hard to know if it will continue to
> > work from one day to the next.
> >
> > Cheers,
> > Paul
> 
> fwiw, we have already a recipe in our layer:
> https://git.linaro.org/openembedded/meta-linaro.git/blob/HEAD:/meta-linaro/recipes-extra/odp/odp.bb
> 
> You might want to check with our LNG guys for merging and keep only one.
> In addition, they can also review/merge your extra patch...
> 
Hi Fathi,

This is what Anders Roxell suggested to commit to yocto, not
meta-linaro.

yao
> Cheers,
> Fathi


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [meta-networking][PATCH v2] add support for opendataplane
  2014-08-01 13:35     ` Yao Zhao
@ 2014-08-01 14:36       ` Yao Zhao
  2014-08-01 14:38         ` Yao Zhao
  2014-08-01 16:05         ` Yao Zhao
  0 siblings, 2 replies; 9+ messages in thread
From: Yao Zhao @ 2014-08-01 14:36 UTC (permalink / raw)
  To: openembedded-devel

changes v2:
1.change /usr to variable in 0.2 bb
2.replace AUTOREV with current HEAD tag(which works) 
3.add more descriptions for dpdk build in commit message
4.will send the 0001-linux-dpdk-remove-unnecessary-include-path.patch
  to upstream.

Yao Zhao (1):
  add support for opendataplane

 ...inux-dpdk-remove-unnecessary-include-path.patch | 29 ++++++++++++++++++++++
 .../opendataplane/opendataplane.inc                | 21 ++++++++++++++++
 .../opendataplane/opendataplane_0.2.bb             | 25 +++++++++++++++++++
 .../opendataplane/opendataplane_git.bb             | 14 +++++++++++
 4 files changed, 89 insertions(+)
 create mode 100644 meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remove-unnecessary-include-path.patch
 create mode 100644 meta-networking/recipes-support/opendataplane/opendataplane.inc
 create mode 100644 meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
 create mode 100644 meta-networking/recipes-support/opendataplane/opendataplane_git.bb

-- 
1.9.1



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [meta-networking][PATCH v2] add support for opendataplane
  2014-08-01 14:36       ` [meta-networking][PATCH v2] " Yao Zhao
@ 2014-08-01 14:38         ` Yao Zhao
  2014-08-08  9:59           ` Martin Jansa
  2014-08-01 16:05         ` Yao Zhao
  1 sibling, 1 reply; 9+ messages in thread
From: Yao Zhao @ 2014-08-01 14:38 UTC (permalink / raw)
  To: openembedded-devel

The OpenDataPlane (ODP) project provides a data plane application
programming environment that is easy to use, high performance,
and portable between networking SoCs.

support build opendataplane release 0.2 and current HEAD from linaro.
For dpdk build, it is tested against layer meta-intel's
common/recipes-extended/dpdk/dpdk_1.6.0r2.bb recipe.
And it is needed to change its do_configure to add support for
a single intel_dpdk library.(default is multiple static libraries)
for example:
@@ -35,6 +35,8 @@ do_configure () {
        #############################################################
        unset prefix

+       sed -i -e "s/CONFIG_RTE_BUILD_COMBINE_LIBS=n/CONFIG_RTE_BUILD_COMBINE_LIBS=y/g" \
+               config/defconfig_${TARGET_ARCH}-default-${TARGET_OS}app-gcc
        make O=$RTE_TARGET T=$RTE_TARGET config

Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
---
 ...inux-dpdk-remove-unnecessary-include-path.patch | 29 ++++++++++++++++++++++
 .../opendataplane/opendataplane.inc                | 21 ++++++++++++++++
 .../opendataplane/opendataplane_0.2.bb             | 25 +++++++++++++++++++
 .../opendataplane/opendataplane_git.bb             | 14 +++++++++++
 4 files changed, 89 insertions(+)
 create mode 100644 meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remove-unnecessary-include-path.patch
 create mode 100644 meta-networking/recipes-support/opendataplane/opendataplane.inc
 create mode 100644 meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
 create mode 100644 meta-networking/recipes-support/opendataplane/opendataplane_git.bb

diff --git a/meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remove-unnecessary-include-path.patch b/meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remove-unnecessary-include-path.patch
new file mode 100644
index 0000000..a0ef7ce
--- /dev/null
+++ b/meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remove-unnecessary-include-path.patch
@@ -0,0 +1,29 @@
+From 72b8eacc2985f054cadc5d0b48351a658998b8d6 Mon Sep 17 00:00:00 2001
+From: Yao Zhao <yao.zhao@windriver.com>
+Date: Wed, 30 Jul 2014 16:02:14 -0400
+Subject: [PATCH] linux-dpdk: remove unnecessary include path
+
+for dpdk include/arch and include/exec-env is only included
+by generic rte_xxx.h header, can't be included directly.
+
+Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
+---
+ platform/linux-dpdk/Makefile.am | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/platform/linux-dpdk/Makefile.am b/platform/linux-dpdk/Makefile.am
+index 4aa568f..dfcaadb 100644
+--- a/platform/linux-dpdk/Makefile.am
++++ b/platform/linux-dpdk/Makefile.am
+@@ -12,8 +12,6 @@ PLAT_CFLAGS  = -msse4.2
+ if SDK_INSTALL_PATH_
+ PLAT_CFLAGS += -include $(SDK_INSTALL_PATH)/include/rte_config.h
+ PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include
+-PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include/arch
+-PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include/exec-env
+ 
+ AM_LDFLAGS  += -L$(SDK_INSTALL_PATH)/lib
+ endif
+-- 
+1.9.1
+
diff --git a/meta-networking/recipes-support/opendataplane/opendataplane.inc b/meta-networking/recipes-support/opendataplane/opendataplane.inc
new file mode 100644
index 0000000..c4b184e
--- /dev/null
+++ b/meta-networking/recipes-support/opendataplane/opendataplane.inc
@@ -0,0 +1,21 @@
+SUMMARY = "Cross platform OpenDataPlane application APIs"
+
+DESCRIPTION = "The OpenDataPlane project has been established to \
+produce an open-source, cross-platform set of application \
+programming interfaces (APIs) for the networking data plane."
+
+HOMEPAGE = "http://www.opendataplane.org"
+SECTION = "networking"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=4ccfa994aa96974cfcd39a59faee20a2"
+                 
+SRC_URI = "git://git.linaro.org/lng/odp.git"
+
+COMPATIBLE_HOST = "^((?!mips).*)$"
+
+PACKAGECONFIG ??= "platform_linux_generic"
+PACKAGECONFIG[netmap] = "--enable-netmap,,,"
+PACKAGECONFIG[platform_linux_generic] = "--with-platform=linux-generic,,,"
+
+S = "${WORKDIR}/git"
+
diff --git a/meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb b/meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
new file mode 100644
index 0000000..6f7f601
--- /dev/null
+++ b/meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
@@ -0,0 +1,25 @@
+require ${BPN}.inc
+
+#odp-0.2 tag
+SRCREV  = "6007d8833a6880abedf98f792586c0cfb9f10de0"
+PV = "0.2"
+
+#0.2 still using pure Makefile
+
+#override the Makefile DESTDIR
+export DESTDIR="${D}${exec_prefix}"
+
+do_install () {
+    oe_runmake install
+    
+    #move DESTDIR/share/odp/odp_x usr/bin
+    install -d ${D}${bindir}
+    for i in ${DESTDIR}/share/odp/*; do
+        filename=`basename $i`
+        mv ${DESTDIR}/share/odp/${filename} ${D}${bindir}/${filename}
+    done
+    rm -rf ${DESTDIR}/share
+}
+
+#non standard doc install location
+FILES_${PN}-doc += "${exec_prefix}/doc/*"
diff --git a/meta-networking/recipes-support/opendataplane/opendataplane_git.bb b/meta-networking/recipes-support/opendataplane/opendataplane_git.bb
new file mode 100644
index 0000000..e569daa
--- /dev/null
+++ b/meta-networking/recipes-support/opendataplane/opendataplane_git.bb
@@ -0,0 +1,14 @@
+require ${BPN}.inc
+
+SRC_URI += "file://0001-linux-dpdk-remove-unnecessary-include-path.patch"
+
+SRCREV  = "68a45b11e52dbf835a7087c15d503c6b0e5d91ed"
+#8f4f080625e2db810da3f13770ba418c72b08ede will support --with-sdk-install-path
+PV = "0.2+git${SRCPV}"
+
+PACKAGECONFIG[platform_linux_generic] = "--with-platform=linux-generic,,openssl,libcrypto"
+#need meta-intel layer's common/recipes-extended/dpdk/dpdk recipe
+PACKAGECONFIG[platform_linux_dpdk] = '--with-platform=linux-dpdk --with-sdk-install-path="${STAGING_EXECPREFIXDIR}",,dpdk,'
+PACKAGECONFIG[platform_linux_keystone2] = "--with-platform=linux-keystone2,,,"
+
+inherit autotools
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [meta-networking][PATCH v2] add support for opendataplane
  2014-08-01 14:36       ` [meta-networking][PATCH v2] " Yao Zhao
  2014-08-01 14:38         ` Yao Zhao
@ 2014-08-01 16:05         ` Yao Zhao
  1 sibling, 0 replies; 9+ messages in thread
From: Yao Zhao @ 2014-08-01 16:05 UTC (permalink / raw)
  To: openembedded-devel

Hi,

Please hold on reviewing this.
I think it needs more work and will repost it a bit later.

Sorry about that.

thanks,
yao

------------------------------------------------------------------------

*From:* Zhao, Yao
*Sent:* Friday, August 01, 2014 10:36AM
*To:* openembedded-devel@lists.openembedded.org
*Subject:* [oe] [meta-networking][PATCH v2] add support for opendataplane

changes v2:
1.change /usr to variable in 0.2 bb
2.replace AUTOREV with current HEAD tag(which works)
3.add more descriptions for dpdk build in commit message
4.will send the 0001-linux-dpdk-remove-unnecessary-include-path.patch
   to upstream.

Yao Zhao (1):
   add support for opendataplane

  ...inux-dpdk-remove-unnecessary-include-path.patch | 29 ++++++++++++++++++++++
  .../opendataplane/opendataplane.inc                | 21 ++++++++++++++++
  .../opendataplane/opendataplane_0.2.bb             | 25 +++++++++++++++++++
  .../opendataplane/opendataplane_git.bb             | 14 +++++++++++
  4 files changed, 89 insertions(+)
  create mode 100644 meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remove-unnecessary-include-path.patch
  create mode 100644 meta-networking/recipes-support/opendataplane/opendataplane.inc
  create mode 100644 meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
  create mode 100644 meta-networking/recipes-support/opendataplane/opendataplane_git.bb





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-networking][PATCH v2] add support for opendataplane
  2014-08-01 14:38         ` Yao Zhao
@ 2014-08-08  9:59           ` Martin Jansa
  0 siblings, 0 replies; 9+ messages in thread
From: Martin Jansa @ 2014-08-08  9:59 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 9045 bytes --]

On Fri, Aug 01, 2014 at 10:38:06AM -0400, Yao Zhao wrote:
> The OpenDataPlane (ODP) project provides a data plane application
> programming environment that is easy to use, high performance,
> and portable between networking SoCs.
> 
> support build opendataplane release 0.2 and current HEAD from linaro.
> For dpdk build, it is tested against layer meta-intel's
> common/recipes-extended/dpdk/dpdk_1.6.0r2.bb recipe.
> And it is needed to change its do_configure to add support for
> a single intel_dpdk library.(default is multiple static libraries)
> for example:
> @@ -35,6 +35,8 @@ do_configure () {
>         #############################################################
>         unset prefix
> 
> +       sed -i -e "s/CONFIG_RTE_BUILD_COMBINE_LIBS=n/CONFIG_RTE_BUILD_COMBINE_LIBS=y/g" \
> +               config/defconfig_${TARGET_ARCH}-default-${TARGET_OS}app-gcc
>         make O=$RTE_TARGET T=$RTE_TARGET config

Fails to build for qemuarm

| arm-oe-linux-gnueabi-libtool: compile:  arm-oe-linux-gnueabi-gcc -march=armv5te -marm -mthumb-interwork --sysroot=/home/jenkins/oe/world/shr-core/tmp-eglibc/sysroots/qemuarm -DHAVE_CONFIG_H -I. -pthread -DODP_DEBUG_PRINT=1 -W -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -Wpointer-arith -Wcast-align -Wnested-externs -Wcast-qual -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -I/home/jenkins/oe/world/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/opendataplane/0.2+gitAUTOINC+68a45b11e5-r0/git/platform/linux-generic/include -I/home/jenkins/oe/world/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/opendataplane/0.2+gitAUTOINC+68a45b11e5-r0/git/platform/linux-generic/include/api -I/home/jenkins/oe/world/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/opendataplane/0.2+gitAUTOINC+68a45b11e5-r0/git/include -O2 -pipe -g -feliminate-unused-debug-types -c /home/jenkins/oe/world/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/opendataplane/0.2+gitAUTOINC+68a45b11e5-r0/git/platform/linux-generic/odp_packet.c -o odp_packet.o
| {standard input}: Assembler messages:
| {standard input}:40: Error: selected processor does not support ARM mode `dmb st'
| {standard input}:72: Error: selected processor does not support ARM mode `dmb st'
| make[2]: *** [odp_barrier.lo] Error 1
| make[2]: *** Waiting for unfinished jobs....
| make[2]: Leaving directory `/home/jenkins/oe/world/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/opendataplane/0.2+gitAUTOINC+68a45b11e5-r0/build/platform/linux-generic'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/home/jenkins/oe/world/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/opendataplane/0.2+gitAUTOINC+68a45b11e5-r0/build/platform'
| make: *** [all-recursive] Error 1
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/jenkins/oe/world/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/opendataplane/0.2+gitAUTOINC+68a45b11e5-r0/temp/log.do_compile.12211)
NOTE: recipe opendataplane-0.2+gitAUTOINC+68a45b11e5-r0: task do_compile: Failed
ERROR: Task 12545 (/home/jenkins/oe/world/shr-core/meta-openembedded/meta-networking/recipes-support/opendataplane/opendataplane_git.bb, do_compile) failed with exit code '1'

> Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
> ---
>  ...inux-dpdk-remove-unnecessary-include-path.patch | 29 ++++++++++++++++++++++
>  .../opendataplane/opendataplane.inc                | 21 ++++++++++++++++
>  .../opendataplane/opendataplane_0.2.bb             | 25 +++++++++++++++++++
>  .../opendataplane/opendataplane_git.bb             | 14 +++++++++++
>  4 files changed, 89 insertions(+)
>  create mode 100644 meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remove-unnecessary-include-path.patch
>  create mode 100644 meta-networking/recipes-support/opendataplane/opendataplane.inc
>  create mode 100644 meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
>  create mode 100644 meta-networking/recipes-support/opendataplane/opendataplane_git.bb
> 
> diff --git a/meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remove-unnecessary-include-path.patch b/meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remove-unnecessary-include-path.patch
> new file mode 100644
> index 0000000..a0ef7ce
> --- /dev/null
> +++ b/meta-networking/recipes-support/opendataplane/files/0001-linux-dpdk-remove-unnecessary-include-path.patch
> @@ -0,0 +1,29 @@
> +From 72b8eacc2985f054cadc5d0b48351a658998b8d6 Mon Sep 17 00:00:00 2001
> +From: Yao Zhao <yao.zhao@windriver.com>
> +Date: Wed, 30 Jul 2014 16:02:14 -0400
> +Subject: [PATCH] linux-dpdk: remove unnecessary include path
> +
> +for dpdk include/arch and include/exec-env is only included
> +by generic rte_xxx.h header, can't be included directly.
> +
> +Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
> +---
> + platform/linux-dpdk/Makefile.am | 2 --
> + 1 file changed, 2 deletions(-)
> +
> +diff --git a/platform/linux-dpdk/Makefile.am b/platform/linux-dpdk/Makefile.am
> +index 4aa568f..dfcaadb 100644
> +--- a/platform/linux-dpdk/Makefile.am
> ++++ b/platform/linux-dpdk/Makefile.am
> +@@ -12,8 +12,6 @@ PLAT_CFLAGS  = -msse4.2
> + if SDK_INSTALL_PATH_
> + PLAT_CFLAGS += -include $(SDK_INSTALL_PATH)/include/rte_config.h
> + PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include
> +-PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include/arch
> +-PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include/exec-env
> + 
> + AM_LDFLAGS  += -L$(SDK_INSTALL_PATH)/lib
> + endif
> +-- 
> +1.9.1
> +
> diff --git a/meta-networking/recipes-support/opendataplane/opendataplane.inc b/meta-networking/recipes-support/opendataplane/opendataplane.inc
> new file mode 100644
> index 0000000..c4b184e
> --- /dev/null
> +++ b/meta-networking/recipes-support/opendataplane/opendataplane.inc
> @@ -0,0 +1,21 @@
> +SUMMARY = "Cross platform OpenDataPlane application APIs"
> +
> +DESCRIPTION = "The OpenDataPlane project has been established to \
> +produce an open-source, cross-platform set of application \
> +programming interfaces (APIs) for the networking data plane."
> +
> +HOMEPAGE = "http://www.opendataplane.org"
> +SECTION = "networking"
> +LICENSE = "BSD-3-Clause"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=4ccfa994aa96974cfcd39a59faee20a2"
> +                 
> +SRC_URI = "git://git.linaro.org/lng/odp.git"
> +
> +COMPATIBLE_HOST = "^((?!mips).*)$"
> +
> +PACKAGECONFIG ??= "platform_linux_generic"
> +PACKAGECONFIG[netmap] = "--enable-netmap,,,"
> +PACKAGECONFIG[platform_linux_generic] = "--with-platform=linux-generic,,,"
> +
> +S = "${WORKDIR}/git"
> +
> diff --git a/meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb b/meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
> new file mode 100644
> index 0000000..6f7f601
> --- /dev/null
> +++ b/meta-networking/recipes-support/opendataplane/opendataplane_0.2.bb
> @@ -0,0 +1,25 @@
> +require ${BPN}.inc
> +
> +#odp-0.2 tag
> +SRCREV  = "6007d8833a6880abedf98f792586c0cfb9f10de0"
> +PV = "0.2"
> +
> +#0.2 still using pure Makefile
> +
> +#override the Makefile DESTDIR
> +export DESTDIR="${D}${exec_prefix}"
> +
> +do_install () {
> +    oe_runmake install
> +    
> +    #move DESTDIR/share/odp/odp_x usr/bin
> +    install -d ${D}${bindir}
> +    for i in ${DESTDIR}/share/odp/*; do
> +        filename=`basename $i`
> +        mv ${DESTDIR}/share/odp/${filename} ${D}${bindir}/${filename}
> +    done
> +    rm -rf ${DESTDIR}/share
> +}
> +
> +#non standard doc install location
> +FILES_${PN}-doc += "${exec_prefix}/doc/*"
> diff --git a/meta-networking/recipes-support/opendataplane/opendataplane_git.bb b/meta-networking/recipes-support/opendataplane/opendataplane_git.bb
> new file mode 100644
> index 0000000..e569daa
> --- /dev/null
> +++ b/meta-networking/recipes-support/opendataplane/opendataplane_git.bb
> @@ -0,0 +1,14 @@
> +require ${BPN}.inc
> +
> +SRC_URI += "file://0001-linux-dpdk-remove-unnecessary-include-path.patch"
> +
> +SRCREV  = "68a45b11e52dbf835a7087c15d503c6b0e5d91ed"
> +#8f4f080625e2db810da3f13770ba418c72b08ede will support --with-sdk-install-path
> +PV = "0.2+git${SRCPV}"
> +
> +PACKAGECONFIG[platform_linux_generic] = "--with-platform=linux-generic,,openssl,libcrypto"
> +#need meta-intel layer's common/recipes-extended/dpdk/dpdk recipe
> +PACKAGECONFIG[platform_linux_dpdk] = '--with-platform=linux-dpdk --with-sdk-install-path="${STAGING_EXECPREFIXDIR}",,dpdk,'
> +PACKAGECONFIG[platform_linux_keystone2] = "--with-platform=linux-keystone2,,,"
> +
> +inherit autotools
> -- 
> 1.9.1
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-08-08  9:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-31 19:15 [meta-networking][PATCH] add support for opendataplane Yao Zhao
2014-07-31 21:01 ` Khem Raj
2014-08-01  9:15 ` Paul Eggleton
2014-08-01 11:39   ` Fathi Boudra
2014-08-01 13:35     ` Yao Zhao
2014-08-01 14:36       ` [meta-networking][PATCH v2] " Yao Zhao
2014-08-01 14:38         ` Yao Zhao
2014-08-08  9:59           ` Martin Jansa
2014-08-01 16:05         ` Yao Zhao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.