diff options
author | Richard Purdie <richard@openedhand.com> | 2006-05-09 17:42:08 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-05-09 17:42:08 +0000 |
commit | d097b90ed729456b685e457c99ac9c64f96e214c (patch) | |
tree | 0f82ebbf0157fc37a0b7e0ab60e613d52af59e85 /openembedded/packages/binutils | |
parent | 62d7919056e14238162ac88622f3660dd65a53cf (diff) | |
download | poky-d097b90ed729456b685e457c99ac9c64f96e214c.tar.gz |
Remove glibc and binutils cvs versions
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@383 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/binutils')
-rw-r--r-- | openembedded/packages/binutils/binutils-cross_cvs.bb | 32 | ||||
-rw-r--r-- | openembedded/packages/binutils/binutils_cvs.bb | 122 |
2 files changed, 0 insertions, 154 deletions
diff --git a/openembedded/packages/binutils/binutils-cross_cvs.bb b/openembedded/packages/binutils/binutils-cross_cvs.bb deleted file mode 100644 index 0e338b52a7..0000000000 --- a/openembedded/packages/binutils/binutils-cross_cvs.bb +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | SECTION = "devel" | ||
2 | include binutils_cvs.bb | ||
3 | inherit cross | ||
4 | DEPENDS += "flex-native bison-native" | ||
5 | PROVIDES = "virtual/${TARGET_PREFIX}binutils" | ||
6 | FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-cvs" | ||
7 | PACKAGES = "" | ||
8 | EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \ | ||
9 | --program-prefix=${TARGET_PREFIX}" | ||
10 | |||
11 | do_stage () { | ||
12 | oe_runmake install | ||
13 | |||
14 | # We don't really need these, so we'll remove them... | ||
15 | rm -rf ${CROSS_DIR}/lib/ldscripts | ||
16 | rm -rf ${CROSS_DIR}/share/info | ||
17 | rm -rf ${CROSS_DIR}/share/locale | ||
18 | rm -rf ${CROSS_DIR}/share/man | ||
19 | rmdir ${CROSS_DIR}/share || : | ||
20 | rmdir ${CROSS_DIR}/${libdir}/gcc-lib || : | ||
21 | rmdir ${CROSS_DIR}/${libdir} || : | ||
22 | rmdir ${CROSS_DIR}/${prefix} || : | ||
23 | |||
24 | # We want to move this into the target specific location | ||
25 | mkdir -p ${CROSS_DIR}/${TARGET_SYS}/lib | ||
26 | mv -f ${CROSS_DIR}/lib/libiberty.a ${CROSS_DIR}/${TARGET_SYS}/lib | ||
27 | rmdir ${CROSS_DIR}/lib || : | ||
28 | } | ||
29 | |||
30 | do_install () { | ||
31 | : | ||
32 | } | ||
diff --git a/openembedded/packages/binutils/binutils_cvs.bb b/openembedded/packages/binutils/binutils_cvs.bb deleted file mode 100644 index e870c8f0b5..0000000000 --- a/openembedded/packages/binutils/binutils_cvs.bb +++ /dev/null | |||
@@ -1,122 +0,0 @@ | |||
1 | SECTION = "devel" | ||
2 | inherit autotools gettext | ||
3 | |||
4 | DESCRIPTION = "A GNU collection of binary utilities" | ||
5 | HOMEPAGE = "http://www.gnu.org/software/binutils/" | ||
6 | LICENSE = "GPL" | ||
7 | MAINTAINER = "Gerald Britton <gbritton@doomcom.org>" | ||
8 | FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-cvs" | ||
9 | PV = "0.0+cvs${SRCDATE}" | ||
10 | PR = "r2" | ||
11 | |||
12 | PACKAGES = "${PN} ${PN}-dev ${PN}-doc ${PN}-symlinks" | ||
13 | |||
14 | FILES_${PN} = " \ | ||
15 | ${bindir}/${TARGET_PREFIX}* \ | ||
16 | ${libdir}/lib*-*.so \ | ||
17 | ${prefix}/${TARGET_SYS}/bin/*" | ||
18 | |||
19 | FILES_${PN}-dev = " \ | ||
20 | ${includedir} \ | ||
21 | ${libdir}/*.a \ | ||
22 | ${libdir}/*.la \ | ||
23 | ${libdir}/libbfd.so \ | ||
24 | ${libdir}/libopcodes.so" | ||
25 | |||
26 | FILES_${PN}-symlinks = " \ | ||
27 | ${bindir}/addr2line \ | ||
28 | ${bindir}/ar \ | ||
29 | ${bindir}/as \ | ||
30 | ${bindir}/c++filt \ | ||
31 | ${bindir}/gprof \ | ||
32 | ${bindir}/ld \ | ||
33 | ${bindir}/nm \ | ||
34 | ${bindir}/objcopy \ | ||
35 | ${bindir}/objdump \ | ||
36 | ${bindir}/ranlib \ | ||
37 | ${bindir}/readelf \ | ||
38 | ${bindir}/size \ | ||
39 | ${bindir}/strings \ | ||
40 | ${bindir}/strip" | ||
41 | |||
42 | SRC_URI = "cvs://anoncvs:anoncvs@sources.redhat.com/cvs/src;module=binutils;method=pserver;localdir=src \ | ||
43 | file://ld_makefile.patch;patch=1 \ | ||
44 | file://better_file_error.patch;patch=1 \ | ||
45 | file://signed_char_fix.patch;patch=1 \ | ||
46 | file://binutils-100_cflags_for_build.patch;patch=1 \ | ||
47 | file://binutils-2.15.91.0.1-uclibc-100-conf.patch;patch=1 \ | ||
48 | file://binutils-2.15.90.0.3-uclibc-200-build_modules.patch;patch=1" | ||
49 | |||
50 | S = "${WORKDIR}/src" | ||
51 | B = "${S}/build.${HOST_SYS}.${TARGET_SYS}" | ||
52 | |||
53 | EXTRA_OECONF = "--with-sysroot=${prefix} \ | ||
54 | --program-prefix=${TARGET_PREFIX} \ | ||
55 | --enable-shared" | ||
56 | |||
57 | # This is necessary due to a bug in the binutils Makefiles | ||
58 | EXTRA_OEMAKE = "configure-build-libiberty all" | ||
59 | |||
60 | export AR = "${HOST_PREFIX}ar" | ||
61 | export AS = "${HOST_PREFIX}as" | ||
62 | export LD = "${HOST_PREFIX}ld" | ||
63 | export NM = "${HOST_PREFIX}nm" | ||
64 | export RANLIB = "${HOST_PREFIX}ranlib" | ||
65 | export OBJCOPY = "${HOST_PREFIX}objcopy" | ||
66 | export OBJDUMP = "${HOST_PREFIX}objdump" | ||
67 | |||
68 | export AR_FOR_TARGET = "${TARGET_PREFIX}ar" | ||
69 | export AS_FOR_TARGET = "${TARGET_PREFIX}as" | ||
70 | export LD_FOR_TARGET = "${TARGET_PREFIX}ld" | ||
71 | export NM_FOR_TARGET = "${TARGET_PREFIX}nm" | ||
72 | export RANLIB_FOR_TARGET = "${TARGET_PREFIX}ranlib" | ||
73 | |||
74 | export CC_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc" | ||
75 | export CXX_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc" | ||
76 | |||
77 | export CC_FOR_BUILD = "${BUILD_CC}" | ||
78 | |||
79 | export CC = "${CCACHE} ${HOST_PREFIX}gcc" | ||
80 | |||
81 | do_configure () { | ||
82 | (cd ${S}; gnu-configize) || die "Failed to run gnu-configize" | ||
83 | oe_runconf | ||
84 | } | ||
85 | |||
86 | do_stage () { | ||
87 | oe_libinstall -so -a -C opcodes libopcodes ${STAGING_LIBDIR}/ | ||
88 | oe_libinstall -a -C libiberty libiberty ${STAGING_LIBDIR}/ | ||
89 | oe_libinstall -so -a -C bfd libbfd ${STAGING_LIBDIR}/ | ||
90 | install -m 0644 ${S}/include/dis-asm.h ${STAGING_INCDIR}/ | ||
91 | install -m 0644 ${S}/include/symcat.h ${STAGING_INCDIR}/ | ||
92 | install -m 0644 ${S}/include/libiberty.h ${STAGING_INCDIR}/ | ||
93 | install -m 0644 ${S}/include/ansidecl.h ${STAGING_INCDIR}/ | ||
94 | install -m 0644 ${S}/include/bfdlink.h ${STAGING_INCDIR}/ | ||
95 | install -m 0644 bfd/bfd.h ${STAGING_INCDIR}/ | ||
96 | } | ||
97 | |||
98 | do_install () { | ||
99 | autotools_do_install | ||
100 | |||
101 | # We don't really need these, so we'll remove them... | ||
102 | rm -rf ${D}${libdir}/ldscripts | ||
103 | |||
104 | # Fix the /usr/${TARGET_SYS}/bin/* links | ||
105 | for l in ${D}${prefix}/${TARGET_SYS}/bin/*; do | ||
106 | rm -f $l | ||
107 | ln -sf `echo ${prefix}/${TARGET_SYS}/bin \ | ||
108 | | tr -s / \ | ||
109 | | sed -e 's,^/,,' -e 's,[^/]*,..,g'`${bindir}/${TARGET_PREFIX}`basename $l` $l | ||
110 | done | ||
111 | |||
112 | # Install the libiberty header | ||
113 | install -m 644 ${S}/include/ansidecl.h ${D}${includedir} | ||
114 | install -m 644 ${S}/include/libiberty.h ${D}${includedir} | ||
115 | |||
116 | cd ${D}${bindir} | ||
117 | |||
118 | # Symlinks for ease of running these on the native target | ||
119 | for p in ${TARGET_SYS}-* ; do | ||
120 | ln -sf $p `echo $p | sed -e s,${TARGET_SYS}-,,` | ||
121 | done | ||
122 | } | ||