[dts] [PATCH 3/3] framework project_dpdk: fix dpdk recompile error

Jianbo Liu jianbo.liu at linaro.org
Fri Nov 18 07:20:59 CET 2016


Remove temporay files in the app/test to make recompile successfully.

Signed-off-by: Jianbo Liu <jianbo.liu at linaro.org>
---
 framework/project_dpdk.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py
index 0b6ef2d..067590b 100644
--- a/framework/project_dpdk.py
+++ b/framework/project_dpdk.py
@@ -174,6 +174,8 @@ 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' , "#")
+        self.send_expect("rm -rf %s" % r'./app/test/test_resource_tar.res.o' , "#")
+        self.send_expect("rm -rf %s" % r'./app/test/test_pci_sysfs.res.o' , "#")
 
         # compile
         out = self.send_expect("make -j install T=%s %s" % (target, extra_options), "# ", build_time)
@@ -193,6 +195,8 @@ 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' , "#")
+        self.send_expect("rm -rf %s" % r'./app/test/test_resource_tar.res.o' , "#")
+        self.send_expect("rm -rf %s" % r'./app/test/test_pci_sysfs.res.o' , "#")
 
         # compile
         out = self.send_expect("make -j %d install T=%s CC=gcc48" % (self.number_of_cores,
@@ -322,6 +326,8 @@ class DPDKdut(Dut):
         else:
             timeout = 90
         self.send_expect("rm -rf %s" % r'./app/test/test_resource_c.res.o' , "#")
+        self.send_expect("rm -rf %s" % r'./app/test/test_resource_tar.res.o' , "#")
+        self.send_expect("rm -rf %s" % r'./app/test/test_pci_sysfs.res.o' , "#")
         return self.send_expect("make -j -C %s %s" % (folder, extra_options),
                                 "# ", timeout)
 
@@ -330,6 +336,8 @@ class DPDKdut(Dut):
         Build dpdk sample applications on Freebsd.
         """
         self.send_expect("rm -rf %s" % r'./app/test/test_resource_c.res.o' , "#")
+        self.send_expect("rm -rf %s" % r'./app/test/test_resource_tar.res.o' , "#")
+        self.send_expect("rm -rf %s" % r'./app/test/test_pci_sysfs.res.o' , "#")
         return self.send_expect("make -j -C %s %s CC=gcc48" % (folder, extra_options),
                                 "# ", 180)
 
-- 
1.9.1



More information about the dts mailing list