diff options
| author | Ong Boon Leong <boon.leong.ong@intel.com> | 2015-07-10 21:23:43 +0800 |
|---|---|---|
| committer | Saul Wold <sgw@linux.intel.com> | 2015-07-10 08:16:04 -0700 |
| commit | 08884038d9013b2e1beb9451266e50a202e0d261 (patch) | |
| tree | b1dbd7a8bf5ed3f1552f778cd4bed797941eb338 /meta-isg/common | |
| parent | b98a5d0d6c163b92b9460d65836756875d4b6fda (diff) | |
| download | meta-intel-08884038d9013b2e1beb9451266e50a202e0d261.tar.gz | |
meta-isg: dpdk v1.8.0: add makefile patches to support split kernel output
Starting form YPv1.8.y onwards, the kernel build output is separately kept
under work-shared.
Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta-isg/common')
| -rw-r--r-- | meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-add-RTE_KERNELDIR_OUT-to-split-kernel-bu.patch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-add-RTE_KERNELDIR_OUT-to-split-kernel-bu.patch b/meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-add-RTE_KERNELDIR_OUT-to-split-kernel-bu.patch new file mode 100644 index 00000000..bfef2218 --- /dev/null +++ b/meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-add-RTE_KERNELDIR_OUT-to-split-kernel-bu.patch | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | From 69238a0b910bca43ef13154718a7a6c9b0dabe8a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ong Boon Leong <boon.leong.ong@intel.com> | ||
| 3 | Date: Thu, 25 Jun 2015 15:39:38 +0800 | ||
| 4 | Subject: [PATCH] dpdk v1.8.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: Ong Boon Leong <boon.leong.ong@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 7bf77c1..d4253a5 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.7.9.5 | ||
| 52 | |||
