diff options
author | Chunrong Guo <chunrong.guo@nxp.com> | 2017-03-17 15:51:02 +0800 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2017-03-17 17:04:03 -0300 |
commit | 4a33957a21273ad50e2356f7e2c54c2ef4966b32 (patch) | |
tree | 34920fd4d268ab6b863fee7d86407385c8b2c007 /recipes-extended/dpdk/dpdk | |
parent | 7493e87a4d7db0fb4bf2a03d2891b7e056b3c41a (diff) | |
download | meta-freescale-4a33957a21273ad50e2356f7e2c54c2ef4966b32.tar.gz |
dpdk/dpdk-extras/ovs-dpdk: add recipe
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-extended/dpdk/dpdk')
-rw-r--r-- | recipes-extended/dpdk/dpdk/0001-include-sys-sysmacros.h-for-major-minor-defintions.patch | 38 | ||||
-rw-r--r-- | recipes-extended/dpdk/dpdk/add-RTE_KERNELDIR_OUT-to-split-kernel-bu.patch | 51 |
2 files changed, 89 insertions, 0 deletions
diff --git a/recipes-extended/dpdk/dpdk/0001-include-sys-sysmacros.h-for-major-minor-defintions.patch b/recipes-extended/dpdk/dpdk/0001-include-sys-sysmacros.h-for-major-minor-defintions.patch new file mode 100644 index 00000000..c8940446 --- /dev/null +++ b/recipes-extended/dpdk/dpdk/0001-include-sys-sysmacros.h-for-major-minor-defintions.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | Subject: [PATCH] include <sys/sysmacros.h> for major/minor defintions | ||
2 | |||
3 | glibc 2.25 is warning about it if applications depend on | ||
4 | sys/types.h for these macros, it expects to be included | ||
5 | from <sys/sysmacros.h> | ||
6 | |||
7 | Fixes | ||
8 | | Grow.c:3534:13: error: In the GNU C Library, "minor" is defined | ||
9 | | by <sys/sysmacros.h>. For historical compatibility, it is | ||
10 | | currently defined by <sys/types.h> as well, but we plan to | ||
11 | | remove this soon. To use "minor", include <sys/sysmacros.h> | ||
12 | | directly. If you did not intend to use a system-defined macro | ||
13 | | "minor", you should undefine it after including <sys/types.h>. [-Werror] | ||
14 | | Query.c: In function 'Query': | ||
15 | | Query.c:105:13: error: In the GNU C Library, "makedev" is defined | ||
16 | | by <sys/sysmacros.h>. For historical compatibility, it is | ||
17 | | currently defined by <sys/types.h> as well, but we plan to | ||
18 | | remove this soon. To use "makedev", include <sys/sysmacros.h> | ||
19 | | directly. If you did not intend to use a system-defined macro | ||
20 | | "makedev", you should undefine it after including <sys/types.h>. [-Werror] | ||
21 | | makedev((unsigned)disc.major,(unsigned)disc.minor) == stb.st_rdev) | ||
22 | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
23 | |||
24 | Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com> | ||
25 | --- | ||
26 | Upstream-Status: Pending | ||
27 | |||
28 | |||
29 | --- a/lib/librte_eal/linuxapp/eal/eal_pci_uio.cold 2017-02-27 17:36:15.984931159 +0800 | ||
30 | +++ b/lib/librte_eal/linuxapp/eal/eal_pci_uio.c 2017-02-27 17:36:57.520929721 +0800 | ||
31 | @@ -39,6 +39,7 @@ | ||
32 | #include <sys/stat.h> | ||
33 | #include <sys/mman.h> | ||
34 | #include <linux/pci_regs.h> | ||
35 | +#include <sys/sysmacros.h> | ||
36 | |||
37 | #if defined(RTE_ARCH_X86) | ||
38 | #include <sys/io.h> | ||
diff --git a/recipes-extended/dpdk/dpdk/add-RTE_KERNELDIR_OUT-to-split-kernel-bu.patch b/recipes-extended/dpdk/dpdk/add-RTE_KERNELDIR_OUT-to-split-kernel-bu.patch new file mode 100644 index 00000000..4657f070 --- /dev/null +++ b/recipes-extended/dpdk/dpdk/add-RTE_KERNELDIR_OUT-to-split-kernel-bu.patch | |||
@@ -0,0 +1,51 @@ | |||
1 | From 6c8d348190a8cf6c35111913cbf117ca98137e84 Mon Sep 17 00:00:00 2001 | ||
2 | From: Rahul Kumar Gupta <rahul.kumarxx.gupta@intel.com> | ||
3 | Date: Fri, 18 Dec 2015 18:30:47 +0800 | ||
4 | Subject: [PATCH] dpdk v2.2.0: add RTE_KERNELDIR_OUT to split kernel build | ||
5 | artifact | ||
6 | |||
7 | Introduce RTE_KERNELDIR_OUT to be the path to which kernel build | ||
8 | artifacts are located. This is for matching the workflow change | ||
9 | since Yocto Project v1.8 onwards whereby tmp/work-shared contains | ||
10 | separate directories for kernel source and kernel artifacts. | ||
11 | |||
12 | Upstream-Status: Inappropriate [configuration] | ||
13 | |||
14 | Signed-off-by: Rahul Kumar Gupta <rahul.kumarxx.gupta@intel.com> | ||
15 | --- | ||
16 | mk/rte.module.mk | 6 +++--- | ||
17 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
18 | |||
19 | diff --git a/mk/rte.module.mk b/mk/rte.module.mk | ||
20 | index 53ed4fe..b7a014b 100644 | ||
21 | --- a/mk/rte.module.mk | ||
22 | +++ b/mk/rte.module.mk | ||
23 | @@ -77,7 +77,7 @@ build: _postbuild | ||
24 | # build module | ||
25 | $(MODULE).ko: $(SRCS_LINKS) | ||
26 | @if [ ! -f $(notdir Makefile) ]; then ln -nfs $(SRCDIR)/Makefile . ; fi | ||
27 | - @$(MAKE) -C $(RTE_KERNELDIR) M=$(CURDIR) O=$(RTE_KERNELDIR) \ | ||
28 | + @$(MAKE) -C $(RTE_KERNELDIR) M=$(CURDIR) O=$(RTE_KERNELDIR_OUT) \ | ||
29 | CC="$(KERNELCC)" CROSS_COMPILE=$(CROSS) V=$(if $V,1,0) | ||
30 | |||
31 | # install module in $(RTE_OUTPUT)/kmod | ||
32 | @@ -88,7 +88,7 @@ $(RTE_OUTPUT)/kmod/$(MODULE).ko: $(MODULE).ko | ||
33 | |||
34 | # install module | ||
35 | modules_install: | ||
36 | - @$(MAKE) -C $(RTE_KERNELDIR) M=$(CURDIR) O=$(RTE_KERNELDIR) \ | ||
37 | + @$(MAKE) -C $(RTE_KERNELDIR) M=$(CURDIR) O=$(RTE_KERNELDIR_OUT) \ | ||
38 | modules_install | ||
39 | |||
40 | .PHONY: clean | ||
41 | @@ -98,7 +98,7 @@ clean: _postclean | ||
42 | .PHONY: doclean | ||
43 | doclean: | ||
44 | @if [ ! -f $(notdir Makefile) ]; then ln -nfs $(SRCDIR)/Makefile . ; fi | ||
45 | - $(Q)$(MAKE) -C $(RTE_KERNELDIR) M=$(CURDIR) O=$(RTE_KERNELDIR) clean | ||
46 | + $(Q)$(MAKE) -C $(RTE_KERNELDIR) M=$(CURDIR) O=$(RTE_KERNELDIR_OUT) clean | ||
47 | @$(foreach FILE,$(SRCS-y) $(SRCS-n) $(SRCS-),\ | ||
48 | if [ -h $(notdir $(FILE)) ]; then rm -f $(notdir $(FILE)) ; fi ;) | ||
49 | @if [ -h $(notdir Makefile) ]; then rm -f $(notdir Makefile) ; fi | ||
50 | -- | ||
51 | 1.9.1 | ||