diff options
Diffstat (limited to 'meta/classes/archiver.bbclass')
-rw-r--r-- | meta/classes/archiver.bbclass | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass index 7ca35a573b..6ead010fe1 100644 --- a/meta/classes/archiver.bbclass +++ b/meta/classes/archiver.bbclass | |||
@@ -54,9 +54,10 @@ ARCHIVER_MODE[mirror] ?= "split" | |||
54 | 54 | ||
55 | DEPLOY_DIR_SRC ?= "${DEPLOY_DIR}/sources" | 55 | DEPLOY_DIR_SRC ?= "${DEPLOY_DIR}/sources" |
56 | ARCHIVER_TOPDIR ?= "${WORKDIR}/archiver-sources" | 56 | ARCHIVER_TOPDIR ?= "${WORKDIR}/archiver-sources" |
57 | ARCHIVER_OUTDIR = "${ARCHIVER_TOPDIR}/${TARGET_SYS}/${PF}/" | 57 | ARCHIVER_ARCH = "${TARGET_SYS}" |
58 | ARCHIVER_OUTDIR = "${ARCHIVER_TOPDIR}/${ARCHIVER_ARCH}/${PF}/" | ||
58 | ARCHIVER_RPMTOPDIR ?= "${WORKDIR}/deploy-sources-rpm" | 59 | ARCHIVER_RPMTOPDIR ?= "${WORKDIR}/deploy-sources-rpm" |
59 | ARCHIVER_RPMOUTDIR = "${ARCHIVER_RPMTOPDIR}/${TARGET_SYS}/${PF}/" | 60 | ARCHIVER_RPMOUTDIR = "${ARCHIVER_RPMTOPDIR}/${ARCHIVER_ARCH}/${PF}/" |
60 | ARCHIVER_WORKDIR = "${WORKDIR}/archiver-work/" | 61 | ARCHIVER_WORKDIR = "${WORKDIR}/archiver-work/" |
61 | 62 | ||
62 | # When producing a combined mirror directory, allow duplicates for the case | 63 | # When producing a combined mirror directory, allow duplicates for the case |
@@ -100,6 +101,10 @@ python () { | |||
100 | bb.debug(1, 'archiver: %s is excluded, covered by gcc-source' % pn) | 101 | bb.debug(1, 'archiver: %s is excluded, covered by gcc-source' % pn) |
101 | return | 102 | return |
102 | 103 | ||
104 | # TARGET_SYS in ARCHIVER_ARCH will break the stamp for gcc-source in multiconfig | ||
105 | if pn.startswith('gcc-source'): | ||
106 | d.setVar('ARCHIVER_ARCH', "allarch") | ||
107 | |||
103 | def hasTask(task): | 108 | def hasTask(task): |
104 | return bool(d.getVarFlag(task, "task", False)) and not bool(d.getVarFlag(task, "noexec", False)) | 109 | return bool(d.getVarFlag(task, "task", False)) and not bool(d.getVarFlag(task, "noexec", False)) |
105 | 110 | ||
@@ -281,7 +286,10 @@ python do_ar_configured() { | |||
281 | # ${STAGING_DATADIR}/aclocal/libtool.m4, so we can't re-run the | 286 | # ${STAGING_DATADIR}/aclocal/libtool.m4, so we can't re-run the |
282 | # do_configure, we archive the already configured ${S} to | 287 | # do_configure, we archive the already configured ${S} to |
283 | # instead of. | 288 | # instead of. |
284 | elif pn != 'libtool-native': | 289 | # The kernel class functions require it to be on work-shared, we |
290 | # don't unpack, patch, configure again, just archive the already | ||
291 | # configured ${S} | ||
292 | elif not (pn == 'libtool-native' or is_work_shared(d)): | ||
285 | def runTask(task): | 293 | def runTask(task): |
286 | prefuncs = d.getVarFlag(task, 'prefuncs') or '' | 294 | prefuncs = d.getVarFlag(task, 'prefuncs') or '' |
287 | for func in prefuncs.split(): | 295 | for func in prefuncs.split(): |
@@ -484,6 +492,9 @@ python do_unpack_and_patch() { | |||
484 | src_orig = '%s.orig' % src | 492 | src_orig = '%s.orig' % src |
485 | oe.path.copytree(src, src_orig) | 493 | oe.path.copytree(src, src_orig) |
486 | 494 | ||
495 | if bb.data.inherits_class('dos2unix', d): | ||
496 | bb.build.exec_func('do_convert_crlf_to_lf', d) | ||
497 | |||
487 | # Make sure gcc and kernel sources are patched only once | 498 | # Make sure gcc and kernel sources are patched only once |
488 | if not (d.getVar('SRC_URI') == "" or is_work_shared(d)): | 499 | if not (d.getVar('SRC_URI') == "" or is_work_shared(d)): |
489 | bb.build.exec_func('do_patch', d) | 500 | bb.build.exec_func('do_patch', d) |
@@ -572,7 +583,7 @@ python do_dumpdata () { | |||
572 | 583 | ||
573 | SSTATETASKS += "do_deploy_archives" | 584 | SSTATETASKS += "do_deploy_archives" |
574 | do_deploy_archives () { | 585 | do_deploy_archives () { |
575 | echo "Deploying source archive files from ${ARCHIVER_TOPDIR} to ${DEPLOY_DIR_SRC}." | 586 | bbnote "Deploying source archive files from ${ARCHIVER_TOPDIR} to ${DEPLOY_DIR_SRC}." |
576 | } | 587 | } |
577 | python do_deploy_archives_setscene () { | 588 | python do_deploy_archives_setscene () { |
578 | sstate_setscene(d) | 589 | sstate_setscene(d) |