Lines Matching +full:data +full:- +full:mirror
2 # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
8 # 4) source mirror: ARCHIVER_MODE[src] = "mirror"
12 # ARCHIVER_MODE[diff-exclude] ?= ".pc autom4te.cache patches"
13 # 6) The environment data, similar to 'bitbake -e recipe':
25 # 11) The source mirror mode:
26 # ARCHIVER_MODE[mirror] = "split" (default): Sources are split into
27 # per-recipe directories in a similar way to other archiver modes.
28 # Post-processing may be required to produce a single mirror directory.
31 # ARCHIVER_MODE[mirror] = "combined": All sources are placed into a single
32 # directory suitable for direct use as a mirror. Duplicate sources are
34 # 12) Source mirror exclusions:
35 # ARCHIVER_MIRROR_EXCLUDE is a list of prefixes to exclude from the mirror.
37 # (e.g. if the URI starts with 'https://mysite.com/' and your mirror is
44 COPYLEFT_RECIPE_TYPES ?= 'target native nativesdk cross crosssdk cross-canadian'
50 ARCHIVER_MODE[diff-exclude] ?= ".pc autom4te.cache patches"
53 ARCHIVER_MODE[mirror] ?= "split"
57 ARCHIVER_TOPDIR ?= "${WORKDIR}/archiver-sources"
60 ARCHIVER_RPMTOPDIR ?= "${WORKDIR}/deploy-sources-rpm"
62 ARCHIVER_WORKDIR = "${WORKDIR}/archiver-work/"
64 # When producing a combined mirror directory, allow duplicates for the case
66 ARCHIVER_COMBINED_MIRRORDIR = "${ARCHIVER_TOPDIR}/mirror"
67 SSTATE_ALLOW_OVERLAP_FILES += "${DEPLOY_DIR_SRC}/mirror"
93 # glibc-locale: do_fetch, do_unpack and do_patch tasks have been deleted,
95 if pn.startswith('glibc-locale'):
98 # We just archive gcc-source for all the gcc related recipes
100 and not pn.startswith('gcc-source'):
101 bb.debug(1, 'archiver: %s is excluded, covered by gcc-source' % pn)
104 # TARGET_SYS in ARCHIVER_ARCH will break the stamp for gcc-source in multiconfig
105 if pn.startswith('gcc-source'):
129 # There is a corner case with "gcc-source-${PV}" recipes, they don't have
136 elif ar_src == "mirror":
157 d.appendVarFlag('do_package_write_rpm', 'sstate-inputdirs', ' ${ARCHIVER_RPMTOPDIR}')
158 d.appendVarFlag('do_package_write_rpm', 'sstate-outputdirs', ' ${DEPLOY_DIR_SRC}')
171 # Take all the sources for a recipe and put them in WORKDIR/archiver-work/.
205 ld = bb.data.createCopy(d)
249 s.write('%s -p%s\n' % (os.path.basename(local), parm['striplevel']))
279 # "gcc-source-${PV}" recipes don't have "do_configure"
281 if pn.startswith("gcc-source-"):
285 # The libtool-native's do_configure will remove the
286 # ${STAGING_DATADIR}/aclocal/libtool.m4, so we can't re-run the
289 # The kernel class functions require it to be on work-shared, we
292 elif not (pn == 'libtool-native' or is_work_shared(d)):
331 mirror_mode = d.getVarFlag('ARCHIVER_MODE', 'mirror')
339 bb.fatal('Invalid ARCHIVER_MODE[mirror]: %s' % (mirror_mode))
342 …bb.fatal('Using `ARCHIVER_MODE[src] = "mirror"` depends on setting `BB_GENERATE_MIRROR_TARBALLS = …
350 bb.note('Archiving the source as a mirror...')
365 # Check for mirror tarballs first. We will archive the first mirror
370 bb.note('Found mirror tarball: %s' % (mirror_path))
375 bb.warn('Mirror tarballs are listed for a source but none are present. ' \
389 bb.note('Copying source mirror')
390 cmd = 'cp -fpPRH %s %s' % (localpath, destdir)
413 # work-shared location. Use os.path.realpath to make sure
420 filename = '%s-%s.tar.%s' % (d.getVar('PF'), suffix, compression_method)
438 # The diff --exclude can't exclude the file with path, so we copy
443 for i in d.getVarFlag('ARCHIVER_MODE', 'diff-exclude').split():
453 out_file = os.path.join(ar_outdir, '%s-diff.gz' % d.getVar('PF'))
454 diff_cmd = 'diff -Naur %s.orig %s.patched | gzip -c > %s' % (basename, basename, out_file)
462 return pn.startswith('gcc-source') or \
463 bb.data.inherits_class('kernel', d) or \
464 … (bb.data.inherits_class('kernelsrc', d) and d.expand("${TMPDIR}/work-shared") in d.getVar('S'))
477 # The kernel class functions require it to be on work-shared, so we don't change WORKDIR
497 if bb.data.inherits_class('dos2unix', d):
535 '%s-recipe' % d.getVar('PF'))
571 dump environment data to ${PF}-showdata.dump
575 '%s-showdata.dump' % d.getVar('PF'))
579 bb.data.emit_env(f, d, True)
594 do_deploy_archives[sstate-inputdirs] = "${ARCHIVER_TOPDIR}"
595 do_deploy_archives[sstate-outputdirs] = "${DEPLOY_DIR_SRC}"
611 # Add tasks in the correct order, specifically for linux-yocto to avoid race condition.
615 if bb.data.inherits_class('kernel-yocto', d):