[OE-core] [PATCH] buildinfo: Added buildinfo recipe

Koen Kooi koen at dominion.thruhere.net
Sat Oct 11 08:53:47 UTC 2014


Op 10 okt. 2014, om 20:29 heeft Alejandro Hernandez <alejandro.hernandez at linux.intel.com> het volgende geschreven:

> Writes build information to target filesystem to help developers
> 
> [YOCTO #6770]
> 
> Signed-off-by: Alejandro Hernandez <alejandro.hernandez at linux.intel.com>
> ---
> meta/recipes-extended/buildinfo/buildinfo_0.1.bb | 34 ++++++++++++++++++++++++
> 1 file changed, 34 insertions(+)
> create mode 100644 meta/recipes-extended/buildinfo/buildinfo_0.1.bb
> 
> diff --git a/meta/recipes-extended/buildinfo/buildinfo_0.1.bb b/meta/recipes-extended/buildinfo/buildinfo_0.1.bb
> new file mode 100644
> index 0000000..b299efb
> --- /dev/null
> +++ b/meta/recipes-extended/buildinfo/buildinfo_0.1.bb
> @@ -0,0 +1,34 @@
> +DESCRIPTION = "Writing build information on target filesystem"
> +SECTION = "MISC"
> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
> +PR = "r0"

PR isn't used anymore


> +
> +inherit buildhistory
> +
> +def buildinfo_target(d):
> +        # Get context
> +        if d.getVar('BB_WORKERCONTEXT', True) != '1':
> +                return ""
> +        # Single and list variables to be read
> +        vars = "DISTRO DISTRO_VERSION BB_VERSION BUILD_SYS TARGET_SYS MACHINE USER_CLASSES IMAGE_CLASSES IMAGE_FEATURES IMAGE_LINGUAS IMAGE_INSTALL PACKAGE_EXCLUDE"
> +        listvars = "USER_CLASSES IMAGE_CLASSES IMAGE_FEATURES IMAGE_LINGUAS IMAGE_INSTALL PACKAGE_EXCLUDE"

Don't use IMAGE* vars in package recipes, that breaks the orthogonality of the OE system.


More information about the Openembedded-core mailing list