generic-poky/meta/classes
Darren Hart 753bc3e919 logging: add bb* logging mechanisms for bash recipe functions
The following logging mechanisms are to be used in bash functions of recipes.
They are intended to map one to one in intention and output format with the
python recipe logging functions of a similar naming convention: bb.plain(),
bb.note(), etc.

For the time being, all of these print only to the task logs. Future
enhancements may integrate these calls with the bitbake logging infrastructure,
allowing for printing to the console as appropriate. The interface and intention
statements reflect that future goal. Once it is in place, no changes will be
necessary to recipes using these logging mechanisms.

I opted to write new functions instead of modifying the oe* logging functions
from base.bbclass (and utils.bbclass in oe) for a couple reasons. First, one of
my goals was to generate a uniform logging API between bash and python in
recipes. Second, there are no users of oe* logging in meta (oe-core) or
meta-yocto, while several oe recipes do use them. I wanted to make a clean start
with the freedom to change behavior without forcing the oe recipes to change or
experience unexpected logging changes. Eventually, the oe recipes can be
migrated to the new bb* logging routines and the existing oe* routines can be
retired (deleted).

(From OE-Core rev: 7cb3f0206619b725e404282fa7a3ac50b4609f1e)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Chris Larson <clarson@kergoth.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-28 10:45:41 +01:00
..
autotools.bbclass autotools: Pass --disable-silent-rules to configure 2011-04-12 10:12:20 -07:00
autotools_stage.bbclass autotools: deprecate autotools_stage class 2010-04-27 17:11:28 +01:00
base.bbclass logging: add bb* logging mechanisms for bash recipe functions 2011-04-28 10:45:41 +01:00
base_srpm.bbclass Rename /openembedded/ -> /meta/ 2006-07-21 10:10:31 +00:00
binconfig.bbclass staging: Use relative path in sysroot-destdir for target recipes 2011-01-21 11:18:37 +00:00
boot-directdisk.bbclass bootimg/boot-directdisk.bbclass: Update afer syslinux changes, fix mbr.bin location and fix dependencies 2010-03-25 14:09:06 +00:00
bootimg.bbclass bitbake: machine specific sysroots implementation 2011-01-25 12:25:46 +00:00
buildstats.bbclass buildstats.bbclass: Remove unneeded debug output 2011-02-16 23:17:59 +00:00
ccache.inc classes: Standardise whitespace in anonymous python methods and factor out functions for more efficent use by bitbake (as also patched in OE) 2006-11-20 09:16:34 +00:00
ccdv.bbclass Fix STAGING_BINDIR for multimachine use by spliting into STAGING_BINDIR and STAGING_BINDIR_NATIVE and adding both to PATH 2006-11-25 10:01:30 +00:00
cmake.bbclass cmake.bbclass: sync from openembedded 2010-08-31 17:19:53 +01:00
cml1.bbclass Rename /openembedded/ -> /meta/ 2006-07-21 10:10:31 +00:00
core-image.bbclass Further cleanup of various poky references 2011-04-21 12:56:16 +01:00
cpan-base.bbclass cpan.bbclass: use LIBDIR instead of DATADIR 2011-01-12 00:55:48 -08:00
cpan.bbclass cpan.bbclass: export PERLHOSTLIB for perl modules 2011-04-24 22:50:36 +01:00
cpan_build.bbclass cpan.bbclass: use LIBDIR instead of DATADIR 2011-01-12 00:55:48 -08:00
cross-canadian.bbclass cross-canadian.bbclass: Correct deb package arch. 2011-01-28 17:00:59 +00:00
cross.bbclass cross.bbclass: Move sysroot_stage_all function to the only place that uses it now (gcc-cross-intermediate) 2011-01-26 11:37:32 +00:00
crosssdk.bbclass native, nativesdk, crosssdk: reset TARGET_FPU 2011-04-05 22:20:52 +01:00
debian.bbclass debian.bbclass: call auto_libname in reverse sorted AUTO_LIBNAME_PKGS 2011-03-10 18:14:20 -08:00
deploy.bbclass bitbake/sstate: Implement a lookup function to speed up setscene processing 2010-10-05 22:26:33 +01:00
devshell.bbclass Ensure Bash is used when spawning terminals 2011-02-24 15:54:09 +00:00
distrodata.bbclass distrodata.bbclass: Merge the get_pkg_info.log into checkpkg.csv 2011-04-06 08:01:13 -07:00
distutils-base.bbclass distutils-base: Only RDEPEND python-core on target packages 2011-03-10 18:14:21 -08:00
distutils-common-base.bbclass distutils(-common-base) bbclass: sync with OE 2011-01-20 21:37:00 +00:00
distutils-native-base.bbclass distutils: Sync with OE.dev 2009-12-05 23:18:02 +00:00
distutils.bbclass distutils(-common-base) bbclass: sync with OE 2011-01-20 21:37:00 +00:00
flow-lossage.bbclass classes: Standardise whitespace in anonymous python methods and factor out functions for more efficent use by bitbake (as also patched in OE) 2006-11-20 09:16:34 +00:00
gconf.bbclass debian/kernel/gconf/gtk-icon-cache: PKGDESK/PKG fixes 2009-11-16 10:52:35 +00:00
gettext.bbclass gettext.bbclass: Set the gettext dependencies correctly for target, cross and native packages 2010-01-05 21:10:47 +00:00
gnome.bbclass gnome.bbclass: Remove autotools_stage reference 2010-11-02 10:15:27 +00:00
gtk-doc.bbclass classes: Add gtk-doc.bbclass 2008-05-15 14:11:13 +00:00
gtk-icon-cache.bbclass gdk-pixbuf: Add 2.22.1 as new recipe 2011-01-20 21:36:56 +00:00
icecc.bbclass Install cross-packages into the native sysroot 2010-04-27 18:29:57 +01:00
image-mklibs.bbclass image-mklibs.bbclass: add the library optimization functionality 2011-02-09 22:45:47 +00:00
image-prelink.bbclass rpm: Fix rpm usage of prelink on the target 2011-02-25 17:34:20 -06:00
image-swab.bbclass image-swab: Convert to attach strace to the process to obtain the required swabber data 2011-02-10 11:51:48 +00:00
image.bbclass Rename the remaining poky-* scripts to oe-* or runqemu-* 2011-04-21 00:29:31 +01:00
image_types.bbclass Allow JFFS2 image options to be overridden 2011-04-12 10:12:20 -07:00
imagetest-dummy.bbclass test: add automation framework and sanitytest 2010-07-15 12:48:25 +01:00
imagetest-qemu.bbclass Further cleanup of various poky references 2011-04-21 12:56:16 +01:00
insane.bbclass classes: Use linux-uclibceabi instead of linux-uclibgnuceabi for os portion of triplet 2011-04-04 14:08:10 +01:00
insserv.bbclass bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the populate_staging task to populate_sysroot 2009-11-13 12:15:42 +00:00
kernel-arch.bbclass kernel-arch: x86-64 is no longer a valid architecture, map it to x86 2010-08-13 17:16:19 +01:00
kernel-yocto.bbclass linux-yocto: enable audio for selected qemu targets 2011-02-23 16:23:32 +00:00
kernel.bbclass kernel: Remove debug statements 2011-04-19 18:05:54 +01:00
lib_package.bbclass lib_package.bbclass: Sync with OE.dev to remove hardcoded layout assumption 2009-11-16 10:53:16 +00:00
libc-package.bbclass libc-package.bbclass: Disable lib packaging dependenies for libc-initial versions 2011-02-17 00:17:01 +00:00
license.bbclass Further cleanup of various poky references 2011-04-21 12:56:16 +01:00
linux-kernel-base.bbclass linux-kernel-base.bbclass: merge version detection updates from upstream 2010-05-20 14:14:22 +01:00
logging.bbclass logging: add bb* logging mechanisms for bash recipe functions 2011-04-28 10:45:41 +01:00
meta.bbclass Factor ipkg index and conf file creation into package_ipk.bbclass 2007-09-01 22:17:06 +00:00
metadata_scm.bbclass metadata_scm: Ensure that if an SCM isn't present, we dont print a revision of 'fatal:' as it looks bad 2010-10-21 23:26:40 +01:00
mirrors.bbclass mirrors.bbclass: Ensure we don't overwrite any existing MIRRORS variable 2011-02-11 23:50:46 +00:00
module-base.bbclass module*.bbclass: set AR to KERNEL_AR during building of kernel modules 2008-01-08 14:40:51 +00:00
module.bbclass kernel/bbclass: rework kernel and module classes to allow for building out-of-tree modules 2011-03-23 15:43:46 +00:00
module_strip.bbclass kernel/package.bbclass: Handle kernel module stripping centrally 2010-08-10 14:47:41 +01:00
mozilla.bbclass mozilla.bbclass: Fix pkgconfig usage for pkgconfig sysroot 2009-01-23 15:51:44 +00:00
native.bbclass native, nativesdk, crosssdk: reset TARGET_FPU 2011-04-05 22:20:52 +01:00
nativesdk.bbclass native, nativesdk, crosssdk: reset TARGET_FPU 2011-04-05 22:20:52 +01:00
oelint.bbclass classes: Sync with OE - mainly quoting fixes or other minor updates 2006-11-20 15:19:39 +00:00
openmoko-base.bbclass Update SRC_URIs to use BPN instead of PN 2011-03-14 22:36:25 +00:00
openmoko-panel-plugin.bbclass openmoko-panel-gsm: add openmoko-panel-gsm, om-panel-plugin.bbclass, and srvrev 2008-08-08 14:43:09 +00:00
openmoko.bbclass openmoko: added classes needed by openmoko-libs 2007-07-09 14:21:05 +00:00
openmoko2.bbclass Update SRC_URIs to use BPN instead of PN 2011-03-14 22:36:25 +00:00
own-mirrors.bbclass own-mirrors.bbclass: Bring own-mirrors.bbclass from oe commit 0ef914b250df46a41348479446214575668943fb 2011-03-15 01:19:26 +00:00
package.bbclass package.bbclass: Fix missing debug src files 2011-03-16 16:45:06 +00:00
package_deb.bbclass package_deb.bbclass: Place the whole task under fakeroot context to fix build failures 2011-02-22 10:53:25 +00:00
package_ipk.bbclass rootfs_ipk/package_ipk.bbclass: Move func from rootfs_ipk to package_ipk 2011-02-01 23:59:37 +00:00
package_rpm.bbclass package_rpm: Ensure we take the sstate shared lockfile in the place we write files 2011-03-29 14:01:52 +01:00
package_tar.bbclass package_*.bbclass: Always run these tasks under fakeroot 2010-08-19 22:36:26 +01:00
packagedata.bbclass classes: Remove and sanitise import statements 2009-11-13 12:15:28 +00:00
packagehistory.bbclass classes: Remove and sanitise import statements 2009-11-13 12:15:28 +00:00
patch.bbclass patch.bbclass: allow importing patches into other dirs 2011-04-04 14:09:59 +01:00
patcher.bbclass Rename /openembedded/ -> /meta/ 2006-07-21 10:10:31 +00:00
pkg_distribute.bbclass Rename /openembedded/ -> /meta/ 2006-07-21 10:10:31 +00:00
pkg_metainfo.bbclass Rename /openembedded/ -> /meta/ 2006-07-21 10:10:31 +00:00
pkgconfig.bbclass pkgconfig.bbclass: No longer default to pkgconfig_stage code (breaks libdrm) 2009-07-07 15:13:56 +01:00
populate_sdk.bbclass Rename poky-image-* -> core-image-* and task-poky-* -> task-core-* 2011-04-21 00:29:30 +01:00
populate_sdk_deb.bbclass Misc hard link fixes 2011-02-09 22:46:30 +00:00
populate_sdk_ipk.bbclass populate_sdk_ipk.bbclass: Added ipk support in populate_sdk task. 2011-02-01 23:59:38 +00:00
populate_sdk_rpm.bbclass populate_sdk_rpm.bbclass: Add the necessary solvedb lock 2011-02-28 20:48:08 +00:00
python-dir.bbclass python-dir.bbclass: define default PYTHON_BASEVERSION 2011-04-18 09:57:01 +01:00
qemu.bbclass eglibc: import eglibc_2.12 recipe from OE 2010-08-13 23:37:30 +01:00
qmake2.bbclass qt4: Enable accessibility and sm option for LSB. 2011-01-20 21:37:01 +00:00
qmake_base.bbclass Import files from OE to build WebKit (patch to link icu required) 2007-12-06 10:23:27 +00:00
qt4e.bbclass qt4: add qt4-embedded 4.6.3 from meta-openembedded 2011-02-01 16:10:11 +00:00
qt4x11.bbclass qt4: Bring in improvements from meta-openembedded 2011-02-01 15:57:26 +00:00
relocatable.bbclass relocatable.bbclass: Cover libexecdir 2010-08-12 14:41:30 +01:00
rm_work.bbclass rm_work.bbclass: Improve handling of noexec tasks 2011-02-21 12:58:06 +00:00
rootfs_deb.bbclass rootfs_deb/package_deb.bbclass: move func from rootfs_deb to package_deb 2011-02-01 23:59:37 +00:00
rootfs_ipk.bbclass rootfs_ipk/package_ipk.bbclass: Move func from rootfs_ipk to package_ipk 2011-02-01 23:59:37 +00:00
rootfs_rpm.bbclass Control over when package init scripts are run 2011-04-24 22:50:21 +01:00
sanity.bbclass sanity.bbclass: Fixup Poky references 2011-04-21 12:56:20 +01:00
scons.bbclass classes: Sync various classes with OE for various bugfixes 2007-08-08 20:41:55 +00:00
sdl.bbclass bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the populate_staging task to populate_sysroot 2009-11-13 12:15:42 +00:00
setuptools.bbclass setuptools bbclass: import from OE 2011-01-20 21:37:00 +00:00
singlemachine.bbclass Merge multimachine class into bitbake.conf and create singlemachine.bbclass as a backwards compatibility option 2008-07-17 20:49:48 +00:00
sip.bbclass sip.bbclass: Sync with OE 2007-09-02 11:07:13 +00:00
siteconfig.bbclass bitbake: machine specific sysroots implementation 2011-01-25 12:25:46 +00:00
siteinfo.bbclass classes: Use linux-uclibceabi instead of linux-uclibgnuceabi for os portion of triplet 2011-04-04 14:08:10 +01:00
sourcepkg.bbclass Misc hard link fixes 2011-02-09 22:46:30 +00:00
src_distribute.bbclass src_distribute: Set EXPORT_FUNCTIONS correctly 2010-11-01 10:48:43 +00:00
src_distribute_local.bbclass classes: Sync various classes with OE for various bugfixes 2007-08-08 20:41:55 +00:00
srec.bbclass classes: Sync with OE - mainly quoting fixes or other minor updates 2006-11-20 15:19:39 +00:00
sstate.bbclass sstate.bbclass: Reduce SSTATE_MANIFESTS assignment to be weak 2011-04-28 10:44:36 +01:00
staging.bbclass Misc hard link fixes 2011-02-09 22:46:30 +00:00
syslinux.bbclass syslinux.bbclass: Clean up boot menu title 2008-10-17 08:39:34 +00:00
task.bbclass Factor ipkg index and conf file creation into package_ipk.bbclass 2007-09-01 22:17:06 +00:00
tinderclient.bbclass classes: Drop Handled/NotHandled eventhandler keywords, they don't do anything 2010-12-31 09:51:18 +00:00
tmake.bbclass Remove hardcoded staging layout assumptions 2007-11-12 11:10:08 +00:00
toolchain-scripts.bbclass POKY_NATIVE_SYSROOT -> OECORE_NATIVE_SYSROOT 2011-04-21 00:29:30 +01:00
update-alternatives.bbclass update-alternatives.bbclass: don't expand var when appending do_install 2010-11-21 18:17:24 +00:00
update-rc.d.bbclass update-rc.d.bbclass: Changed RDEPENDS for native 2011-01-24 14:09:14 -08:00
utility-tasks.bbclass base/utility-tasks.bbclass: Drop do_setscene and do_rebuild 2011-03-01 00:10:56 +00:00
utils.bbclass utils.bbclass: add new wrapper script 2011-02-25 16:20:31 -08:00
xfce.bbclass Update SRC_URIs to use BPN instead of PN 2011-03-14 22:36:25 +00:00
xlibs.bbclass Finally deprecate all legacy do_stage functions. This changes the existing warning 2010-07-22 11:44:28 +01:00