test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] fix dpdk compile error
@ 2016-09-08  1:36 xu,huilong
  2016-09-08  6:38 ` Liu, Yong
  0 siblings, 1 reply; 2+ messages in thread
From: xu,huilong @ 2016-09-08  1:36 UTC (permalink / raw)
  To: dts; +Cc: xu,huilong

dpdk makefile add a new function for build resource file.
so before compile dpdk again, we need remove the resource.

Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
 framework/project_dpdk.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py
index 4e44793..803585d 100644
--- a/framework/project_dpdk.py
+++ b/framework/project_dpdk.py
@@ -170,6 +170,7 @@ class DPDKdut(Dut):
             build_time = 900
         # clean all
         self.send_expect("rm -rf " + target, "#")
+        self.send_expect("rm -rf %s" % r'./app/test/test_resource_c.res.o' , "#")
 
         # compile
         out = self.send_expect("make -j install T=%s %s" % (target, extra_options), "# ", build_time)
@@ -188,6 +189,7 @@ class DPDKdut(Dut):
         """
         # clean all
         self.send_expect("rm -rf " + target, "#")
+        self.send_expect("rm -rf %s" % r'./app/test/test_resource_c.res.o' , "#")
 
         # compile
         out = self.send_expect("make -j %d install T=%s CC=gcc48" % (self.number_of_cores,
@@ -312,6 +314,7 @@ class DPDKdut(Dut):
         """
         Build dpdk sample applications on linux.
         """
+        self.send_expect("rm -rf %s" % r'./app/test/test_resource_c.res.o' , "#")
         return self.send_expect("make -j -C %s %s" % (folder, extra_options),
                                 "# ", 90)
 
@@ -319,6 +322,7 @@ class DPDKdut(Dut):
         """
         Build dpdk sample applications on Freebsd.
         """
+        self.send_expect("rm -rf %s" % r'./app/test/test_resource_c.res.o' , "#")
         return self.send_expect("make -j -C %s %s CC=gcc48" % (folder, extra_options),
                                 "# ", 90)
 
-- 
1.9.3

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

* Re: [dts] [PATCH V1] fix dpdk compile error
  2016-09-08  1:36 [dts] [PATCH V1] fix dpdk compile error xu,huilong
@ 2016-09-08  6:38 ` Liu, Yong
  0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2016-09-08  6:38 UTC (permalink / raw)
  To: Xu, HuilongX, dts; +Cc: Xu, HuilongX

Thanks huilong, applied into master branch. This is work around for dpdk build issue.

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xu,huilong
> Sent: Thursday, September 08, 2016 9:37 AM
> To: dts@dpdk.org
> Cc: Xu, HuilongX
> Subject: [dts] [PATCH V1] fix dpdk compile error
> 
> dpdk makefile add a new function for build resource file.
> so before compile dpdk again, we need remove the resource.
> 
> Signed-off-by: xu,huilong <huilongx.xu@intel.com>
> ---
>  framework/project_dpdk.py | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py
> index 4e44793..803585d 100644
> --- a/framework/project_dpdk.py
> +++ b/framework/project_dpdk.py
> @@ -170,6 +170,7 @@ class DPDKdut(Dut):
>              build_time = 900
>          # clean all
>          self.send_expect("rm -rf " + target, "#")
> +        self.send_expect("rm -rf %s" %
> r'./app/test/test_resource_c.res.o' , "#")
> 
>          # compile
>          out = self.send_expect("make -j install T=%s %s" % (target,
> extra_options), "# ", build_time)
> @@ -188,6 +189,7 @@ class DPDKdut(Dut):
>          """
>          # clean all
>          self.send_expect("rm -rf " + target, "#")
> +        self.send_expect("rm -rf %s" %
> r'./app/test/test_resource_c.res.o' , "#")
> 
>          # compile
>          out = self.send_expect("make -j %d install T=%s CC=gcc48" %
> (self.number_of_cores,
> @@ -312,6 +314,7 @@ class DPDKdut(Dut):
>          """
>          Build dpdk sample applications on linux.
>          """
> +        self.send_expect("rm -rf %s" %
> r'./app/test/test_resource_c.res.o' , "#")
>          return self.send_expect("make -j -C %s %s" % (folder,
> extra_options),
>                                  "# ", 90)
> 
> @@ -319,6 +322,7 @@ class DPDKdut(Dut):
>          """
>          Build dpdk sample applications on Freebsd.
>          """
> +        self.send_expect("rm -rf %s" %
> r'./app/test/test_resource_c.res.o' , "#")
>          return self.send_expect("make -j -C %s %s CC=gcc48" % (folder,
> extra_options),
>                                  "# ", 90)
> 
> --
> 1.9.3

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

end of thread, other threads:[~2016-09-08  6:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-08  1:36 [dts] [PATCH V1] fix dpdk compile error xu,huilong
2016-09-08  6:38 ` Liu, Yong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).