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:34:18 +0100 |
commit | e6cf0ba96a2a3e23cd7a3474711ae154db8ee9c7 (patch) | |
tree | 1b7a4143d002f9e9113f24eff9223c8dd45c679f /meta | |
parent | e375da8e7434ca7cf8a7d2060f423bd795fe99c9 (diff) | |
download | poky-e6cf0ba96a2a3e23cd7a3474711ae154db8ee9c7.tar.gz |
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>
Diffstat (limited to 'meta')
-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 aea6335278..0000000000 --- a/meta/classes/base_srpm.bbclass +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | inherit base package rpm_core | ||
2 | |||
3 | SPECFILE="${RPMBUILDPATH}/SPECS/${PN}.spec" | ||
4 | |||
5 | base_srpm_do_unpack() { | ||
6 | test -e ${SRPMFILE} || die "Source rpm \"${SRPMFILE}\"does not exist" | ||
7 | if ! test -e ${SPECFILE}; then | ||
8 | ${RPM} -i ${SRPMFILE} | ||
9 | fi | ||
10 | test -e ${SPECFILE} || die "Spec file \"${SPECFILE}\" does not exist" | ||
11 | ${RPMBUILD} -bp ${SPECFILE} | ||
12 | } | ||
13 | |||
14 | base_srpm_do_compile() { | ||
15 | ${RPMBUILD} -bc ${SPECFILE} | ||
16 | } | ||
17 | |||
18 | base_srpm_do_install() { | ||
19 | ${RPMBUILD} -bi ${SPECFILE} | ||
20 | } | ||
diff --git a/meta/classes/ccdv.bbclass b/meta/classes/ccdv.bbclass deleted file mode 100644 index 8c8306cbf1..0000000000 --- a/meta/classes/ccdv.bbclass +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | python () { | ||
2 | if bb.data.getVar('PN', d, 1) in ['ccdv-native']: | ||
3 | if not bb.data.getVar('INHIBIT_DEFAULT_DEPS', d, 1): | ||
4 | bb.data.setVar("DEPENDS", '%s %s' % ("ccdv-native", bb.data.getVar("DEPENDS", d, 1) or ""), d) | ||
5 | bb.data.setVar("CC", '%s %s' % ("ccdv", bb.data.getVar("CC", d, 1) or ""), d) | ||
6 | bb.data.setVar("BUILD_CC", '%s %s' % ("ccdv", bb.data.getVar("BUILD_CC", d, 1) or ""), d) | ||
7 | bb.data.setVar("CCLD", '%s %s' % ("ccdv", bb.data.getVar("CCLD", d, 1) or ""), d) | ||
8 | } | ||
9 | |||
10 | def quiet_libtool(bb,d): | ||
11 | deps = (bb.data.getVar('DEPENDS', d, 1) or "").split() | ||
12 | if 'libtool-cross' in deps: | ||
13 | return "'LIBTOOL=${STAGING_BINDIR_NATIVE}/${HOST_SYS}-libtool --silent'" | ||
14 | elif 'libtool-native' in deps: | ||
15 | return "'LIBTOOL=${B}/${HOST_SYS}-libtool --silent'" | ||
16 | else: | ||
17 | return "" | ||
18 | |||
19 | CCDV = "ccdv" | ||
20 | EXTRA_OEMAKE_append = " ${@quiet_libtool(bb,d)}" | ||
21 | MAKE += "-s" | ||
diff --git a/meta/classes/flow-lossage.bbclass b/meta/classes/flow-lossage.bbclass deleted file mode 100644 index 00e6bf0257..0000000000 --- a/meta/classes/flow-lossage.bbclass +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | # gcc-3.4 blows up in gtktext with -frename-registers on arm-linux | ||
2 | python () { | ||
3 | cflags = (bb.data.getVar('CFLAGS', d, 1) or '').replace('-frename-registers', '') | ||
4 | bb.data.setVar('CFLAGS', cflags, d) | ||
5 | } | ||
diff --git a/meta/classes/patcher.bbclass b/meta/classes/patcher.bbclass deleted file mode 100644 index c8a1b0350f..0000000000 --- a/meta/classes/patcher.bbclass +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | # Now that BitBake/OpenEmbedded uses Quilt by default, you can simply add an | ||
2 | # inherit patcher | ||
3 | # to one of your config files to let BB/OE use patcher again. | ||
4 | |||
5 | PATCHCLEANCMD = "patcher -B" | ||
6 | PATCHCMD = "patcher -R -p '%s' -n '%s' -i '%s'" | ||
7 | 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 c685ce397a..0000000000 --- a/meta/classes/singlemachine.bbclass +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | # | ||
2 | # Emulates the old mode of OE operation where only one machine can be targetted. | ||
3 | # | ||
4 | |||
5 | MULTIMACH_TARGET_SYS = "${TARGET_SYS}" | ||
6 | MULTIMACH_HOST_SYS = "${HOST_SYS}" | ||
7 | |||
8 | STAMP = "${TMPDIR}/stamps/${PF}" | ||
9 | WORKDIR = "${TMPDIR}/work/${PF}" | ||
10 | STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_SYS}" | ||
11 | STAGING_DIR_TARGET = "${STAGING_DIR}/${TARGET_SYS}" | ||
12 | PKGDATA_DIR = "${STAGING_DIR}/pkgdata" | ||
13 | STAGING_KERNEL_DIR = "${STAGING_DIR_HOST}/kernel" | ||
14 | |||
15 | |||
diff --git a/meta/classes/tmake.bbclass b/meta/classes/tmake.bbclass deleted file mode 100644 index dbd0bf2763..0000000000 --- a/meta/classes/tmake.bbclass +++ /dev/null | |||
@@ -1,77 +0,0 @@ | |||
1 | DEPENDS_prepend="tmake " | ||
2 | |||
3 | python tmake_do_createpro() { | ||
4 | import glob, sys | ||
5 | from bb import note | ||
6 | out_vartranslate = { | ||
7 | "TMAKE_HEADERS": "HEADERS", | ||
8 | "TMAKE_INTERFACES": "INTERFACES", | ||
9 | "TMAKE_TEMPLATE": "TEMPLATE", | ||
10 | "TMAKE_CONFIG": "CONFIG", | ||
11 | "TMAKE_DESTDIR": "DESTDIR", | ||
12 | "TMAKE_SOURCES": "SOURCES", | ||
13 | "TMAKE_DEPENDPATH": "DEPENDPATH", | ||
14 | "TMAKE_INCLUDEPATH": "INCLUDEPATH", | ||
15 | "TMAKE_TARGET": "TARGET", | ||
16 | "TMAKE_LIBS": "LIBS", | ||
17 | } | ||
18 | s = data.getVar('S', d, 1) or "" | ||
19 | os.chdir(s) | ||
20 | profiles = (data.getVar('TMAKE_PROFILES', d, 1) or "").split() | ||
21 | if not profiles: | ||
22 | profiles = ["*.pro"] | ||
23 | for pro in profiles: | ||
24 | ppro = glob.glob(pro) | ||
25 | if ppro: | ||
26 | if ppro != [pro]: | ||
27 | del profiles[profiles.index(pro)] | ||
28 | profiles += ppro | ||
29 | continue | ||
30 | if ppro[0].find('*'): | ||
31 | del profiles[profiles.index(pro)] | ||
32 | continue | ||
33 | else: | ||
34 | del profiles[profiles.index(pro)] | ||
35 | if len(profiles) != 0: | ||
36 | return | ||
37 | |||
38 | # output .pro using this metadata store | ||
39 | try: | ||
40 | from __builtin__ import file | ||
41 | profile = file(data.expand('${PN}.pro', d), 'w') | ||
42 | except OSError: | ||
43 | raise FuncFailed("unable to open pro file for writing.") | ||
44 | |||
45 | # fd = sys.__stdout__ | ||
46 | fd = profile | ||
47 | for var in out_vartranslate.keys(): | ||
48 | val = data.getVar(var, d, 1) | ||
49 | if val: | ||
50 | fd.write("%s\t: %s\n" % (out_vartranslate[var], val)) | ||
51 | |||
52 | # if fd is not sys.__stdout__: | ||
53 | fd.close() | ||
54 | } | ||
55 | |||
56 | tmake_do_configure() { | ||
57 | paths="${STAGING_DATADIR}/tmake/qws/${TARGET_OS}-${TARGET_ARCH}-g++ ${STAGING_DATADIR}/tmake/$OS-g++" | ||
58 | if (echo "${TARGET_ARCH}"|grep -q 'i.86'); then | ||
59 | paths="${STAGING_DATADIR}/tmake/qws/${TARGET_OS}-x86-g++ $paths" | ||
60 | fi | ||
61 | for i in $paths; do | ||
62 | if test -e $i; then | ||
63 | export TMAKEPATH=$i | ||
64 | break | ||
65 | fi | ||
66 | done | ||
67 | |||
68 | if [ -z "${TMAKE_PROFILES}" ]; then | ||
69 | TMAKE_PROFILES="`ls *.pro`" | ||
70 | fi | ||
71 | tmake -o Makefile $TMAKE_PROFILES || die "Error calling tmake on ${TMAKE_PROFILES}" | ||
72 | } | ||
73 | |||
74 | EXPORT_FUNCTIONS do_configure do_createpro | ||
75 | |||
76 | addtask configure after do_unpack do_patch before do_compile | ||
77 | 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 7271d7b029..0000000000 --- a/meta/classes/xlibs.bbclass +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | LICENSE= "BSD-X" | ||
2 | SECTION = "x11/libs" | ||
3 | |||
4 | XLIBS_CVS = "${FREEDESKTOP_CVS}/xlibs" | ||
5 | |||
6 | inherit autotools pkgconfig | ||
7 | |||