diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2011-07-15 13:59:17 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-19 17:33:56 +0100 |
commit | 7416bdaf01daaeb183b1cc8d13a043e244c464e1 (patch) | |
tree | ad39861515dc284f7b2914bfb2513d0e5c75fc47 /meta/classes/tmake.bbclass | |
parent | 7c84b6f2cfaa12d631e34d29625436b4353c8c35 (diff) | |
download | openembedded-core-7416bdaf01daaeb183b1cc8d13a043e244c464e1.tar.gz openembedded-core-7416bdaf01daaeb183b1cc8d13a043e244c464e1.tar.bz2 openembedded-core-7416bdaf01daaeb183b1cc8d13a043e244c464e1.tar.xz openembedded-core-7416bdaf01daaeb183b1cc8d13a043e244c464e1.zip |
classes: remove obsolete classes
All of these classes are currently unused in oe-core and meta-oe; several
are no longer in use even in OE classic:
* base_srpm.bbclass
* ccdv.bbclass
* flow-lossage.bbclass
* patcher.bbclass
* singlemachine.bbclass
* tmake.bbclass
* xlibs.bbclass
patcher.bbclass and singlemachine.bbclass probably still work but it is
unlikely that anyone is still using them.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'meta/classes/tmake.bbclass')
-rw-r--r-- | meta/classes/tmake.bbclass | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/meta/classes/tmake.bbclass b/meta/classes/tmake.bbclass deleted file mode 100644 index dbd0bf276..000000000 --- a/meta/classes/tmake.bbclass +++ /dev/null @@ -1,77 +0,0 @@ -DEPENDS_prepend="tmake " - -python tmake_do_createpro() { - import glob, sys - from bb import note - out_vartranslate = { - "TMAKE_HEADERS": "HEADERS", - "TMAKE_INTERFACES": "INTERFACES", - "TMAKE_TEMPLATE": "TEMPLATE", - "TMAKE_CONFIG": "CONFIG", - "TMAKE_DESTDIR": "DESTDIR", - "TMAKE_SOURCES": "SOURCES", - "TMAKE_DEPENDPATH": "DEPENDPATH", - "TMAKE_INCLUDEPATH": "INCLUDEPATH", - "TMAKE_TARGET": "TARGET", - "TMAKE_LIBS": "LIBS", - } - s = data.getVar('S', d, 1) or "" - os.chdir(s) - profiles = (data.getVar('TMAKE_PROFILES', d, 1) or "").split() - if not profiles: - profiles = ["*.pro"] - for pro in profiles: - ppro = glob.glob(pro) - if ppro: - if ppro != [pro]: - del profiles[profiles.index(pro)] - profiles += ppro - continue - if ppro[0].find('*'): - del profiles[profiles.index(pro)] - continue - else: - del profiles[profiles.index(pro)] - if len(profiles) != 0: - return - - # output .pro using this metadata store - try: - from __builtin__ import file - profile = file(data.expand('${PN}.pro', d), 'w') - except OSError: - raise FuncFailed("unable to open pro file for writing.") - -# fd = sys.__stdout__ - fd = profile - for var in out_vartranslate.keys(): - val = data.getVar(var, d, 1) - if val: - fd.write("%s\t: %s\n" % (out_vartranslate[var], val)) - -# if fd is not sys.__stdout__: - fd.close() -} - -tmake_do_configure() { - paths="${STAGING_DATADIR}/tmake/qws/${TARGET_OS}-${TARGET_ARCH}-g++ ${STAGING_DATADIR}/tmake/$OS-g++" - if (echo "${TARGET_ARCH}"|grep -q 'i.86'); then - paths="${STAGING_DATADIR}/tmake/qws/${TARGET_OS}-x86-g++ $paths" - fi - for i in $paths; do - if test -e $i; then - export TMAKEPATH=$i - break - fi - done - - if [ -z "${TMAKE_PROFILES}" ]; then - TMAKE_PROFILES="`ls *.pro`" - fi - tmake -o Makefile $TMAKE_PROFILES || die "Error calling tmake on ${TMAKE_PROFILES}" -} - -EXPORT_FUNCTIONS do_configure do_createpro - -addtask configure after do_unpack do_patch before do_compile -addtask createpro before do_configure after do_unpack do_patch |