summaryrefslogtreecommitdiffstats
path: root/meta/lib/bbconfigbuild/configfragments.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/bbconfigbuild/configfragments.py')
-rw-r--r--meta/lib/bbconfigbuild/configfragments.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/bbconfigbuild/configfragments.py b/meta/lib/bbconfigbuild/configfragments.py
index fec985b442..21baedc9a4 100644
--- a/meta/lib/bbconfigbuild/configfragments.py
+++ b/meta/lib/bbconfigbuild/configfragments.py
@@ -115,7 +115,7 @@ class ConfigFragmentsPlugin(LayerPlugin):
115 def create_conf(self, confpath): 115 def create_conf(self, confpath):
116 if not os.path.exists(confpath): 116 if not os.path.exists(confpath):
117 with open(confpath, 'w') as f: 117 with open(confpath, 'w') as f:
118 f.write('') 118 f.write('# Automated config file controlled by tools\n')
119 with open(confpath, 'r') as f: 119 with open(confpath, 'r') as f:
120 lines = f.read() 120 lines = f.read()
121 if "OE_FRAGMENTS += " not in lines: 121 if "OE_FRAGMENTS += " not in lines:
@@ -184,7 +184,7 @@ class ConfigFragmentsPlugin(LayerPlugin):
184 print("All fragments removed from {}.".format(args.confpath)) 184 print("All fragments removed from {}.".format(args.confpath))
185 185
186 def register_commands(self, sp): 186 def register_commands(self, sp):
187 default_confpath = os.path.join(os.environ["BBPATH"], "conf/local.conf") 187 default_confpath = os.path.join(os.environ["BBPATH"], "conf/toolcfg.conf")
188 188
189 parser_list_fragments = self.add_command(sp, 'list-fragments', self.do_list_fragments, parserecipes=False) 189 parser_list_fragments = self.add_command(sp, 'list-fragments', self.do_list_fragments, parserecipes=False)
190 parser_list_fragments.add_argument("--confpath", default=default_confpath, help='Configuration file which contains a list of enabled fragments (default is {}).'.format(default_confpath)) 190 parser_list_fragments.add_argument("--confpath", default=default_confpath, help='Configuration file which contains a list of enabled fragments (default is {}).'.format(default_confpath))