diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-04-27 14:04:42 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-04-27 14:04:42 +0000 |
commit | 4d4a37609166adb9a86423f346e7a6bd6649da3a (patch) | |
tree | fd69946b9bb4e3fff75752884241ee652eb44432 /meta/packages | |
parent | 0b01f1f9638018ad4727045b0620a9d5a6d0381a (diff) | |
download | poky-4d4a37609166adb9a86423f346e7a6bd6649da3a.tar.gz |
binutils 2.16, 2.17.50.0.5: make them provide 'ar' and 'strings' via update-alternatives
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1571 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages')
-rw-r--r-- | meta/packages/binutils/binutils.inc | 17 | ||||
-rw-r--r-- | meta/packages/binutils/binutils_2.16.bb | 17 | ||||
-rw-r--r-- | meta/packages/binutils/binutils_2.17.50.0.5.bb | 121 |
3 files changed, 23 insertions, 132 deletions
diff --git a/meta/packages/binutils/binutils.inc b/meta/packages/binutils/binutils.inc index 680e579a06..e0440b370a 100644 --- a/meta/packages/binutils/binutils.inc +++ b/meta/packages/binutils/binutils.inc | |||
@@ -1,6 +1,11 @@ | |||
1 | DESCRIPTION = "A GNU collection of binary utilities" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/binutils/" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "GPL" | ||
5 | |||
1 | inherit autotools gettext | 6 | inherit autotools gettext |
2 | 7 | ||
3 | PACKAGES = "${PN} ${PN}-dev ${PN}-doc ${PN}-symlinks" | 8 | PACKAGES += "${PN}-symlinks" |
4 | 9 | ||
5 | FILES_${PN} = " \ | 10 | FILES_${PN} = " \ |
6 | ${bindir}/${TARGET_PREFIX}* \ | 11 | ${bindir}/${TARGET_PREFIX}* \ |
@@ -28,6 +33,9 @@ FILES_${PN}-symlinks = " \ | |||
28 | ${bindir}/size \ | 33 | ${bindir}/size \ |
29 | ${bindir}/strip" | 34 | ${bindir}/strip" |
30 | 35 | ||
36 | S = "${WORKDIR}/binutils-${PV}" | ||
37 | B = "${S}/build.${HOST_SYS}.${TARGET_SYS}" | ||
38 | |||
31 | EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \ | 39 | EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \ |
32 | --enable-shared" | 40 | --enable-shared" |
33 | 41 | ||
@@ -60,6 +68,13 @@ export CC = "${CCACHE} ${HOST_PREFIX}gcc ${HOST_CC_ARCH}" | |||
60 | do_configure () { | 68 | do_configure () { |
61 | (cd ${S}; gnu-configize) || die "Failed to run gnu-configize" | 69 | (cd ${S}; gnu-configize) || die "Failed to run gnu-configize" |
62 | oe_runconf | 70 | oe_runconf |
71 | # | ||
72 | # must prime config.cache to ensure the build of libiberty | ||
73 | # | ||
74 | mkdir -p ${B}/build-${BUILD_SYS} | ||
75 | for i in ${CONFIG_SITE}; do | ||
76 | cat $i >> ${B}/build-${BUILD_SYS}/config.cache | ||
77 | done | ||
63 | } | 78 | } |
64 | 79 | ||
65 | do_stage () { | 80 | do_stage () { |
diff --git a/meta/packages/binutils/binutils_2.16.bb b/meta/packages/binutils/binutils_2.16.bb index c56f227d58..12719800f6 100644 --- a/meta/packages/binutils/binutils_2.16.bb +++ b/meta/packages/binutils/binutils_2.16.bb | |||
@@ -1,11 +1,9 @@ | |||
1 | DESCRIPTION = "A GNU collection of binary utilities" | 1 | require binutils.inc |
2 | HOMEPAGE = "http://www.gnu.org/software/binutils/" | 2 | |
3 | SECTION = "devel" | 3 | PR = "r8" |
4 | LICENSE = "GPL" | ||
5 | PR = "r7" | ||
6 | 4 | ||
7 | SRC_URI = \ | 5 | SRC_URI = "\ |
8 | "http://ftp.gnu.org/gnu/binutils/binutils-${PV}.tar.bz2 \ | 6 | http://ftp.gnu.org/gnu/binutils/binutils-${PV}.tar.bz2 \ |
9 | file://ld_makefile.patch;patch=1 \ | 7 | file://ld_makefile.patch;patch=1 \ |
10 | file://better_file_error.patch;patch=1 \ | 8 | file://better_file_error.patch;patch=1 \ |
11 | file://signed_char_fix.patch;patch=1 \ | 9 | file://signed_char_fix.patch;patch=1 \ |
@@ -18,8 +16,3 @@ SRC_URI += "file://binutils-2.16-linux-uclibc.patch;patch=1" | |||
18 | # thumb support patches | 16 | # thumb support patches |
19 | SRC_URI += "file://binutils-2.16-thumb-trampoline.patch;patch=1" | 17 | SRC_URI += "file://binutils-2.16-thumb-trampoline.patch;patch=1" |
20 | SRC_URI += "file://binutils-2.16-thumb-glue.patch;patch=1" | 18 | SRC_URI += "file://binutils-2.16-thumb-glue.patch;patch=1" |
21 | |||
22 | S = "${WORKDIR}/binutils-${PV}" | ||
23 | B = "${S}/build.${HOST_SYS}.${TARGET_SYS}" | ||
24 | |||
25 | require binutils.inc | ||
diff --git a/meta/packages/binutils/binutils_2.17.50.0.5.bb b/meta/packages/binutils/binutils_2.17.50.0.5.bb index aa3d15bd9f..63147755bc 100644 --- a/meta/packages/binutils/binutils_2.17.50.0.5.bb +++ b/meta/packages/binutils/binutils_2.17.50.0.5.bb | |||
@@ -1,39 +1,6 @@ | |||
1 | DESCRIPTION = "A GNU collection of binary utilities" | 1 | require binutils.inc |
2 | HOMEPAGE = "http://www.gnu.org/software/binutils/" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "GPL" | ||
5 | 2 | ||
6 | inherit autotools gettext | 3 | PR = "r1" |
7 | |||
8 | PACKAGES += "${PN}-symlinks" | ||
9 | |||
10 | FILES_${PN} = " \ | ||
11 | ${bindir}/${TARGET_PREFIX}* \ | ||
12 | ${libdir}/lib*-*.so \ | ||
13 | ${prefix}/${TARGET_SYS}/bin/*" | ||
14 | |||
15 | FILES_${PN}-dev = " \ | ||
16 | ${includedir} \ | ||
17 | ${libdir}/*.a \ | ||
18 | ${libdir}/*.la \ | ||
19 | ${libdir}/libbfd.so \ | ||
20 | ${libdir}/libopcodes.so" | ||
21 | |||
22 | FILES_${PN}-symlinks = " \ | ||
23 | ${bindir}/addr2line \ | ||
24 | ${bindir}/ar \ | ||
25 | ${bindir}/as \ | ||
26 | ${bindir}/c++filt \ | ||
27 | ${bindir}/gprof \ | ||
28 | ${bindir}/ld \ | ||
29 | ${bindir}/nm \ | ||
30 | ${bindir}/objcopy \ | ||
31 | ${bindir}/objdump \ | ||
32 | ${bindir}/ranlib \ | ||
33 | ${bindir}/readelf \ | ||
34 | ${bindir}/size \ | ||
35 | ${bindir}/strings \ | ||
36 | ${bindir}/strip" | ||
37 | 4 | ||
38 | SRC_URI = "\ | 5 | SRC_URI = "\ |
39 | http://www.kernel.org/pub/linux/devel/binutils/binutils-${PV}.tar.bz2 \ | 6 | http://www.kernel.org/pub/linux/devel/binutils/binutils-${PV}.tar.bz2 \ |
@@ -44,87 +11,3 @@ SRC_URI = "\ | |||
44 | file://binutils-uclibc-300-006_better_file_error.patch;patch=1 \ | 11 | file://binutils-uclibc-300-006_better_file_error.patch;patch=1 \ |
45 | file://binutils-uclibc-300-012_check_ldrunpath_length.patch;patch=1 \ | 12 | file://binutils-uclibc-300-012_check_ldrunpath_length.patch;patch=1 \ |
46 | " | 13 | " |
47 | |||
48 | S = "${WORKDIR}/binutils-${PV}" | ||
49 | B = "${S}/build.${HOST_SYS}.${TARGET_SYS}" | ||
50 | |||
51 | EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \ | ||
52 | --enable-shared" | ||
53 | |||
54 | # This is necessary due to a bug in the binutils Makefiles | ||
55 | EXTRA_OEMAKE = "configure-build-libiberty all" | ||
56 | |||
57 | export AR = "${HOST_PREFIX}ar" | ||
58 | export AS = "${HOST_PREFIX}as" | ||
59 | export LD = "${HOST_PREFIX}ld" | ||
60 | export NM = "${HOST_PREFIX}nm" | ||
61 | export RANLIB = "${HOST_PREFIX}ranlib" | ||
62 | export OBJCOPY = "${HOST_PREFIX}objcopy" | ||
63 | export OBJDUMP = "${HOST_PREFIX}objdump" | ||
64 | |||
65 | export AR_FOR_TARGET = "${TARGET_PREFIX}ar" | ||
66 | export AS_FOR_TARGET = "${TARGET_PREFIX}as" | ||
67 | export LD_FOR_TARGET = "${TARGET_PREFIX}ld" | ||
68 | export NM_FOR_TARGET = "${TARGET_PREFIX}nm" | ||
69 | export RANLIB_FOR_TARGET = "${TARGET_PREFIX}ranlib" | ||
70 | |||
71 | export CC_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc ${HOST_CC_ARCH}" | ||
72 | export CXX_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc ${HOST_CC_ARCH}" | ||
73 | |||
74 | export CC_FOR_BUILD = "${BUILD_CC}" | ||
75 | export CPP_FOR_BUILD = "${BUILD_CPP}" | ||
76 | export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" | ||
77 | |||
78 | export CC = "${CCACHE} ${HOST_PREFIX}gcc ${HOST_CC_ARCH}" | ||
79 | |||
80 | do_configure () { | ||
81 | (cd ${S}; gnu-configize) || die "Failed to run gnu-configize" | ||
82 | oe_runconf | ||
83 | # | ||
84 | # must prime config.cache to ensure the build of libiberty | ||
85 | # | ||
86 | mkdir -p ${B}/build-${BUILD_SYS} | ||
87 | for i in ${CONFIG_SITE}; do | ||
88 | cat $i >> ${B}/build-${BUILD_SYS}/config.cache | ||
89 | done | ||
90 | |||
91 | } | ||
92 | |||
93 | do_stage () { | ||
94 | oe_libinstall -so -a -C opcodes libopcodes ${STAGING_LIBDIR}/ | ||
95 | oe_libinstall -a -C libiberty libiberty ${STAGING_LIBDIR}/ | ||
96 | oe_libinstall -so -a -C bfd libbfd ${STAGING_LIBDIR}/ | ||
97 | install -m 0644 ${S}/include/dis-asm.h ${STAGING_INCDIR}/ | ||
98 | install -m 0644 ${S}/include/symcat.h ${STAGING_INCDIR}/ | ||
99 | install -m 0644 ${S}/include/libiberty.h ${STAGING_INCDIR}/ | ||
100 | install -m 0644 ${S}/include/ansidecl.h ${STAGING_INCDIR}/ | ||
101 | install -m 0644 ${S}/include/bfdlink.h ${STAGING_INCDIR}/ | ||
102 | install -m 0644 bfd/bfd.h ${STAGING_INCDIR}/ | ||
103 | } | ||
104 | |||
105 | do_install () { | ||
106 | autotools_do_install | ||
107 | |||
108 | # We don't really need these, so we'll remove them... | ||
109 | rm -rf ${D}${libdir}/ldscripts | ||
110 | |||
111 | # Fix the /usr/${TARGET_SYS}/bin/* links | ||
112 | for l in ${D}${prefix}/${TARGET_SYS}/bin/*; do | ||
113 | rm -f $l | ||
114 | ln -sf `echo ${prefix}/${TARGET_SYS}/bin \ | ||
115 | | tr -s / \ | ||
116 | | sed -e 's,^/,,' -e 's,[^/]*,..,g'`${bindir}/${TARGET_PREFIX}`basename $l` $l | ||
117 | done | ||
118 | |||
119 | # Install the libiberty header | ||
120 | install -d ${D}${includedir} | ||
121 | install -m 644 ${S}/include/ansidecl.h ${D}${includedir} | ||
122 | install -m 644 ${S}/include/libiberty.h ${D}${includedir} | ||
123 | |||
124 | cd ${D}${bindir} | ||
125 | |||
126 | # Symlinks for ease of running these on the native target | ||
127 | for p in ${TARGET_SYS}-* ; do | ||
128 | ln -sf $p `echo $p | sed -e s,${TARGET_SYS}-,,` | ||
129 | done | ||
130 | } | ||