diff options
Diffstat (limited to 'recipes-extended/odp')
-rw-r--r-- | recipes-extended/odp/odp.inc | 19 | ||||
-rw-r--r-- | recipes-extended/odp/odp/0001-Fix-this-build-error.patch | 28 | ||||
-rw-r--r-- | recipes-extended/odp/odp/disable-the-Werror-flag.patch | 19 | ||||
-rw-r--r-- | recipes-extended/odp/odp_git.bb | 2 |
4 files changed, 39 insertions, 29 deletions
diff --git a/recipes-extended/odp/odp.inc b/recipes-extended/odp/odp.inc index 172b81c8..421deff2 100644 --- a/recipes-extended/odp/odp.inc +++ b/recipes-extended/odp/odp.inc | |||
@@ -4,21 +4,22 @@ DESCRIPTION = "OpenDataPlane (ODP) provides a data plane application programming | |||
4 | HOMEPAGE = "http://www.opendataplane.org" | 4 | HOMEPAGE = "http://www.opendataplane.org" |
5 | SECTION = "console/network" | 5 | SECTION = "console/network" |
6 | LICENSE = "BSD-3-Clause" | 6 | LICENSE = "BSD-3-Clause" |
7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4ccfa994aa96974cfcd39a59faee20a2" | 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=472053b942339f200d9e1d2dcb947e9d" |
8 | 8 | ||
9 | FILESEXTRAPATHS_prepend := "${THISDIR}/odp:" | 9 | FILESEXTRAPATHS_prepend := "${THISDIR}/odp:" |
10 | 10 | ||
11 | SRC_URI = " \ | 11 | SRC_URI = " \ |
12 | git://git.freescale.com/ppc/sdk/odp.git;nobranch=1 \ | 12 | git://github.com/qoriq-open-source/odp.git;nobranch=1 \ |
13 | git://git.freescale.com/ppc/sdk/qbman_userspace.git;nobranch=1;name=qbman;destsuffix=git/platform/linux-dpaa2/flib/qbman \ | 13 | git://github.com/qoriq-open-source/qbman_userspace.git;nobranch=1;name=qbman;destsuffix=git/platform/linux-dpaa2/flib/qbman \ |
14 | git://git.freescale.com/ppc/sdk/flib.git;nobranch=1;name=rta;destsuffix=git/platform/linux-dpaa2/flib/rta \ | 14 | git://github.com/qoriq-open-source/flib.git;nobranch=1;name=rta;destsuffix=git/platform/linux-dpaa2/flib/rta \ |
15 | " | 15 | " |
16 | SRC_URI += "file://disable-the-Werror-flag.patch" | ||
17 | 16 | ||
18 | SRCREV = "a8935384642f5da8236260dd553c52dbbc7c63ed" | 17 | SRC_URI += "file://0001-Fix-this-build-error.patch" |
19 | SRCREV_qbman = "0b8648d702f701417cd6cc3cbcdc228e640d20b6" | 18 | |
20 | SRCREV_rta = "bbab28b03ae21c52ce913f8b052acf53bd24ff5d" | 19 | SRCREV = "fdb26cb5c751afadf2299da2a1376e6ca0e61cc7" |
20 | SRCREV_qbman = "097595befc2bb60b733027e94ad2ed16a0e9cae0" | ||
21 | SRCREV_rta = "2c9b9dc22699f7c00f24a2134c42901932a6a0b9" | ||
21 | 22 | ||
22 | S = "${WORKDIR}/git" | 23 | S = "${WORKDIR}/git" |
23 | 24 | ||
24 | COMPATIBLE_MACHINE = "(ls1043a|ls1046a|ls2080a|ls2088a)" | 25 | COMPATIBLE_MACHINE = "(ls1043a|ls1046a|ls2080a|ls2088a|ls1088a)" |
diff --git a/recipes-extended/odp/odp/0001-Fix-this-build-error.patch b/recipes-extended/odp/odp/0001-Fix-this-build-error.patch new file mode 100644 index 00000000..fd276437 --- /dev/null +++ b/recipes-extended/odp/odp/0001-Fix-this-build-error.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 9fb1642b38053de6e8098f6b608ad86ff45bf7f7 Mon Sep 17 00:00:00 2001 | ||
2 | From: Chunrong Guo <chunrong.guo@nxp.com> | ||
3 | Date: Fri, 28 Jul 2017 14:59:22 +0800 | ||
4 | Subject: [PATCH] Fix this build error | ||
5 | |||
6 | fix the below error: | ||
7 | |error: 'SIGEV_THREAD' undeclared (first use in this function); did you mean 'CLONE_THREAD'? | ||
8 | |||
9 | Signed-off-by: Chunrong Guo <B40290@freescale.com> | ||
10 | --- | ||
11 | example/lpm-ipfwd/app/odp_lpmfwd.c | 1 + | ||
12 | 1 file changed, 1 insertion(+) | ||
13 | |||
14 | diff --git a/example/lpm-ipfwd/app/odp_lpmfwd.c b/example/lpm-ipfwd/app/odp_lpmfwd.c | ||
15 | index 57c5e82..f8507be 100644 | ||
16 | --- a/example/lpm-ipfwd/app/odp_lpmfwd.c | ||
17 | +++ b/example/lpm-ipfwd/app/odp_lpmfwd.c | ||
18 | @@ -23,6 +23,7 @@ | ||
19 | #include <errno.h> | ||
20 | #include <error.h> | ||
21 | #include <mqueue.h> | ||
22 | +#include <signal.h> | ||
23 | |||
24 | #include <example_debug.h> | ||
25 | |||
26 | -- | ||
27 | 1.8.3.2 | ||
28 | |||
diff --git a/recipes-extended/odp/odp/disable-the-Werror-flag.patch b/recipes-extended/odp/odp/disable-the-Werror-flag.patch deleted file mode 100644 index 3ba1c060..00000000 --- a/recipes-extended/odp/odp/disable-the-Werror-flag.patch +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | Patch to disable the Werror flag. | ||
2 | |||
3 | Werror flag is causing the code compilaton error when | ||
4 | ubuntu toolchain is used to compile the code in Dash. | ||
5 | This patch disables the Werror flag to avoid such errors. | ||
6 | |||
7 | Signed-off-by: Sandeep Malik <Sandeep.Malik@nxp.com> | ||
8 | |||
9 | --- a/configure.acold 2017-04-19 17:40:58.312258373 +0800 | ||
10 | +++ b/configure.ac 2017-04-19 17:41:22.820257525 +0800 | ||
11 | @@ -249,7 +249,7 @@ | ||
12 | ########################################################################## | ||
13 | # Default warning setup | ||
14 | ########################################################################## | ||
15 | -ODP_CFLAGS="$ODP_CFLAGS -W -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes" | ||
16 | +ODP_CFLAGS="$ODP_CFLAGS -W -Wall -Wstrict-prototypes -Wmissing-prototypes" | ||
17 | ODP_CFLAGS="$ODP_CFLAGS -Wmissing-declarations -Wold-style-definition -Wpointer-arith" | ||
18 | ODP_CFLAGS="$ODP_CFLAGS -Wcast-align -Wnested-externs -Wcast-qual -Wformat-nonliteral" | ||
19 | ODP_CFLAGS="$ODP_CFLAGS -Wformat-security -Wundef -Wwrite-strings" | ||
diff --git a/recipes-extended/odp/odp_git.bb b/recipes-extended/odp/odp_git.bb index 32e31072..b7c7deb6 100644 --- a/recipes-extended/odp/odp_git.bb +++ b/recipes-extended/odp/odp_git.bb | |||
@@ -18,6 +18,7 @@ ODP_BUILD_TYPE ?= "ls2088" | |||
18 | ODP_BUILD_TYPE_ls1043ardb = "ls1043" | 18 | ODP_BUILD_TYPE_ls1043ardb = "ls1043" |
19 | ODP_BUILD_TYPE_ls1046ardb = "ls1046" | 19 | ODP_BUILD_TYPE_ls1046ardb = "ls1046" |
20 | ODP_BUILD_TYPE_ls2080ardb = "ls2080" | 20 | ODP_BUILD_TYPE_ls2080ardb = "ls2080" |
21 | ODP_BUILD_TYPE_ls1088ardb = "ls1088" | ||
21 | 22 | ||
22 | EXTRA_OECONF = "--with-platform=${ODP_PLATFORM} \ | 23 | EXTRA_OECONF = "--with-platform=${ODP_PLATFORM} \ |
23 | --with-sdk-install-path=${STAGING_DIR_TARGET} \ | 24 | --with-sdk-install-path=${STAGING_DIR_TARGET} \ |
@@ -53,7 +54,6 @@ do_install_append () { | |||
53 | cp -rf ${S}/platform/linux-dpaa2/kni/*.h ${D}${includedir}/odp/kni/ | 54 | cp -rf ${S}/platform/linux-dpaa2/kni/*.h ${D}${includedir}/odp/kni/ |
54 | cp -rf ${S}/kern/*.h ${D}${includedir}/odp/kern/ | 55 | cp -rf ${S}/kern/*.h ${D}${includedir}/odp/kern/ |
55 | cp -rf ${S}/platform/linux-dpaa2/flib/mc/*.h ${D}${includedir}/odp/flib/mc/ | 56 | cp -rf ${S}/platform/linux-dpaa2/flib/mc/*.h ${D}${includedir}/odp/flib/mc/ |
56 | cp -rf ${S}/platform/linux-dpaa2/flib/qbman/include/drivers/*.h ${D}${includedir}/odp/flib/qbman/include/drivers | ||
57 | 57 | ||
58 | sed -i -e 's#platform/linux-dpaa2/##g' ${D}${includedir}/odp/kern/*.h | 58 | sed -i -e 's#platform/linux-dpaa2/##g' ${D}${includedir}/odp/kern/*.h |
59 | } | 59 | } |