diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/base_srpm.bbclass | 20 | ||||
-rw-r--r-- | meta/classes/ccdv.bbclass | 21 | ||||
-rw-r--r-- | meta/classes/flow-lossage.bbclass | 5 | ||||
-rw-r--r-- | meta/classes/patcher.bbclass | 7 | ||||
-rw-r--r-- | meta/classes/singlemachine.bbclass | 15 | ||||
-rw-r--r-- | meta/classes/tmake.bbclass | 77 | ||||
-rw-r--r-- | meta/classes/xlibs.bbclass | 7 |
7 files changed, 0 insertions, 152 deletions
diff --git a/meta/classes/base_srpm.bbclass b/meta/classes/base_srpm.bbclass deleted file mode 100644 index aea633527..000000000 --- a/meta/classes/base_srpm.bbclass +++ /dev/null @@ -1,20 +0,0 @@ -inherit base package rpm_core - -SPECFILE="${RPMBUILDPATH}/SPECS/${PN}.spec" - -base_srpm_do_unpack() { - test -e ${SRPMFILE} || die "Source rpm \"${SRPMFILE}\"does not exist" - if ! test -e ${SPECFILE}; then - ${RPM} -i ${SRPMFILE} - fi - test -e ${SPECFILE} || die "Spec file \"${SPECFILE}\" does not exist" - ${RPMBUILD} -bp ${SPECFILE} -} - -base_srpm_do_compile() { - ${RPMBUILD} -bc ${SPECFILE} -} - -base_srpm_do_install() { - ${RPMBUILD} -bi ${SPECFILE} -} diff --git a/meta/classes/ccdv.bbclass b/meta/classes/ccdv.bbclass deleted file mode 100644 index 8c8306cbf..000000000 --- a/meta/classes/ccdv.bbclass +++ /dev/null @@ -1,21 +0,0 @@ -python () { - if bb.data.getVar('PN', d, 1) in ['ccdv-native']: - if not bb.data.getVar('INHIBIT_DEFAULT_DEPS', d, 1): - bb.data.setVar("DEPENDS", '%s %s' % ("ccdv-native", bb.data.getVar("DEPENDS", d, 1) or ""), d) - bb.data.setVar("CC", '%s %s' % ("ccdv", bb.data.getVar("CC", d, 1) or ""), d) - bb.data.setVar("BUILD_CC", '%s %s' % ("ccdv", bb.data.getVar("BUILD_CC", d, 1) or ""), d) - bb.data.setVar("CCLD", '%s %s' % ("ccdv", bb.data.getVar("CCLD", d, 1) or ""), d) -} - -def quiet_libtool(bb,d): - deps = (bb.data.getVar('DEPENDS', d, 1) or "").split() - if 'libtool-cross' in deps: - return "'LIBTOOL=${STAGING_BINDIR_NATIVE}/${HOST_SYS}-libtool --silent'" - elif 'libtool-native' in deps: - return "'LIBTOOL=${B}/${HOST_SYS}-libtool --silent'" - else: - return "" - -CCDV = "ccdv" -EXTRA_OEMAKE_append = " ${@quiet_libtool(bb,d)}" -MAKE += "-s" diff --git a/meta/classes/flow-lossage.bbclass b/meta/classes/flow-lossage.bbclass deleted file mode 100644 index 00e6bf025..000000000 --- a/meta/classes/flow-lossage.bbclass +++ /dev/null @@ -1,5 +0,0 @@ -# gcc-3.4 blows up in gtktext with -frename-registers on arm-linux -python () { - cflags = (bb.data.getVar('CFLAGS', d, 1) or '').replace('-frename-registers', '') - bb.data.setVar('CFLAGS', cflags, d) -} diff --git a/meta/classes/patcher.bbclass b/meta/classes/patcher.bbclass deleted file mode 100644 index c8a1b0350..000000000 --- a/meta/classes/patcher.bbclass +++ /dev/null @@ -1,7 +0,0 @@ -# Now that BitBake/OpenEmbedded uses Quilt by default, you can simply add an -# inherit patcher -# to one of your config files to let BB/OE use patcher again. - -PATCHCLEANCMD = "patcher -B" -PATCHCMD = "patcher -R -p '%s' -n '%s' -i '%s'" -PATCH_DEPENDS = "${@["patcher-native", ""][(bb.data.getVar('PN', d, 1) == 'patcher-native')]}" diff --git a/meta/classes/singlemachine.bbclass b/meta/classes/singlemachine.bbclass deleted file mode 100644 index c685ce397..000000000 --- a/meta/classes/singlemachine.bbclass +++ /dev/null @@ -1,15 +0,0 @@ -# -# Emulates the old mode of OE operation where only one machine can be targetted. -# - -MULTIMACH_TARGET_SYS = "${TARGET_SYS}" -MULTIMACH_HOST_SYS = "${HOST_SYS}" - -STAMP = "${TMPDIR}/stamps/${PF}" -WORKDIR = "${TMPDIR}/work/${PF}" -STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_SYS}" -STAGING_DIR_TARGET = "${STAGING_DIR}/${TARGET_SYS}" -PKGDATA_DIR = "${STAGING_DIR}/pkgdata" -STAGING_KERNEL_DIR = "${STAGING_DIR_HOST}/kernel" - - 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 diff --git a/meta/classes/xlibs.bbclass b/meta/classes/xlibs.bbclass deleted file mode 100644 index 7271d7b02..000000000 --- a/meta/classes/xlibs.bbclass +++ /dev/null @@ -1,7 +0,0 @@ -LICENSE= "BSD-X" -SECTION = "x11/libs" - -XLIBS_CVS = "${FREEDESKTOP_CVS}/xlibs" - -inherit autotools pkgconfig - |