into a fatal error if any legacy do_stage functions are found.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
        install ${WORKDIR}/gtk-doc.make ./
 }
 
-ACTIVATION_HEADERS = "Bonobo_Unknown.h Bonobo_GenericFactory.h Bonobo_Activation_types.h \
-                     bonobo-activation.h bonobo-activation-async.h bonobo-activation-activate.h \
-                     bonobo-activation-init.h bonobo-activation-shlib.h bonobo-activation-register.h \
-                     bonobo-activation-server-info.h bonobo-activation-version.h"
-
-BONOBO_HEADERS = "Bonobo.h bonobo-arg.h bonobo-context.h bonobo-event-source.h bonobo-exception.h \
-                 bonobo-generic-factory.h bonobo-item-container.h bonobo-item-handler.h \
-                 bonobo-listener.h bonobo-main.h bonobo-macros.h bonobo-moniker-extender.h \
-                 bonobo-moniker-simple.h bonobo-moniker-util.h bonobo-moniker.h bonobo-object.h \
-                 bonobo-foreign-object.h bonobo-persist-file.h bonobo-persist-stream.h \
-                 bonobo-persist.h bonobo-persist-client.h bonobo-property-bag.h \
-                 bonobo-property-bag-client.h bonobo-shlib-factory.h  bonobo-storage.h \
-                 bonobo-stream.h bonobo-stream-client.h bonobo-stream-memory.h \
-                 bonobo-storage-memory.h bonobo-xobject.h bonobo-i18n.h bonobo-types.h \
-                 bonobo-app-client.h bonobo-application.h"
-
 do_compile() {
        oe_runmake ORBIT_IDL="${ORBIT_IDL_SRC}"
 }
 
