Lines Matching full:os
22 mode = os.stat(src).st_mode
36 self.layerdirs = [os.path.abspath(pth) for pth in d.getVar('BBLAYERS').split()]
48 corebase = os.path.abspath(self.d.getVar('COREBASE'))
53 layers.append(os.path.join(corebase, 'meta-skeleton'))
71 layernames = [os.path.basename(layer) for layer in layers]
84 layerconf = os.path.join(layer, 'conf', 'layer.conf')
85 layernewname = os.path.basename(layer)
87 if os.path.exists(layerconf):
100 if corebase == os.path.dirname(layer):
101 layerdestpath += '/' + os.path.basename(corebase)
104 elif os.path.commonpath([layer, corebase]) == os.path.dirname(corebase):
105 layer_relative = os.path.relpath(layer, os.path.dirname(corebase))
106 if os.path.dirname(layer_relative) != layernewname:
107 layerdestpath += '/' + os.path.dirname(layer_relative)
111 layer_relative = os.path.relpath(layerdestpath,
119 f_basename = os.path.basename(f)
120 destname = os.path.join(layerdestpath, f_basename)
125 if os.path.exists(os.path.join(layerdestpath, 'conf/layer.conf')):
133 srcdir = os.path.join(layerdestpath, 'sources')
134 if os.path.isdir(srcdir):
139 … image_bbappend = os.path.splitext(os.path.basename(self.d.getVar('FILE')))[0] + '.bbappend'
140 appenddir = os.path.join(layerdestpath, 'appends')
141 if os.path.isdir(appenddir):
142 for fn in os.listdir(appenddir):
146 os.remove(os.path.join(appenddir, fn))
148 readme = os.path.join(layerdestpath, 'README')
149 if os.path.exists(readme):
150 os.remove(readme)
152 layerconf = os.path.join(layerdestpath, 'conf', 'layer.conf')
173 bb.utils.mkdirhier(os.path.dirname(sigfile))
180 bb.utils.mkdirhier(os.path.dirname(pruned_output))
245 bb.utils.mkdirhier(os.path.dirname(fn))
271 if os.path.isdir(nativedir):
272 destdir = os.path.join(output_sstate_cache, fixedlsbstring)
273 for root, _, files in os.walk(nativedir):
275 src = os.path.join(root, fn)
276 dest = os.path.join(destdir, os.path.relpath(src, nativedir))
277 if os.path.exists(dest):
279 os.unlink(src)
281 bb.utils.mkdirhier(os.path.dirname(dest))
290 cwd = os.getcwd()