summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2007-04-27 14:04:42 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2007-04-27 14:04:42 +0000
commit4d4a37609166adb9a86423f346e7a6bd6649da3a (patch)
treefd69946b9bb4e3fff75752884241ee652eb44432 /meta
parent0b01f1f9638018ad4727045b0620a9d5a6d0381a (diff)
downloadpoky-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')
-rw-r--r--meta/packages/binutils/binutils.inc17
-rw-r--r--meta/packages/binutils/binutils_2.16.bb17
-rw-r--r--meta/packages/binutils/binutils_2.17.50.0.5.bb121
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 @@
1DESCRIPTION = "A GNU collection of binary utilities"
2HOMEPAGE = "http://www.gnu.org/software/binutils/"
3SECTION = "devel"
4LICENSE = "GPL"
5
1inherit autotools gettext 6inherit autotools gettext
2 7
3PACKAGES = "${PN} ${PN}-dev ${PN}-doc ${PN}-symlinks" 8PACKAGES += "${PN}-symlinks"
4 9
5FILES_${PN} = " \ 10FILES_${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
36S = "${WORKDIR}/binutils-${PV}"
37B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"
38
31EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \ 39EXTRA_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}"
60do_configure () { 68do_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
65do_stage () { 80do_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 @@
1DESCRIPTION = "A GNU collection of binary utilities" 1require binutils.inc
2HOMEPAGE = "http://www.gnu.org/software/binutils/" 2
3SECTION = "devel" 3PR = "r8"
4LICENSE = "GPL"
5PR = "r7"
6 4
7SRC_URI = \ 5SRC_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
19SRC_URI += "file://binutils-2.16-thumb-trampoline.patch;patch=1" 17SRC_URI += "file://binutils-2.16-thumb-trampoline.patch;patch=1"
20SRC_URI += "file://binutils-2.16-thumb-glue.patch;patch=1" 18SRC_URI += "file://binutils-2.16-thumb-glue.patch;patch=1"
21
22S = "${WORKDIR}/binutils-${PV}"
23B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"
24
25require 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 @@
1DESCRIPTION = "A GNU collection of binary utilities" 1require binutils.inc
2HOMEPAGE = "http://www.gnu.org/software/binutils/"
3SECTION = "devel"
4LICENSE = "GPL"
5 2
6inherit autotools gettext 3PR = "r1"
7
8PACKAGES += "${PN}-symlinks"
9
10FILES_${PN} = " \
11 ${bindir}/${TARGET_PREFIX}* \
12 ${libdir}/lib*-*.so \
13 ${prefix}/${TARGET_SYS}/bin/*"
14
15FILES_${PN}-dev = " \
16 ${includedir} \
17 ${libdir}/*.a \
18 ${libdir}/*.la \
19 ${libdir}/libbfd.so \
20 ${libdir}/libopcodes.so"
21
22FILES_${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
38SRC_URI = "\ 5SRC_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
48S = "${WORKDIR}/binutils-${PV}"
49B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"
50
51EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \
52 --enable-shared"
53
54# This is necessary due to a bug in the binutils Makefiles
55EXTRA_OEMAKE = "configure-build-libiberty all"
56
57export AR = "${HOST_PREFIX}ar"
58export AS = "${HOST_PREFIX}as"
59export LD = "${HOST_PREFIX}ld"
60export NM = "${HOST_PREFIX}nm"
61export RANLIB = "${HOST_PREFIX}ranlib"
62export OBJCOPY = "${HOST_PREFIX}objcopy"
63export OBJDUMP = "${HOST_PREFIX}objdump"
64
65export AR_FOR_TARGET = "${TARGET_PREFIX}ar"
66export AS_FOR_TARGET = "${TARGET_PREFIX}as"
67export LD_FOR_TARGET = "${TARGET_PREFIX}ld"
68export NM_FOR_TARGET = "${TARGET_PREFIX}nm"
69export RANLIB_FOR_TARGET = "${TARGET_PREFIX}ranlib"
70
71export CC_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc ${HOST_CC_ARCH}"
72export CXX_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc ${HOST_CC_ARCH}"
73
74export CC_FOR_BUILD = "${BUILD_CC}"
75export CPP_FOR_BUILD = "${BUILD_CPP}"
76export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
77
78export CC = "${CCACHE} ${HOST_PREFIX}gcc ${HOST_CC_ARCH}"
79
80do_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
93do_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
105do_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}