mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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. (From OE-Core rev: 7416bdaf01daaeb183b1cc8d13a043e244c464e1) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e375da8e74
commit
e6cf0ba96a
@@ -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}
|
||||
}
|
||||
@@ -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"
|
||||
@@ -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)
|
||||
}
|
||||
@@ -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')]}"
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -1,7 +0,0 @@
|
||||
LICENSE= "BSD-X"
|
||||
SECTION = "x11/libs"
|
||||
|
||||
XLIBS_CVS = "${FREEDESKTOP_CVS}/xlibs"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
Reference in New Issue
Block a user