-do_stage() {
-       install -d ${STAGING_INCDIR}/bonobo-activation-2.0/bonobo-activation
-       for i in ${ACTIVATION_HEADERS}; do install -m 0644 bonobo-activation/$i ${STAGING_INCDIR}/bonobo-activation-2.0/bonobo-activation/; done
-       install -d ${STAGING_INCDIR}/libbonobo-2.0/bonobo
-       for i in ${BONOBO_HEADERS}; do install -m 0644 bonobo/$i ${STAGING_INCDIR}/libbonobo-2.0/bonobo/; done
-       install -m 0644 libbonobo.h ${STAGING_INCDIR}/libbonobo-2.0/
-       install -d ${STAGING_DATADIR}/idl/bonobo-activation-2.0/
-       install idl/*.idl ${STAGING_DATADIR}/idl/bonobo-activation-2.0/
-       oe_libinstall -so -C bonobo libbonobo-2 ${STAGING_LIBDIR}
-       oe_libinstall -so -C bonobo-activation libbonobo-activation ${STAGING_LIBDIR}
-}
-
 do_install() {
        oe_runmake ORBIT_IDL="${ORBIT_IDL_SRC}" DESTDIR="${D}" install
 }
 
 DEPENDS = "libgnomecanvas libbonobo libgnome glib-2.0 gtk-doc gconf libxml2 libglade"
 
 EXTRA_OECONF = "--disable-gtk-doc"
-
-HEADERS = " \
-bonobo/bonobo-zoomable.h \
-bonobo/bonobo-ui-component.h \
-bonobo/bonobo-dock-layout.h \
-bonobo/bonobo-ui-type-builtins.h \
-bonobo/bonobo-canvas-component.h \
-bonobo/bonobo-widget.h \
-bonobo/bonobo-ui-engine.h \
-bonobo/bonobo-window.h \
-bonobo/bonobo-ui-toolbar.h \
-bonobo/bonobo-dock-band.h \
-bonobo/bonobo-ui-toolbar-item.h \
-bonobo/bonobo-control.h \
-bonobo/bonobo-dock-item.h \
-bonobo/bonobo-ui-config-widget.h \
-bonobo/bonobo-zoomable-frame.h \
-bonobo/bonobo-control-frame.h \
-bonobo/bonobo-dock.h \
-bonobo/bonobo-ui-main.h \
-bonobo/bonobo-canvas-item.h \
-bonobo/bonobo-ui-node.h \
-bonobo/bonobo-socket.h \
-bonobo/bonobo-selector.h \
-bonobo/bonobo-ui-sync.h \
-bonobo/bonobo-ui-util.h \
-bonobo/bonobo-plug.h \
-bonobo/bonobo-ui-toolbar-button-item.h \
-bonobo/bonobo-ui-toolbar-toggle-button-item.h \
-bonobo/bonobo-ui-container.h \
-bonobo/bonobo-file-selector-util.h \
-bonobo/bonobo-property-control.h \
-bonobo/bonobo-selector-widget.h \
-libbonoboui.h \
-bonobo.h \
-"
-
-do_stage() {
-       install -d ${STAGING_INCDIR}/libbonoboui-2.0/bonobo
-       for i in ${HEADERS}; do
-               install -m 0644 $i ${STAGING_INCDIR}/libbonoboui-2.0/$i
-       done
-       oe_libinstall -C bonobo -a -so libbonoboui-2 ${STAGING_LIBDIR}
-}
 
 FILES_${PN}-dev += "${libdir}/bonobo/monikers/*a"
 FILES_${PN}-dbg += "${libdir}/bonobo/monikers/.debug"
 
-do_stage() {
-       autotools_stage_all
-}
 
 do_configure_prepend() {
        install -m 0644 ${WORKDIR}/gnome-stock-pixbufs.h ${S}/libgnomeui/pixmaps/gnome-stock-pixbufs.h
 }
-
-do_stage() {
-    autotools_stage_all
-}
 
        install ${WORKDIR}/gtk-doc.make ./
 }
 
-do_stage() {
-       oe_libinstall -so -C src/orb libORBit-2 ${STAGING_LIBDIR}
-       oe_libinstall -so -C src/services/name libORBitCosNaming-2 ${STAGING_LIBDIR}
-       oe_libinstall -so -C src/services/imodule libORBit-imodule-2 ${STAGING_LIBDIR}
-       install -m 0644 src/services/name/libname-server-2.a ${STAGING_LIBDIR}/
-
-       for dir in orbit orbit/poa orbit/orb-core orbit/util orbit/dynamic; do
-               install -d ${STAGING_INCDIR}/orbit-2.0/$dir
-               ( cd include/$dir; for i in *.h; do install -m 0644 $i ${STAGING_INCDIR}/orbit-2.0/$dir/$i; done )
-       done
-
-       install -d ${STAGING_INCDIR}/orbit-2.0/ORBitservices
-       install -m 0644 src/services/name/CosNaming.h ${STAGING_INCDIR}/orbit-2.0/ORBitservices/
-       install -m 0644 src/services/name/CosNaming_impl.h ${STAGING_INCDIR}/orbit-2.0/ORBitservices/
-       install -m 0644 src/services/imodule/orbit-imodule.h ${STAGING_INCDIR}/orbit-2.0/ORBitservices/
-}
 
 
 inherit gnome pkgconfig
 
-do_stage () {
-       autotools_stage_all
-}
-
 FILES_${PN} += "${datadir}/icons"
 FILES_${PN}-dbg += "${libdir}/gthumb/modules/.debug"
\ No newline at end of file
 
        ./build.sh gcc
 }
 
-NATIVE_INSTALL_WORKS = "1"
 # This is too terrible - the build script doesn't give any good
 # way I can see to find out where the binaries are placed, so
 # rely on only one bin.foo directory being created.
 
            file://nopolkit.patch;patch=1"
 S = "${WORKDIR}/ConsoleKit-${PV}"
 
-do_stage () {
-       autotools_stage_all
-}
-
 FILES_${PN} += "${libdir}/ConsoleKit ${datadir}/dbus-1 ${datadir}/PolicyKit"
 
 
 
 
 DEPENDS += "intltool"
 
-do_stage() {
-       autotools_stage_all
-}
-
 PACKAGES += "${PN}-python"
 FILES_${PN} += "${datadir}/desktop-directories/"
 FILES_${PN}-python = "${libdir}/python*"
 
 FILES_gvfsd-ftp = "${libexecdir}/gvfsd-ftp ${sysconfdir}/gvfs/mounts/ftp.mount"
 FILES_gvfsd-sftp = "${libexecdir}/gvfsd-sftp ${sysconfdir}/gvfs/mounts/sftp.mount"
 FILES_gvfsd-trash = "${libexecdir}/gvfsd-trash ${sysconfdir}/gvfs/mounts/trash.mount"
- 
-do_stage() {
-       autotools_stage_all
-}
 
 SRC_URI = "http://www.galago-project.org/files/releases/source/${PN}/${PN}-${PV}.tar.gz"
 
 inherit autotools pkgconfig
-
-do_stage() {
-       autotools_stage_all
-}
 
 
 AUTOTOOLS_STAGE_PKGCONFIG = "1"
 
-do_stage() {
-        autotools_stage_all
-}
-
-
-
-
 
 OE_LT_RPATH_ALLOW = "any"
 OE_LT_RPATH_ALLOW[export]="1"
 
-do_stage() {
-       autotools_stage_all
-}
-
 do_install_append() {
        install -d ${D}${sysconfdir}/default/volatiles
        install -m 0644 ${WORKDIR}/volatiles.04_pulse  ${D}${sysconfdir}/default/volatiles/volatiles.04_pulse
 
     oe_runmake sub-tools || die "Building tools failed"
 }
 
-NATIVE_INSTALL_WORKS = "1"
 do_install() {
        install -d ${D}${bindir}/
        install -d ${D}/qte3/lib/
 
 
        oe_runconf
 }
-
-do_stage() {
-       autotools_stage_all
-}
 
 
 CPPFLAGS += "-I${S}/include"
 
-do_stage() {
-       autotools_stage_all
-}
-
 
 
 inherit autotools pkgconfig
 
-do_stage() {
-       autotools_stage_all
-}
 
 
        touch gtk-doc.make
 }
 
-do_stage() {
-       autotools_stage_all
-}
-
 PACKAGES =+ "libjana-ecal libjana-ecal-dbg \
              libjana-gtk libjana-gtk-dbg \ 
             "
 
 
 inherit openmoko2
 
-do_stage() {
-        autotools_stage_all
-}
-
 
         touch gtk-doc.make
 }
 
-do_stage() {
-        autotools_stage_all
-}
 
 
 PR = "r0"
 
 inherit openmoko2
-
-do_stage() {
-        autotools_stage_all
-}
 
 do_configure_prepend() {
         touch gtk-doc.make
 }
-
-do_stage() {
-        autotools_stage_all
-}
-
 
 SRC_URI = "svn://svn.openmoko.org/trunk/src/target/OM-2007.2/libraries;module=${REAL_PN};proto=http"
 
 S = "${WORKDIR}/${PN}"
-
-do_stage() {
-    autotools_stage_all
-}
 
 require usbpath_svn.bb
 inherit native
 DEPENDS = "libusb-native"
-
-do_stage () {
-       autotools_stage_all
-}
-
 
 
 inherit autotools
 
-do_stage () {
-       autotools_stage_all
-}
-
 
 
 inherit autotools lib_package
 
-do_stage() {
-       autotools_stage_all
-}
-
 
-# use autotools_stage_all for native packages
-AUTOTOOLS_NATIVE_STAGE_INSTALL = "1"
-
 def autotools_dep_prepend(d):
        if bb.data.getVar('INHIBIT_AUTOTOOLS_DEPS', d, 1):
                return ''
        rm -rf ${STAGE_TEMP}
 }
 
-do_stage () {
-       autotools_stage_all
-}
-
 EXPORT_FUNCTIONS do_configure do_install
 
        oe_runmake PASTHRU_INC="${CFLAGS}" CCFLAGS="${CFLAGS}" LD="${CCLD}"
 }
 
-NATIVE_INSTALL_WORKS = "1"
 cpan_do_install () {
        oe_runmake DESTDIR="${D}" install_vendor
 }
 
-EXPORT_FUNCTIONS do_configure do_compile do_install do_stage
+EXPORT_FUNCTIONS do_configure do_compile do_install
 
         perl Build
 }
 
-NATIVE_INSTALL_WORKS = "1"
 cpan_build_do_install () {
        perl Build install
 }
 
        oe_runmake 'DESTDIR=${D}' install
 }
 
-do_stage () {
-       autotools_stage_all
-}
-
 #
 # Override the default sysroot staging copy since this won't look like a target system
 #
 
 SHLIBSDIR = "${STAGING_DIR_NATIVE}/shlibs"
 PKG_CONFIG_DIR = "${libdir}/pkgconfig"
 
-#
-# If changing this function, please make sure packaged-staging.bbclass is
-# updated too
-#
-do_stage_native () {
-       # If autotools is active, use the autotools staging function, else 
-       # use our "make install" equivalent
-       if [ "${AUTOTOOLS_NATIVE_STAGE_INSTALL}" == "1" ]
-       then
-               autotools_stage_all
-       else
-               oe_runmake install
-       fi
-}
-
-do_stage () {
-       do_stage_native
-}
-
 PKG_CONFIG_PATH .= "${EXTRA_NATIVE_PKGCONFIG_PATH}"
 PKG_CONFIG_SYSROOT_DIR = ""
 
 DEPENDS_virtclass-native ?= "${ORIG_DEPENDS}"
 
 python __anonymous () {
-    # If we've a legacy native do_stage, we need to neuter do_install
-    stagefunc = bb.data.getVar('do_stage', d, True)
-    if (stagefunc.strip() != "do_stage_native" and stagefunc.strip() != "autotools_stage_all") and bb.data.getVar('AUTOTOOLS_NATIVE_STAGE_INSTALL', d, 1) == "1":
-        bb.data.setVar("do_install", "      :", d)
-
     if "native" in (bb.data.getVar('BBCLASSEXTEND', d, True) or ""):
         pn = bb.data.getVar("PN", d, True)
         depends = bb.data.getVar("DEPENDS_virtclass-native", d, True)
 
        sysroot_stage_dirs ${D} ${SYSROOT_DESTDIR}
 }
 
-def is_legacy_staging(d):
-    stagefunc = bb.data.getVar('do_stage', d, True)
-    legacy = True
-    if stagefunc is None:
-        legacy = False
-    elif stagefunc.strip() == "use_do_install_for_stage":
-        legacy = False
-    elif stagefunc.strip() == "autotools_stage_all":
-        legacy = False
-    elif stagefunc.strip() == "do_stage_native" and bb.data.getVar('AUTOTOOLS_NATIVE_STAGE_INSTALL', d, 1) == "1":
-        legacy = False
-    elif bb.data.getVar('NATIVE_INSTALL_WORKS', d, 1) == "1":
-        legacy = False
-    return legacy
-
 do_populate_sysroot[dirs] = "${STAGING_DIR_TARGET}/${bindir} ${STAGING_DIR_TARGET}/${libdir} \
                             ${STAGING_DIR_TARGET}/${includedir} \
                             ${STAGING_BINDIR_NATIVE} ${STAGING_LIBDIR_NATIVE} \
     pstageactive = (bb.data.getVar("PSTAGING_ACTIVE", d, True) == "1")
     lockfile = bb.data.getVar("SYSROOT_LOCK", d, True)
     stagefunc = bb.data.getVar('do_stage', d, True)
-    legacy = is_legacy_staging(d)
-    if legacy:
-        bb.data.setVar("SYSROOT_DESTDIR", "", d)
-        bb.note("Legacy staging mode for %s" % bb.data.getVar("FILE", d, True))
-        lock = bb.utils.lockfile(lockfile)
-        bb.build.exec_func('populate_sysroot_prehook', d)
-        bb.build.exec_func('do_stage', d)
-        for f in (bb.data.getVar('SYSROOT_PREPROCESS_FUNCS', d, True) or '').split():
-            bb.build.exec_func(f, d)
-        bb.build.exec_func('populate_sysroot_posthook', d)
-        bb.utils.unlockfile(lock)
-    else:
-        dest = bb.data.getVar('D', d, True)
-        sysrootdest = bb.data.expand('${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}', d)
-        bb.mkdirhier(sysrootdest)
-
-        bb.build.exec_func("sysroot_stage_all", d)
-        #os.system('cp -pPR %s/* %s/' % (dest, sysrootdest))
-        for f in (bb.data.getVar('SYSROOT_PREPROCESS_FUNCS', d, True) or '').split():
-            bb.build.exec_func(f, d)
-        bb.build.exec_func("packagedstaging_fastpath", d)
-
-        lock = bb.utils.lockfile(lockfile)
-        os.system(bb.data.expand('cp -pPR ${SYSROOT_DESTDIR}${TMPDIR}/* ${TMPDIR}/', d))
-        bb.utils.unlockfile(lock)
+
+    dest = bb.data.getVar('D', d, True)
+    sysrootdest = bb.data.expand('${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}', d)
+    bb.mkdirhier(sysrootdest)
+
+    bb.build.exec_func("sysroot_stage_all", d)
+    #os.system('cp -pPR %s/* %s/' % (dest, sysrootdest))
+    for f in (bb.data.getVar('SYSROOT_PREPROCESS_FUNCS', d, True) or '').split():
+        bb.build.exec_func(f, d)
+    bb.build.exec_func("packagedstaging_fastpath", d)
+
+    lock = bb.utils.lockfile(lockfile)
+    os.system(bb.data.expand('cp -pPR ${SYSROOT_DESTDIR}${TMPDIR}/* ${TMPDIR}/', d))
+    bb.utils.unlockfile(lock)
 }
 
+def is_legacy_staging(d):
+    stagefunc = bb.data.getVar('do_stage', d, True)
+    if stagefunc is None:
+        return False
+    return True
+
 python () {
     if is_legacy_staging(d):
-        bb.note("Legacy staging mode for %s" % bb.data.getVar("FILE", d, True))
+        bb.fatal("Legacy staging found for %s as it has a do_stage function. This will need conversion to a do_install or often simply removal to work with Poky" % bb.data.getVar("FILE", d, True))
 }
 
 
 
 
 inherit autotools pkgconfig
 
-do_stage() {
-       oe_runmake install prefix=${STAGING_DIR_HOST}${prefix} \
-              bindir=${STAGING_BINDIR} \
-              includedir=${STAGING_INCDIR} \
-              libdir=${STAGING_LIBDIR} \
-              datadir=${STAGING_DATADIR} \
-               mandir=${STAGING_DIR_HOST}${mandir}
-}
 
 
 SRC_URI += "${PATHFIXPATCH}"
 
-NATIVE_INSTALL_WORKS = "1"
 do_install () {
        oe_runmake 'DESTDIR=${D}' install
        install -d ${D}${datadir}
 
         install -m 644 ${S}/include/ansidecl.h ${D}${includedir}
         install -m 644 ${S}/include/libiberty.h ${D}${includedir}
 }
-
-do_stage () {
-    use_do_install_for_stage
-}
 
        rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${libdir}64 || :
        rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${prefix} || :
 }
-
-do_stage () {
-       use_do_install_for_stage
-}
 
 
 STAGE_TEMP="${WORKDIR}/image-temp"
 
-NATIVE_INSTALL_WORKS = "1"
 do_install() {
        install -d ${STAGE_TEMP}
        make install INS_BASE=${STAGE_TEMP}
 
            file://msdos_fat12_undefined.patch;patch=1 \
           file://include-linux-types.patch;patch=1"
 
-NATIVE_INSTALL_WORKS = "1"
 do_install () {
        oe_runmake "PREFIX=${D}" "SBINDIR=${D}${sbindir}" \
                   "MANDIR=${D}${mandir}/man8" install
 
            file://msdos_fat12_undefined.patch;patch=1 \
           file://include-linux-types.patch;patch=1"
 
-NATIVE_INSTALL_WORKS = "1"
 do_install () {
        oe_runmake "PREFIX=${D}" "SBINDIR=${D}${sbindir}" \
                   "MANDIR=${D}${mandir}/man8" install
 
 DEBIAN_NOAUTONAME_fuse-utils = "1"
 DEBIAN_NOAUTONAME_fuse-utils-dbg = "1"
 
-fakeroot do_stage() {
-        autotools_stage_all
-}
-
-
 
        oe_runmake 'DESTDIR=${D}' install-common install-headers install-libgcc
        install -m 0755 xgcc ${D}${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_PREFIX}gcc-${PV}
 }
-
-do_stage () {
-    use_do_install_for_stage
-}
\ No newline at end of file
 
 DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc ${NATIVEDEPS}"
 PROVIDES = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
 
-do_stage () {
-    use_do_install_for_stage
-}
-
 require gcc-configure-cross.inc
 require gcc-package-cross.inc
 
 
        $CC ldconfig.c -std=gnu99 chroot_canon.c xmalloc.c xstrdup.c cache.c readlib.c  -I. dl-cache.c -o ldconfig
 }
 
-NATIVE_INSTALL_WORKS = "1"
 do_install () {
        install -d ${D}/${bindir}/
        install ldconfig ${D}/${bindir}/
 
 FILES_${PN} = "${bindir} ${datadir}/gnu-config"
 
 BBCLASSEXTEND = "native"
-NATIVE_INSTALL_WORKS = "1"
 
 
 BBCLASSEXTEND = "native"
 
-NATIVE_INSTALL_WORKS = "1"
 do_install () {
        install -d ${D}${datadir}/aclocal/
        install -m 0644 ${WORKDIR}/gtk-doc.m4 ${D}${datadir}/aclocal/
 
         file://crosscompile_fix.patch;patch=1 \
         file://insserv.conf"
 
-NATIVE_INSTALL_WORKS = "1"
 do_install () {
        oe_runmake 'DESTDIR=${D}' install
        install -m0644 ${WORKDIR}/insserv.conf ${D}${sysconfdir}/insserv.conf
 
 PR = r4
 PV = "0.1+git${SRCPV}"
 
-# needed until the native do_stage goes away
-NATIVE_INSTALL_WORKS=1
-
 inherit native
 
 SRC_URI = "git://git.pokylinux.org/wr-kernel-tools.git;protocol=git"
 
 
 inherit autotools pkgconfig
 
-do_stage() {
-       autotools_stage_all
-}
 
 
 inherit autotools pkgconfig
 
-do_stage() {
-       autotools_stage_all
-}
 
 }
 
 BBCLASSEXTEND = "native"
-NATIVE_INSTALL_WORKS = "1"
 
 
 DEFAULT_PREFERENCE = "-1"
 
-NATIVE_INSTALL_WORKS = "1"
 do_install () {
        install -d ${D}${libdir}/
     if [ "${PN}" != "qemugl-nativesdk" ]; then
 
 PARALLEL_MAKE = ""
 
 BBCLASSEXTEND = "native"
-NATIVE_INSTALL_WORKS = "1"
 
         echo "EXTRA_DIST=" > ${S}/gnome-doc-utils.make
 }              
 
-do_stage () {
-        autotools_stage_all
-}
-
 pkg_postinst_${PN} () {
 #!/bin/sh -e
 if [ "x$D" != "x" ]; then
 
 }
 
 BBCLASSEXTEND = "native"
-NATIVE_INSTALL_WORKS = "1"
 
        oe_runmake
 }
 
-NATIVE_INSTALL_WORKS = "1"
 do_install () {
        install -m 0755 -d ${D}${libdir}/pkgconfig
        oe_runmake INSTALL_PREFIX="${D}" install
 
 FILES_${PN}-dbg += " ${libdir}/opensync*/formats/.debug/*.so \
                     ${libdir}/opensync*/.debug/osplugin "
 
-do_stage() {
-    autotools_stage_all
-}
 
 
 inherit cmake pkgconfig
 
-do_stage() {
-        autotools_stage_all
-}
-
 PACKAGES += "${PN}-tools"
 
 FILES_${PN}-tools = "${bindir}"
 
        oe_runmake PREFIX=${prefix} DESTDIR=${D} install
 }
 
