diff options
Diffstat (limited to 'recipes-extended/dpdk/dpdk-20.11')
4 files changed, 177 insertions, 0 deletions
diff --git a/recipes-extended/dpdk/dpdk-20.11/0001-Makefile-add-makefile.patch b/recipes-extended/dpdk/dpdk-20.11/0001-Makefile-add-makefile.patch new file mode 100644 index 000000000..18b75fb65 --- /dev/null +++ b/recipes-extended/dpdk/dpdk-20.11/0001-Makefile-add-makefile.patch | |||
| @@ -0,0 +1,74 @@ | |||
| 1 | From 768cef60957d5e840071d1d6514d4add3f3c2904 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Naveen Saini <naveen.kumar.saini@intel.com> | ||
| 3 | Date: Wed, 14 Apr 2021 17:25:53 +0800 | ||
| 4 | Subject: [PATCH] Makefile: add makefile | ||
| 5 | |||
| 6 | Current meson build for kernel module build does not fit in Yocto. | ||
| 7 | So added Makefile to build rte_kni.ko | ||
| 8 | |||
| 9 | Upstream-Status: Inappropriate | ||
| 10 | |||
| 11 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | ||
| 12 | --- | ||
| 13 | kernel/linux/kni/Kbuild | 6 ------ | ||
| 14 | kernel/linux/kni/Makefile | 35 +++++++++++++++++++++++++++++++++++ | ||
| 15 | 2 files changed, 35 insertions(+), 6 deletions(-) | ||
| 16 | delete mode 100644 kernel/linux/kni/Kbuild | ||
| 17 | create mode 100644 kernel/linux/kni/Makefile | ||
| 18 | |||
| 19 | diff --git a/kernel/linux/kni/Kbuild b/kernel/linux/kni/Kbuild | ||
| 20 | deleted file mode 100644 | ||
| 21 | index e5452d6c00..0000000000 | ||
| 22 | --- a/kernel/linux/kni/Kbuild | ||
| 23 | +++ /dev/null | ||
| 24 | @@ -1,6 +0,0 @@ | ||
| 25 | -# SPDX-License-Identifier: BSD-3-Clause | ||
| 26 | -# Copyright(c) 2018 Luca Boccassi <bluca@debian.org> | ||
| 27 | - | ||
| 28 | -ccflags-y := $(MODULE_CFLAGS) | ||
| 29 | -obj-m := rte_kni.o | ||
| 30 | -rte_kni-y := $(patsubst $(src)/%.c,%.o,$(wildcard $(src)/*.c)) | ||
| 31 | diff --git a/kernel/linux/kni/Makefile b/kernel/linux/kni/Makefile | ||
| 32 | new file mode 100644 | ||
| 33 | index 0000000000..19897ee06e | ||
| 34 | --- /dev/null | ||
| 35 | +++ b/kernel/linux/kni/Makefile | ||
| 36 | @@ -0,0 +1,35 @@ | ||
| 37 | +# | ||
| 38 | +# Makefile for building rte_kni.ko | ||
| 39 | +# | ||
| 40 | +MODULE_CFLAGS += -include $(S)/config/rte_config.h | ||
| 41 | +MODULE_CFLAGS += -I$(S)/lib/librte_eal/include | ||
| 42 | +MODULE_CFLAGS += -I$(S)/lib/librte_kni | ||
| 43 | +MODULE_CFLAGS += -I$(S)/kernel/linux/kni | ||
| 44 | +MODULE_CFLAGS += -I$(S) | ||
| 45 | +MODULE_CFLAGS += -I$(STAGING_INCDIR) | ||
| 46 | + | ||
| 47 | +rte_kni-objs = kni_misc.o kni_net.o | ||
| 48 | + | ||
| 49 | +ccflags-y := $(MODULE_CFLAGS) | ||
| 50 | +cflags-y := $(MODULE_CFLAGS) | ||
| 51 | +obj-m := rte_kni.o | ||
| 52 | + | ||
| 53 | + | ||
| 54 | +KERNEL_MAKE_OPTS := -C $(STAGING_KERNEL_DIR) M=$(CURDIR) | ||
| 55 | +ifneq ($(ARCH),) | ||
| 56 | +KERNEL_MAKE_OPTS += ARCH=$(ARCH) | ||
| 57 | +endif | ||
| 58 | +ifneq ($(CROSS_COMPILE),) | ||
| 59 | +KERNEL_MAKE_OPTS += CROSS_COMPILE=$(CROSS_COMPILE) | ||
| 60 | +endif | ||
| 61 | + | ||
| 62 | +build: | ||
| 63 | + $(MAKE) $(KERNEL_MAKE_OPTS) modules | ||
| 64 | + | ||
| 65 | +install: modules_install | ||
| 66 | + | ||
| 67 | +modules_install: | ||
| 68 | + $(MAKE) $(KERNEL_MAKE_OPTS) modules_install | ||
| 69 | + | ||
| 70 | +clean: | ||
| 71 | + $(MAKE) $(KERNEL_MAKE_OPTS) clean | ||
| 72 | -- | ||
| 73 | 2.17.1 | ||
| 74 | |||
diff --git a/recipes-extended/dpdk/dpdk-20.11/0001-drivers-net-enetfec-enet_uio.c-fix-multiple-definiti.patch b/recipes-extended/dpdk/dpdk-20.11/0001-drivers-net-enetfec-enet_uio.c-fix-multiple-definiti.patch new file mode 100644 index 000000000..f19b2b32c --- /dev/null +++ b/recipes-extended/dpdk/dpdk-20.11/0001-drivers-net-enetfec-enet_uio.c-fix-multiple-definiti.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 6fe85f3a12d15e25345ef0547035a929351a179c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ting Liu <ting.liu@nxp.com> | ||
| 3 | Date: Fri, 17 Sep 2021 12:53:53 +0530 | ||
| 4 | Subject: [PATCH] drivers/net/enetfec/enet_uio.c: fix multiple definition | ||
| 5 | |||
| 6 | .../drivers/net/enetfec/enet_uio.c:22: multiple definition of `count'; | ||
| 7 | .../examples/flow_classify/flow_classify.c:170: first defined here | ||
| 8 | collect2: error: ld returned 1 exit status | ||
| 9 | |||
| 10 | Signed-off-by: Ting Liu <ting.liu@nxp.com> | ||
| 11 | --- | ||
| 12 | drivers/net/enetfec/enet_uio.c | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/drivers/net/enetfec/enet_uio.c b/drivers/net/enetfec/enet_uio.c | ||
| 16 | index b64dc522e8..9e09f9beb6 100644 | ||
| 17 | --- a/drivers/net/enetfec/enet_uio.c | ||
| 18 | +++ b/drivers/net/enetfec/enet_uio.c | ||
| 19 | @@ -19,7 +19,7 @@ | ||
| 20 | #include "enet_uio.h" | ||
| 21 | |||
| 22 | static struct uio_job enetfec_uio_job; | ||
| 23 | -int count; | ||
| 24 | +static int count; | ||
| 25 | |||
| 26 | /** @brief Reads first line from a file. | ||
| 27 | * Composes file name as: root/subdir/filename | ||
| 28 | -- | ||
| 29 | 2.25.1 | ||
| 30 | |||
diff --git a/recipes-extended/dpdk/dpdk-20.11/0001-ifpga-meson-Fix-finding-librt-using-find_library.patch b/recipes-extended/dpdk/dpdk-20.11/0001-ifpga-meson-Fix-finding-librt-using-find_library.patch new file mode 100644 index 000000000..4df28c40b --- /dev/null +++ b/recipes-extended/dpdk/dpdk-20.11/0001-ifpga-meson-Fix-finding-librt-using-find_library.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | From 308409d72671b7978b20d40748ad985a235b6c86 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Mohamad Noor Alim Hussin <mohamad.noor.alim.hussin@intel.com> | ||
| 3 | Date: Thu, 24 Jun 2021 11:30:09 +0800 | ||
| 4 | Subject: [PATCH] ifpga/meson: Fix finding librt using find_library() | ||
| 5 | |||
| 6 | Finding with "librt" keyword would give the output | ||
| 7 | with full path of librt such as /usr/lib/librt.so | ||
| 8 | instead of -lrt. | ||
| 9 | |||
| 10 | Assume find_library() will prepend "lib", thus remove | ||
| 11 | "lib" from "librt" keyword. The output will shows as | ||
| 12 | -lrt. | ||
| 13 | |||
| 14 | Upstream-Status: Submitted [https://mails.dpdk.org/archives/stable/2021-June/031840.html] | ||
| 15 | |||
| 16 | Signed-off-by: Mohamad Noor Alim Hussin <mohamad.noor.alim.hussin@intel.com> | ||
| 17 | --- | ||
| 18 | drivers/raw/ifpga/base/meson.build | 2 +- | ||
| 19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 20 | |||
| 21 | diff --git a/drivers/raw/ifpga/base/meson.build b/drivers/raw/ifpga/base/meson.build | ||
| 22 | index da2d6e33c..949f7f127 100644 | ||
| 23 | --- a/drivers/raw/ifpga/base/meson.build | ||
| 24 | +++ b/drivers/raw/ifpga/base/meson.build | ||
| 25 | @@ -25,7 +25,7 @@ sources = [ | ||
| 26 | |||
| 27 | rtdep = dependency('librt', required: false) | ||
| 28 | if not rtdep.found() | ||
| 29 | - rtdep = cc.find_library('librt', required: false) | ||
| 30 | + rtdep = cc.find_library('rt', required: false) | ||
| 31 | endif | ||
| 32 | if not rtdep.found() | ||
| 33 | build = false | ||
| 34 | -- | ||
| 35 | 2.32.0 | ||
diff --git a/recipes-extended/dpdk/dpdk-20.11/0001-meson.build-march-and-mcpu-already-passed-by-Yocto.patch b/recipes-extended/dpdk/dpdk-20.11/0001-meson.build-march-and-mcpu-already-passed-by-Yocto.patch new file mode 100644 index 000000000..bef1f45b5 --- /dev/null +++ b/recipes-extended/dpdk/dpdk-20.11/0001-meson.build-march-and-mcpu-already-passed-by-Yocto.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | From cf8f15824dc2dd306d9c7e111641bef045d623c2 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Naveen Saini <naveen.kumar.saini@intel.com> | ||
| 3 | Date: Wed, 14 Apr 2021 16:03:10 +0800 | ||
| 4 | Subject: [PATCH] meson.build:-march and -mcpu already passed by Yocto | ||
| 5 | |||
| 6 | Upstream-Status: Inappropriate | ||
| 7 | |||
| 8 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | ||
| 9 | --- | ||
| 10 | config/meson.build | 12 ++++++------ | ||
| 11 | 1 file changed, 6 insertions(+), 6 deletions(-) | ||
| 12 | |||
| 13 | diff --git a/config/meson.build b/config/meson.build | ||
| 14 | index 2f150de3b8..41bb3e9ec4 100644 | ||
| 15 | --- a/config/meson.build | ||
| 16 | +++ b/config/meson.build | ||
| 17 | @@ -94,12 +94,12 @@ dpdk_conf.set('RTE_MACHINE', machine) | ||
| 18 | machine_args = [] | ||
| 19 | |||
| 20 | # ppc64 does not support -march= at all, use -mcpu and -mtune for that | ||
| 21 | -if host_machine.cpu_family().startswith('ppc') | ||
| 22 | - machine_args += '-mcpu=' + machine | ||
| 23 | - machine_args += '-mtune=' + machine | ||
| 24 | -else | ||
| 25 | - machine_args += '-march=' + machine | ||
| 26 | -endif | ||
| 27 | +#if host_machine.cpu_family().startswith('ppc') | ||
| 28 | +# machine_args += '-mcpu=' + machine | ||
| 29 | +# machine_args += '-mtune=' + machine | ||
| 30 | +#else | ||
| 31 | +# machine_args += '-march=' + machine | ||
| 32 | +#endif | ||
| 33 | |||
| 34 | toolchain = cc.get_id() | ||
| 35 | dpdk_conf.set_quoted('RTE_TOOLCHAIN', toolchain) | ||
| 36 | -- | ||
| 37 | 2.17.1 | ||
| 38 | |||
