classes: Add task dependencies expressions, as required for the new multithreading...
authorRichard Purdie <rpurdie@rpsys.net>
Sun, 20 Aug 2006 22:07:17 +0000 (22:07 +0000)
committerRichard Purdie <rpurdie@rpsys.net>
Sun, 20 Aug 2006 22:07:17 +0000 (22:07 +0000)
classes/base.bbclass
classes/debian.bbclass
classes/image_ipk.bbclass
classes/package.bbclass

index e36c3e3..7e526e1 100644 (file)
@@ -1,3 +1,4 @@
+BB_DEFAULT_TASK = "build"
 PATCHES_DIR="${S}"
 
 def base_dep_prepend(d):
@@ -584,6 +585,7 @@ python base_eventhandler() {
 addtask configure after do_unpack do_patch
 do_configure[dirs] = "${S} ${B}"
 do_configure[bbdepcmd] = "do_populate_staging"
+do_configure[deptask] = "do_populate_staging"
 base_do_configure() {
        :
 }
index 5688dad..698d917 100644 (file)
@@ -6,6 +6,10 @@ STAGING_PKGMAPS_DIR = "${STAGING_DIR}/pkgmaps/debian"
 # depends are correct
 BUILD_ALL_DEPS = "1"
 
+# Better expressed as ensure all RDEPENDS package before we package
+# This means we can't have circular RDEPENDS/RRECOMMENDS
+do_package[rdeptask] = "do_package"
+
 python debian_package_name_hook () {
        import glob, copy, stat, errno, re
 
index d3923f0..83e9acf 100644 (file)
@@ -1,7 +1,8 @@
 inherit rootfs_ipk
 
-# We need to follow RDEPENDS and RRECOMMENDS for images
+# We need to recursively follow RDEPENDS and RRECOMMENDS for images
 BUILD_ALL_DEPS = "1"
+do_rootfs[recrdeptask] = "do_package"
 
 # Images are generally built explicitly, do not need to be part of world.
 EXCLUDE_FROM_WORLD = "1"
index 2791e4b..0d6a773 100644 (file)
@@ -734,6 +734,8 @@ python package_do_package () {
 }
 
 do_package[dirs] = "${D}"
+# shlibs requires any DEPENDS to have already packaged for the *.list files
+do_package[deptask] = "do_package"
 populate_packages[dirs] = "${D}"
 EXPORT_FUNCTIONS do_package do_shlibs do_split_locales mapping_rename_hook
 addtask package before do_build after do_populate_staging