]> code.ossystems Code Review - openembedded-core.git/commitdiff
logging: update existing oe* logging users to the bb* interface
authorDarren Hart <dvhart@linux.intel.com>
Fri, 29 Apr 2011 04:49:31 +0000 (21:49 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 3 May 2011 23:49:33 +0000 (00:49 +0100)
The new bash logging class provides bbnote, bbwarn, bbfatal, and bbdebug
replacements (as well as bbplain and bberror) for the oe* equivalents. Use the
new bb* API in preparation to delete the oe* logging API.

This patch was automatically generated by a sed script. The result has been
visually inspected and used to build core-image-sato for qemux86.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
14 files changed:
meta/classes/autotools.bbclass
meta/classes/base.bbclass
meta/classes/distutils.bbclass
meta/classes/kernel.bbclass
meta/classes/qmake_base.bbclass
meta/classes/scons.bbclass
meta/classes/sip.bbclass
meta/classes/sourcepkg.bbclass
meta/classes/srec.bbclass
meta/classes/utils.bbclass
meta/recipes-core/dropbear/dropbear.inc
meta/recipes-core/eglibc/eglibc_2.12.bb
meta/recipes-core/glibc/glibc_2.10.1.bb
meta/recipes-devtools/python/python_2.6.6.bb

index cbd2e9666e61ff0867b26f7ec1433f82bb09efd6..27f4a01f1293da37dbe187363fd14797a80c5294 100644 (file)
@@ -70,10 +70,10 @@ oe_runconf () {
        if [ -x ${S}/configure ] ; then
                cfgcmd="${S}/configure \
                ${CONFIGUREOPTS} ${EXTRA_OECONF} $@"
-               oenote "Running $cfgcmd..."
-               $cfgcmd || oefatal "oe_runconf failed" 
+               bbnote "Running $cfgcmd..."
+               $cfgcmd || bbfatal "oe_runconf failed" 
        else
-               oefatal "no configure script found"
+               bbfatal "no configure script found"
        fi
 }
 
@@ -132,7 +132,7 @@ autotools_do_configure() {
                            if grep "sed.*POTFILES" $CONFIGURE_AC >/dev/null; then
                              : do nothing -- we still have an old unmodified configure.ac
                            else
-                             oenote Executing glib-gettextize --force --copy
+                             bbnote Executing glib-gettextize --force --copy
                              echo "no" | glib-gettextize --force --copy
                            fi
                          else if grep "^[[:space:]]*AM_GNU_GETTEXT" $CONFIGURE_AC >/dev/null; then
@@ -142,11 +142,11 @@ autotools_do_configure() {
                        fi
                        mkdir -p m4
                        if grep "^[[:space:]]*[AI][CT]_PROG_INTLTOOL" $CONFIGURE_AC >/dev/null; then
-                         oenote Executing intltoolize --copy --force --automake
+                         bbnote Executing intltoolize --copy --force --automake
                          intltoolize --copy --force --automake
                        fi
-                       oenote Executing autoreconf --verbose --install --force ${EXTRA_AUTORECONF} $acpaths
-                       autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} $acpaths || oefatal "autoreconf execution failed."
+                       bbnote Executing autoreconf --verbose --install --force ${EXTRA_AUTORECONF} $acpaths
+                       autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} $acpaths || bbfatal "autoreconf execution failed."
                        cd $olddir
                fi
        ;;
@@ -154,7 +154,7 @@ autotools_do_configure() {
        if [ -e ${S}/configure ]; then
                oe_runconf
        else
-               oenote "nothing to configure"
+               bbnote "nothing to configure"
        fi
 }
 
index 540931f172441bdbfd10d4584bd8d159bc3383bb..0a7f1d136155f6450d48659b9ec92ab1f71ed2c8 100644 (file)
@@ -67,7 +67,7 @@ oedebug() {
 
 oe_runmake() {
        if [ x"$MAKE" = x ]; then MAKE=make; fi
-       oenote ${MAKE} ${EXTRA_OEMAKE} "$@"
+       bbnote ${MAKE} ${EXTRA_OEMAKE} "$@"
        ${MAKE} ${EXTRA_OEMAKE} "$@" || die "oe_runmake failed"
 }
 
@@ -231,7 +231,7 @@ base_do_compile() {
        if [ -e Makefile -o -e makefile ]; then
                oe_runmake || die "make failed"
        else
-               oenote "nothing to compile"
+               bbnote "nothing to compile"
        fi
 }
 
index 7e6fbc0c066d675afca43b8be59f9b1d625390a9..79b962a3603b2a0fd0f17d9b3875f72298739142 100644 (file)
@@ -12,14 +12,14 @@ distutils_do_compile() {
          STAGING_LIBDIR=${STAGING_LIBDIR} \
          BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
          ${STAGING_BINDIR_NATIVE}/python setup.py build ${DISTUTILS_BUILD_ARGS} || \
-         oefatal "python setup.py build_ext execution failed."
+         bbfatal "python setup.py build_ext execution failed."
 }
 
 distutils_stage_headers() {
         install -d ${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR}
         BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
         ${STAGING_BINDIR_NATIVE}/python setup.py install_headers ${DISTUTILS_STAGE_HEADERS_ARGS} || \
-        oefatal "python setup.py install_headers execution failed."
+        bbfatal "python setup.py install_headers execution failed."
 }
 
 distutils_stage_all() {
@@ -29,7 +29,7 @@ distutils_stage_all() {
         PYTHONPATH=${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR} \
         BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
         ${STAGING_BINDIR_NATIVE}/python setup.py install ${DISTUTILS_STAGE_ALL_ARGS} || \
-        oefatal "python setup.py install (stage) execution failed."
+        bbfatal "python setup.py install (stage) execution failed."
 }
 
 distutils_do_install() {
@@ -39,7 +39,7 @@ distutils_do_install() {
         PYTHONPATH=${D}/${PYTHON_SITEPACKAGES_DIR} \
         BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
         ${STAGING_BINDIR_NATIVE}/python setup.py install ${DISTUTILS_INSTALL_ARGS} || \
-        oefatal "python setup.py install execution failed."
+        bbfatal "python setup.py install execution failed."
 
         for i in `find ${D} -name "*.py"` ; do \
             sed -i -e s:${D}::g $i
index fd1c8e31c1e7a26f263ec1b076badb7218d2170c..70a782fbaf66e317170869868c89260bebcf6082 100644 (file)
@@ -84,7 +84,7 @@ do_compile_kernelmodules() {
        if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
                oe_runmake modules  CC="${KERNEL_CC}" LD="${KERNEL_LD}"
        else
-               oenote "no modules to compile"
+               bbnote "no modules to compile"
        fi
 }
 addtask compile_kernelmodules after do_compile before do_install
@@ -97,7 +97,7 @@ kernel_do_install() {
        if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
                oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" modules_install
        else
-               oenote "no modules to install"
+               bbnote "no modules to install"
        fi
 
        #
index ea8903c2781b28af154e168f1f5f12646893bbfe..24a0f11f467f96bf38a8448393f057c2f1f74193 100644 (file)
@@ -39,7 +39,7 @@ qmake_base_do_configure() {
                die Unsupported target ${TARGET_OS} for oe-g++ qmake spec
                ;;
        *)
-               oenote Searching for qmake spec file
+               bbnote Searching for qmake spec file
                paths="${QMAKE_MKSPEC_PATH}/qws/${TARGET_OS}-${TARGET_ARCH}-g++"
                paths="${QMAKE_MKSPEC_PATH}/${TARGET_OS}-g++ $paths"
 
@@ -55,7 +55,7 @@ qmake_base_do_configure() {
                ;;
        esac
 
-       oenote "using qmake spec in ${QMAKESPEC}, using profiles '${QMAKE_PROFILES}'"
+       bbnote "using qmake spec in ${QMAKESPEC}, using profiles '${QMAKE_PROFILES}'"
 
        if [ -z "${QMAKE_PROFILES}" ]; then 
                PROFILES="`ls *.pro`"
@@ -70,15 +70,15 @@ qmake_base_do_configure() {
        if [ ! -z "${EXTRA_QMAKEVARS_POST}" ]; then
                AFTER="-after"
                QMAKE_VARSUBST_POST="${EXTRA_QMAKEVARS_POST}"
-               oenote "qmake postvar substitution: ${EXTRA_QMAKEVARS_POST}"
+               bbnote "qmake postvar substitution: ${EXTRA_QMAKEVARS_POST}"
        fi
 
        if [ ! -z "${EXTRA_QMAKEVARS_PRE}" ]; then
                QMAKE_VARSUBST_PRE="${EXTRA_QMAKEVARS_PRE}"
-               oenote "qmake prevar substitution: ${EXTRA_QMAKEVARS_PRE}"
+               bbnote "qmake prevar substitution: ${EXTRA_QMAKEVARS_PRE}"
        fi
 
-#oenote "Calling '${OE_QMAKE_QMAKE} -makefile -spec ${QMAKESPEC} -o Makefile $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST'"
+#bbnote "Calling '${OE_QMAKE_QMAKE} -makefile -spec ${QMAKESPEC} -o Makefile $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST'"
        unset QMAKESPEC || true
        ${OE_QMAKE_QMAKE} -makefile -spec ${QMAKESPEC} -o Makefile $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST || die "Error calling ${OE_QMAKE_QMAKE} on $PROFILES"
 }
index 534b3bd4c70cecb98220878e22c04d861fa3106b..211746fd0f9c1e74ec858243936642bf81a963cb 100644 (file)
@@ -2,12 +2,12 @@ DEPENDS += "python-scons-native"
 
 scons_do_compile() {
         ${STAGING_BINDIR_NATIVE}/scons PREFIX=${prefix} prefix=${prefix} || \
-        oefatal "scons build execution failed."
+        bbfatal "scons build execution failed."
 }
 
 scons_do_install() {
         ${STAGING_BINDIR_NATIVE}/scons PREFIX=${D}${prefix} prefix=${D}${prefix} install || \
-        oefatal "scons install execution failed."
+        bbfatal "scons install execution failed."
 }
 
 EXPORT_FUNCTIONS do_compile do_install
index a258fda629f912ab5be218c15588bb7401affd4a..de0e2effb1f863514ab07c2e6b6b896fee37aac6 100644 (file)
@@ -17,7 +17,7 @@ sip_do_generate() {
        if [ -z "$MODULES" ]; then
                die "SIP_MODULES not set and no modules found in $PWD"
         else
-               oenote "using modules '${SIP_MODULES}' and tags '${EXTRA_SIPTAGS}'"
+               bbnote "using modules '${SIP_MODULES}' and tags '${EXTRA_SIPTAGS}'"
        fi
 
        if [ -z "${EXTRA_SIPTAGS}" ]; then
@@ -28,7 +28,7 @@ sip_do_generate() {
 
        if [ ! -z "${SIP_FEATURES}" ]; then
                FEATURES="-z ${SIP_FEATURES}"
-               oenote "sip feature file: ${SIP_FEATURES}"
+               bbnote "sip feature file: ${SIP_FEATURES}"
        fi
 
        for module in $MODULES
index f12a1955d425836129884309e26e8a5bb65069b0..64e6d7c860033bfdfe56bdb196f9dff6cf7bb9bb 100644 (file)
@@ -39,7 +39,7 @@ sourcepkg_do_create_orig_tgz(){
        src_tree=${@get_src_tree(d)}
        
        echo $src_tree
-       oenote "Creating .orig.tar.gz in ${DEPLOY_DIR_SRC}/${P}.orig.tar.gz"
+       bbnote "Creating .orig.tar.gz in ${DEPLOY_DIR_SRC}/${P}.orig.tar.gz"
        tar cvzf ${DEPLOY_DIR_SRC}/${P}.orig.tar.gz --exclude-from temp/exclude-from-file $src_tree
        tar -cf - -C $src_tree -ps . | tar -xf - -C $src_tree.orig
 }
@@ -93,7 +93,7 @@ sourcepkg_do_create_diff_gz(){
                cp $i $src_tree/${DISTRO}/files
        done
        
-       oenote "Creating .diff.gz in ${DEPLOY_DIR_SRC}/${P}-${PR}.diff.gz"
+       bbnote "Creating .diff.gz in ${DEPLOY_DIR_SRC}/${P}-${PR}.diff.gz"
        LC_ALL=C TZ=UTC0 diff --exclude-from=temp/exclude-from-file -Naur $src_tree.orig $src_tree | gzip -c > ${DEPLOY_DIR_SRC}/${P}-${PR}.diff.gz
        rm -rf $src_tree.orig
 }
index a869a4f1f37306ec97d45b6eed23b1615d5a8eea..390d5abb3a8dcc8d619898d4dbe3cfa82ce1b93e 100644 (file)
@@ -14,7 +14,7 @@ do_srec[nostamp] = "1"
 
 do_srec () {
     if [ ${SREC_VMAADDR} = "" ] ; then
-       oefatal Cannot do_srec without SREC_VMAADDR defined.
+       bbfatal Cannot do_srec without SREC_VMAADDR defined.
     fi
     for type in ${IMAGE_FSTYPES}; do
         for skiptype in ${SREC_SKIP}; do
index e923789c14340b49ffdd685d0bba6a2ea50b12e3..6bcaf86b05dee038e2b44a6aae36777e8f2a3644 100644 (file)
@@ -91,7 +91,7 @@ oe_soinstall() {
        #
        # oe_
        #
-       #oenote installing shared library $1 to $2
+       #bbnote installing shared library $1 to $2
        #
        libname=`basename $1`
        install -m 755 $1 $2/$libname
@@ -129,7 +129,7 @@ oe_libinstall() {
                        require_shared=1
                        ;;
                -*)
-                       oefatal "oe_libinstall: unknown option: $1"
+                       bbfatal "oe_libinstall: unknown option: $1"
                        ;;
                *)
                        break;
@@ -142,7 +142,7 @@ oe_libinstall() {
        shift
        destpath="$1"
        if [ -z "$destpath" ]; then
-               oefatal "oe_libinstall: no destination path specified"
+               bbfatal "oe_libinstall: no destination path specified"
        fi
        if echo "$destpath/" | egrep '^${STAGING_LIBDIR}/' >/dev/null
        then
@@ -165,7 +165,7 @@ oe_libinstall() {
        # Sanity check that the libname.lai is unique
        number_of_files=`(cd $dir; find . -name "$dotlai") | wc -l`
        if [ $number_of_files -gt 1 ]; then
-               oefatal "oe_libinstall: $dotlai is not unique in $dir"
+               bbfatal "oe_libinstall: $dotlai is not unique in $dir"
        fi
 
 
@@ -209,7 +209,7 @@ oe_libinstall() {
                for f in $files; do
                        if [ ! -e "$f" ]; then
                                if [ -n "$libtool" ]; then
-                                       oefatal "oe_libinstall: $dir/$f not found."
+                                       bbfatal "oe_libinstall: $dir/$f not found."
                                fi
                        elif [ -L "$f" ]; then
                                __runcmd cp -P "$f" $destpath/
@@ -223,7 +223,7 @@ oe_libinstall() {
 
        if [ -z "$libfile" ]; then
                if  [ -n "$require_shared" ]; then
-                       oefatal "oe_libinstall: unable to locate shared library"
+                       bbfatal "oe_libinstall: unable to locate shared library"
                fi
        elif [ -z "$libtool" ]; then
                # special case hack for non-libtool .so.#.#.# links
@@ -256,17 +256,17 @@ oe_machinstall() {
 
        for o in `echo ${OVERRIDES} | tr ':' ' '`; do
                if [ -e $dirname/$o/$filename ]; then
-                       oenote $dirname/$o/$filename present, installing to $4
+                       bbnote $dirname/$o/$filename present, installing to $4
                        install $1 $2 $dirname/$o/$filename $4
                        return
                fi
        done
-#      oenote overrides specific file NOT present, trying default=$3...
+#      bbnote overrides specific file NOT present, trying default=$3...
        if [ -e $3 ]; then
-               oenote $3 present, installing to $4
+               bbnote $3 present, installing to $4
                install $1 $2 $3 $4
        else
-               oenote $3 NOT present, touching empty $4
+               bbnote $3 NOT present, touching empty $4
                touch $4
        fi
 }
index ab7719c46918d822250bd459a12bfdd76c27b304..08be70e72f1ac434d12e0c3c33106b82ce593dac 100644 (file)
@@ -34,7 +34,7 @@ DISTRO_TYPE = "${@base_contains("IMAGE_FEATURES", "debug-tweaks", "debug", "",d)
 
 do_configure_prepend() {
        if [ "x${DISTRO}" != "xfamiliar" -a "${DISTRO_TYPE}" = "debug" ]; then
-               oenote "WARNING: applying allow-nopw.patch which allows password-less logins!"
+               bbnote "WARNING: applying allow-nopw.patch which allows password-less logins!"
                patch -p1 < ${WORKDIR}/allow-nopw.patch
        fi
 }
index c773af0efa15b97b89afbb0dfab7308dfc8081dd..7598c614e5cd9dc5fb276f324e9c2d722702288a 100644 (file)
@@ -96,7 +96,7 @@ do_compile () {
                cd ${S}/sunrpc/rpcsvc
                for r in ${rpcsvc}; do
                        h=`echo $r|sed -e's,\.x$,.h,'`
-                       rpcgen -h $r -o $h || oewarn "unable to generate header for $r"
+                       rpcgen -h $r -o $h || bbwarn "unable to generate header for $r"
                done
        )
 }
index 02d485e8ef0b182418785767ee778b6b915634e7..33ebe24b034a5b52dc92745191c83153a18b46a2 100644 (file)
@@ -149,7 +149,7 @@ do_compile () {
                cd ${S}/sunrpc/rpcsvc
                for r in ${rpcsvc}; do
                        h=`echo $r|sed -e's,\.x$,.h,'`
-                       rpcgen -h $r -o $h || oewarn "unable to generate header for $r"
+                       rpcgen -h $r -o $h || bbwarn "unable to generate header for $r"
                done
        )
 }
index 3a0a0569617acdc9b634fdb648c7b30071f33055..a641ddd61710b5b14a7b24ed1061f0736d8a0c74 100644 (file)
@@ -31,7 +31,7 @@ TARGET_CC_ARCH_append_armv6 = " -D__SOFTFP__"
 TARGET_CC_ARCH_append_armv7a = " -D__SOFTFP__"
 
 do_configure_prepend() {
-       autoreconf -Wcross --verbose --install --force --exclude=autopoint Modules/_ctypes/libffi || oenote "_ctypes failed to autoreconf"
+       autoreconf -Wcross --verbose --install --force --exclude=autopoint Modules/_ctypes/libffi || bbnote "_ctypes failed to autoreconf"
 }
 
 #