-NATIVE_INSTALL_WORKS = "1"
 BBCLASSEXTEND = "native"
 
 
 inherit native
 
-NATIVE_INSTALL_WORKS = "1"
 do_install() {
         BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
         STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
 
 LEAD_SONAME = "libpango-1.0*"
 LIBV = "1.6.0"
 
-do_stage () {
-       autotools_stage_all
-}
-
 postinst_prologue() {
 if [ "x$D" != "x" ]; then
   exit 1
 
     oe_runmake PREFIX=${D}${prefix} DESTDIR=${D} install
 }
 
-NATIVE_INSTALL_WORKS = "1"
 BBCLASSEXTEND = "native"
 
                -Uusenm -des
 }
 
-NATIVE_INSTALL_WORKS = "1"
 do_install () {
        oe_runmake 'DESTDIR=${D}' install
 
 
        oe_runmake 'DESTDIR=${D}' install
 }
 
-NATIVE_INSTALL_WORKS = "1"
-
 BBCLASSEXTEND = "native"
 
 
 
 DEPENDS = "python-native"
 RDEPENDS = ""
 PR = "r0"
-NATIVE_INSTALL_WORKS = "1"
 
 
   STAGING_INCDIR=${STAGING_INCDIR_NATIVE} \
 '
 
-NATIVE_INSTALL_WORKS = "1"
 do_install() {
        oe_runmake 'DESTDIR=${D}' install
        install -d ${D}${bindir}/
 
 export STAGING_INCDIR
 export STAGING_LIBDIR
 
-NATIVE_INSTALL_WORKS = "1"
-
 BBCLASSEXTEND = "native"
 
 
 inherit native
 
-NATIVE_INSTALL_WORKS = "1"
-
 SRC_URI = "ftp://ftp.gnome.org/pub/GNOME/sources/pygobject/${MAJ_VER}/pygobject-${PV}.tar.bz2"
 
 do_install_append() {
 
 DEPENDS = "python-native"
 RDEPENDS = ""
 PR = "r0"
-
-NATIVE_INSTALL_WORKS = "1"
 
 RDEPENDS = ""
 PR = "r0"
 
-NATIVE_INSTALL_WORKS = "1"
-
 
 inherit native
 DEPENDS = "python-native python-pycurl-native"
 RDEPENDS = ""
-
-NATIVE_INSTALL_WORKS = "1"
-
 
 PR = "r0"
 
 #BUILD_CFLAGS += "-I${STAGING_LIBDIR}/glib-2.0"
-
-NATIVE_INSTALL_WORKS = "1"
 
        $CC $CFLAGS $CPPFLAGS -o oe_sha256sum main.c sha256.c
 }
 
-NATIVE_INSTALL_WORKS = "1"
 do_install() {
        install -d ${D}${bindir}/
        install ${S}/oe_sha256sum ${D}${bindir}/
 
 
 PSTAGING_DISABLED = "1"
 
-NATIVE_INSTALL_WORKS = "1"
+# This function is special and allowed to onstall into staging directly
 do_install() {
        install -d ${STAGING_BINDIR}
        install -m 0755 ${WORKDIR}/stage-manager ${STAGING_BINDIR}
 
        oe_runmake CC="${CC}" installer
 }
 
-NATIVE_INSTALL_WORKS = "1"
 do_install() {
        oe_runmake install INSTALLROOT="${D}"
 
 
 
 inherit native
 
-NATIVE_INSTALL_WORKS = "1"
 do_install () {
         install -d ${D}${bindir}/
         install -m 755 zic ${D}${bindir}/
 
        oe_runmake tools
 }
 
-NATIVE_INSTALL_WORKS = "1"
 do_install () {
        install -d ${D}${bindir}/
        install -m 0755 tools/mkimage ${D}${bindir}/uboot-mkimage
 
   oe_runmake tools
 }
 
-NATIVE_INSTALL_WORKS = "1"
 do_install () {
   install -d ${D}${bindir}
   install -m 0755 tools/mkimage ${D}${bindir}/uboot-mkimage
 
        install -m 0644 ${WORKDIR}/50-hostap_cs.rules         ${D}${sysconfdir}/udev/rules.d/50-hostap_cs.rules
 }
 
-do_stage () {
-       autotools_stage_all
-}
 
        install -m 0644 ${WORKDIR}/50-hostap_cs.rules         ${D}${sysconfdir}/udev/rules.d/50-hostap_cs.rules
 }
 
-do_stage () {
-       autotools_stage_all
-}
 
        done
 }
 
-NATIVE_INSTALL_WORKS = "1"
 do_install() {
        install -d ${D}${bindir}/
        install -m 0755 bin/moc ${D}${bindir}//moc4
 
        ${CC} ${CFLAGS} ${LDFLAGS} -o unifdef ${WORKDIR}/unifdef.c
 }
 
-NATIVE_INSTALL_WORKS = "1"
-
 do_install() {
        install -d ${D}${bindir}
        install -m 0755 unifdef ${D}${bindir}
 
 }
 
 BBCLASSEXTEND = "native"
-NATIVE_INSTALL_WORKS = "1"
 
     p;' > ${S}/scripts/update-alternatives
 }
 
-NATIVE_INSTALL_WORKS = "1"
 do_install () {
     install -d ${D}${sbindir} \
                ${D}${localstatedir}/dpkg/alternatives \
 
 do_compile() {
 }
 
-NATIVE_INSTALL_WORKS = "1"
 do_install() {
        install -d ${D}${sbindir}
        install -m 0755 ${S}/update-rc.d ${D}${sbindir}/update-rc.d
 
        ${CC} ${WORKDIR}/signGP.c -o signGP
 }
 
-NATIVE_INSTALL_WORKS = "1"
 do_install() {
        install -d ${D}${bindir}/
        install -m 0755 signGP ${D}${bindir}/
 
        cd utils && oe_runmake
 }
 
-NATIVE_INSTALL_WORKS = "1"
 do_install() {
        install -d ${D}${sbindir}/
        for i in mkyaffsimage mkyaffs2image; do
 
        ${CC} -o encdec-updater ${WORKDIR}/encdec-updater.c
 }
 
-NATIVE_INSTALL_WORKS = "1"
 do_install() {
        install -d ${D}${bindir}
        install -m 0755 encdec-updater ${D}${bindir}/
 
 }
 
 BBCLASSEXTEND = "native"
-NATIVE_INSTALL_WORKS = "1"