diff options
author | Richard Purdie <richard@openedhand.com> | 2006-08-14 00:38:08 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-08-14 00:38:08 +0000 |
commit | 283e9868e72b4308932001f011f9b1b338b018e3 (patch) | |
tree | e24831e604e381523a5dac4bc586829adea84d4f /meta/classes | |
parent | 0f5e8d268ac12902ecab20994cba67cce2ff8931 (diff) | |
download | poky-283e9868e72b4308932001f011f9b1b338b018e3.tar.gz |
classes/base.bbclass:
* Add stamps for do_fetch task
* Remove empty NOTE messages
* Add do_configure task dependecy for DEPENDS handling
classes/debian.bbclass:
* Add do_package task dependecy for RDEPENDS handling
classes/image_ipk.bbclass:
* Add do_package task dependecy for recursive RDEPENDS handling
classes/package.bbclass:
* Add do_package task dependecy for DEPENDS handling
classes/rootfs_ipk.bbclass:
* Derive image PR from DATE and TIME
* Add stamps to do_rootfs task (PR changing will trigger rebuilds instead)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@605 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/base.bbclass | 6 | ||||
-rw-r--r-- | meta/classes/debian.bbclass | 4 | ||||
-rw-r--r-- | meta/classes/image_ipk.bbclass | 5 | ||||
-rw-r--r-- | meta/classes/package.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/rootfs_ipk.bbclass | 1 |
5 files changed, 14 insertions, 4 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 2cd6ef4c06..bb6171f19c 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -337,7 +337,7 @@ python base_do_mrproper() { | |||
337 | 337 | ||
338 | addtask fetch | 338 | addtask fetch |
339 | do_fetch[dirs] = "${DL_DIR}" | 339 | do_fetch[dirs] = "${DL_DIR}" |
340 | do_fetch[nostamp] = "1" | 340 | #do_fetch[nostamp] = "1" |
341 | python base_do_fetch() { | 341 | python base_do_fetch() { |
342 | import sys | 342 | import sys |
343 | 343 | ||
@@ -557,7 +557,8 @@ python base_eventhandler() { | |||
557 | msg += messages.get(name[5:]) or name[5:] | 557 | msg += messages.get(name[5:]) or name[5:] |
558 | elif name == "UnsatisfiedDep": | 558 | elif name == "UnsatisfiedDep": |
559 | msg += "package %s: dependency %s %s" % (e.pkg, e.dep, name[:-3].lower()) | 559 | msg += "package %s: dependency %s %s" % (e.pkg, e.dep, name[:-3].lower()) |
560 | note(msg) | 560 | if msg: |
561 | note(msg) | ||
561 | 562 | ||
562 | if name.startswith("BuildStarted"): | 563 | if name.startswith("BuildStarted"): |
563 | bb.data.setVar( 'BB_VERSION', bb.__version__, e.data ) | 564 | bb.data.setVar( 'BB_VERSION', bb.__version__, e.data ) |
@@ -598,6 +599,7 @@ python base_eventhandler() { | |||
598 | addtask configure after do_unpack do_patch | 599 | addtask configure after do_unpack do_patch |
599 | do_configure[dirs] = "${S} ${B}" | 600 | do_configure[dirs] = "${S} ${B}" |
600 | do_configure[bbdepcmd] = "do_populate_staging" | 601 | do_configure[bbdepcmd] = "do_populate_staging" |
602 | do_configure[deptask] = "do_populate_staging" | ||
601 | base_do_configure() { | 603 | base_do_configure() { |
602 | : | 604 | : |
603 | } | 605 | } |
diff --git a/meta/classes/debian.bbclass b/meta/classes/debian.bbclass index 5688dad93b..698d917b51 100644 --- a/meta/classes/debian.bbclass +++ b/meta/classes/debian.bbclass | |||
@@ -6,6 +6,10 @@ STAGING_PKGMAPS_DIR = "${STAGING_DIR}/pkgmaps/debian" | |||
6 | # depends are correct | 6 | # depends are correct |
7 | BUILD_ALL_DEPS = "1" | 7 | BUILD_ALL_DEPS = "1" |
8 | 8 | ||
9 | # Better expressed as ensure all RDEPENDS package before we package | ||
10 | # This means we can't have circular RDEPENDS/RRECOMMENDS | ||
11 | do_package[rdeptask] = "do_package" | ||
12 | |||
9 | python debian_package_name_hook () { | 13 | python debian_package_name_hook () { |
10 | import glob, copy, stat, errno, re | 14 | import glob, copy, stat, errno, re |
11 | 15 | ||
diff --git a/meta/classes/image_ipk.bbclass b/meta/classes/image_ipk.bbclass index c2f1c8d682..6c47e29f68 100644 --- a/meta/classes/image_ipk.bbclass +++ b/meta/classes/image_ipk.bbclass | |||
@@ -1,13 +1,16 @@ | |||
1 | inherit rootfs_ipk | 1 | inherit rootfs_ipk |
2 | 2 | ||
3 | # We need to follow RDEPENDS and RRECOMMENDS for images | 3 | # We need to recursively follow RDEPENDS and RRECOMMENDS for images |
4 | BUILD_ALL_DEPS = "1" | 4 | BUILD_ALL_DEPS = "1" |
5 | do_rootfs[recrdeptask] = "do_package" | ||
5 | 6 | ||
6 | # Images are generally built explicitly, do not need to be part of world. | 7 | # Images are generally built explicitly, do not need to be part of world. |
7 | EXCLUDE_FROM_WORLD = "1" | 8 | EXCLUDE_FROM_WORLD = "1" |
8 | 9 | ||
9 | USE_DEVFS ?= "0" | 10 | USE_DEVFS ?= "0" |
10 | 11 | ||
12 | PR = "${DATE}-${TIME}" | ||
13 | |||
11 | DEPENDS += "makedevs-native" | 14 | DEPENDS += "makedevs-native" |
12 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 15 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
13 | 16 | ||
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index e67fb749fe..c7f366e19b 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -734,6 +734,8 @@ python package_do_package () { | |||
734 | } | 734 | } |
735 | 735 | ||
736 | do_package[dirs] = "${D}" | 736 | do_package[dirs] = "${D}" |
737 | # shlibs requires any DEPENDS to have already packaged for the *.list files | ||
738 | do_package[deptask] = "do_package" | ||
737 | populate_packages[dirs] = "${D}" | 739 | populate_packages[dirs] = "${D}" |
738 | EXPORT_FUNCTIONS do_package do_shlibs do_split_locales mapping_rename_hook | 740 | EXPORT_FUNCTIONS do_package do_shlibs do_split_locales mapping_rename_hook |
739 | addtask package before do_build after do_populate_staging | 741 | addtask package before do_build after do_populate_staging |
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass index 8f9fddde14..393ad320cb 100644 --- a/meta/classes/rootfs_ipk.bbclass +++ b/meta/classes/rootfs_ipk.bbclass | |||
@@ -10,7 +10,6 @@ DEPENDS_append=" ${EXTRA_IMAGEDEPENDS}" | |||
10 | 10 | ||
11 | PACKAGES = "" | 11 | PACKAGES = "" |
12 | 12 | ||
13 | do_rootfs[nostamp] = 1 | ||
14 | do_rootfs[dirs] = ${TOPDIR} | 13 | do_rootfs[dirs] = ${TOPDIR} |
15 | do_build[nostamp] = 1 | 14 | do_build[nostamp] = 1 |
16 | 15 | ||