[yocto] [yocto-autobuilder][PATCH] CreateAutoConf.py: fix default path for auto.conf

Bill Randle william.c.randle at intel.com
Wed Jun 29 12:47:00 PDT 2016


Commit 1d67af87fafe89f75041824bfcf00e92163b949f made the destination
path configurable, with the default supposed to be "./build/conf/auto.conf".
A typo in the patch instead set the default to "./build/auto.conf".
In addition, replace hard coded path with configurable value when
removing a previous auto.conf file.

Signed-off-by: Bill Randle <william.c.randle at intel.com>
---
 lib/python2.7/site-packages/autobuilder/buildsteps/CreateAutoConf.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/python2.7/site-packages/autobuilder/buildsteps/CreateAutoConf.py b/lib/python2.7/site-packages/autobuilder/buildsteps/CreateAutoConf.py
index 57726b7..8817d69 100644
--- a/lib/python2.7/site-packages/autobuilder/buildsteps/CreateAutoConf.py
+++ b/lib/python2.7/site-packages/autobuilder/buildsteps/CreateAutoConf.py
@@ -43,7 +43,7 @@ class CreateAutoConf(ShellCommand):
         self.kwargs = kwargs
         self.devkernel = True
         self.tmpdir = None
-        self.autoconfpath = "./build/auto.conf"
+        self.autoconfpath = "./build/conf/auto.conf"
         self.rmautoconf = "True"
         for k, v in argdict.iteritems():
             if type(v) is bool:
@@ -65,7 +65,7 @@ class CreateAutoConf(ShellCommand):
         self.command = ""
         fout = ""
         if self.rmautoconf == "True":
-            self.command += "rm -rf ./build/conf/auto.conf;"
+            self.command += "rm -rf %s;" % self.autoconfpath
         #check to see if we have a prepend
         if self.atextprepend:
             fout = fout +"\n"+ self.atextprepend
-- 
2.5.5




More information about the yocto mailing list