From: Richard Purdie Date: Mon, 14 Aug 2006 00:38:08 +0000 (+0000) Subject: classes/base.bbclass: X-Git-Tag: rev_ivi_2015_02_04~33256 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47d2e42b222816cd0a3d973c1208b39b3d22e411;p=scm%2Fbb%2Ftizen-distro.git 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 --- diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 2cd6ef4..bb6171f 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -337,7 +337,7 @@ python base_do_mrproper() { addtask fetch do_fetch[dirs] = "${DL_DIR}" -do_fetch[nostamp] = "1" +#do_fetch[nostamp] = "1" python base_do_fetch() { import sys @@ -557,7 +557,8 @@ python base_eventhandler() { msg += messages.get(name[5:]) or name[5:] elif name == "UnsatisfiedDep": msg += "package %s: dependency %s %s" % (e.pkg, e.dep, name[:-3].lower()) - note(msg) + if msg: + note(msg) if name.startswith("BuildStarted"): bb.data.setVar( 'BB_VERSION', bb.__version__, e.data ) @@ -598,6 +599,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() { : } diff --git a/meta/classes/debian.bbclass b/meta/classes/debian.bbclass index 5688dad..698d917 100644 --- a/meta/classes/debian.bbclass +++ b/meta/classes/debian.bbclass @@ -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 diff --git a/meta/classes/image_ipk.bbclass b/meta/classes/image_ipk.bbclass index c2f1c8d..6c47e29 100644 --- a/meta/classes/image_ipk.bbclass +++ b/meta/classes/image_ipk.bbclass @@ -1,13 +1,16 @@ 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" USE_DEVFS ?= "0" +PR = "${DATE}-${TIME}" + DEPENDS += "makedevs-native" PACKAGE_ARCH = "${MACHINE_ARCH}" diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index e67fb74..c7f366e 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -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 diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass index 8f9fddd..393ad32 100644 --- a/meta/classes/rootfs_ipk.bbclass +++ b/meta/classes/rootfs_ipk.bbclass @@ -10,7 +10,6 @@ DEPENDS_append=" ${EXTRA_IMAGEDEPENDS}" PACKAGES = "" -do_rootfs[nostamp] = 1 do_rootfs[dirs] = ${TOPDIR} do_build[nostamp] = 1