summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-01-31 21:02:59 +0000
committerRichard Purdie <richard@openedhand.com>2008-01-31 21:02:59 +0000
commitd38751f4e40add5c9ef3c3384e0af2a69a1a0807 (patch)
tree96ff9bc6750b26a068629fc8907e1a175bae2969 /meta/packages/gcc
parentc51985fbd1e3bd406df1c37f927b74e43af71aa8 (diff)
downloadpoky-d38751f4e40add5c9ef3c3384e0af2a69a1a0807.tar.gz
gcc-cross-sdk: Totally rewrite packaging so it consists of a single package. Disable shlibs code causing build breakage. Add useful symlinks to gcc and cc
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3655 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/gcc')
-rw-r--r--meta/packages/gcc/gcc-cross-sdk_3.4.4.bb2
-rw-r--r--meta/packages/gcc/gcc-cross-sdk_4.1.2.bb2
-rw-r--r--meta/packages/gcc/gcc-cross-sdk_csl-arm-2005q3-2.bb2
-rw-r--r--meta/packages/gcc/gcc-package-sdk.inc64
4 files changed, 47 insertions, 23 deletions
diff --git a/meta/packages/gcc/gcc-cross-sdk_3.4.4.bb b/meta/packages/gcc/gcc-cross-sdk_3.4.4.bb
index 038d39040b..4b2c583fcb 100644
--- a/meta/packages/gcc/gcc-cross-sdk_3.4.4.bb
+++ b/meta/packages/gcc/gcc-cross-sdk_3.4.4.bb
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.gnu.org/software/gcc/"
3SECTION = "devel" 3SECTION = "devel"
4LICENSE = "GPL" 4LICENSE = "GPL"
5require gcc_${PV}.bb 5require gcc_${PV}.bb
6PR = "r2" 6PR = "r3"
7 7
8inherit sdk 8inherit sdk
9 9
diff --git a/meta/packages/gcc/gcc-cross-sdk_4.1.2.bb b/meta/packages/gcc/gcc-cross-sdk_4.1.2.bb
index 85ff74ec33..23327c06d6 100644
--- a/meta/packages/gcc/gcc-cross-sdk_4.1.2.bb
+++ b/meta/packages/gcc/gcc-cross-sdk_4.1.2.bb
@@ -1,4 +1,4 @@
1PR = "r5" 1PR = "r6"
2 2
3inherit sdk 3inherit sdk
4 4
diff --git a/meta/packages/gcc/gcc-cross-sdk_csl-arm-2005q3-2.bb b/meta/packages/gcc/gcc-cross-sdk_csl-arm-2005q3-2.bb
index 15ef0273b0..fa5794b7b2 100644
--- a/meta/packages/gcc/gcc-cross-sdk_csl-arm-2005q3-2.bb
+++ b/meta/packages/gcc/gcc-cross-sdk_csl-arm-2005q3-2.bb
@@ -1,4 +1,4 @@
1PR = "r0" 1PR = "r1"
2 2
3inherit sdk 3inherit sdk
4 4
diff --git a/meta/packages/gcc/gcc-package-sdk.inc b/meta/packages/gcc/gcc-package-sdk.inc
index e106abbd40..635ab6d1f4 100644
--- a/meta/packages/gcc/gcc-package-sdk.inc
+++ b/meta/packages/gcc/gcc-package-sdk.inc
@@ -1,20 +1,58 @@
1# Packages emitted by our gcc-cross builds.
2# 1#
2# Note gcc-package.inc was already included before us.
3#
4# We override PACKAGES and FILES to change the packaging
5#
6
3INHIBIT_PACKAGE_STRIP ?= "" 7INHIBIT_PACKAGE_STRIP ?= ""
4HAS_G2C ?= "yes" 8HAS_G2C ?= "yes"
5HAS_GFORTRAN ?= "no" 9HAS_GFORTRAN ?= "no"
6OLD_INHIBIT_PACKAGE_STRIP := "${INHIBIT_PACKAGE_STRIP}" 10OLD_INHIBIT_PACKAGE_STRIP := "${INHIBIT_PACKAGE_STRIP}"
7INHIBIT_PACKAGE_STRIP = "1" 11INHIBIT_PACKAGE_STRIP = "1"
8 12
9python do_package() { 13# Having anything auto depending on gcc-cross-sdk is a really bad idea...
10 if bb.data.getVar('DEBIAN_NAMES', d, 1): 14EXCLUDE_FROM_SHLIBS = "1"
11 bb.data.setVar('PKG_libgcc', 'libgcc1', d)
12 bb.build.exec_func('package_do_package', d)
13}
14 15
16PACKAGES = "${PN} ${PN}-doc"
17
18FILES_${PN} = "\
19 ${bindir}/* \
20 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1 \
21 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/collect2 \
22 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/f771 \
23 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1plus \
24 ${gcclibdir}/${TARGET_SYS}/${BINV}/*.o \
25 ${gcclibdir}/${TARGET_SYS}/${BINV}/specs \
26 ${gcclibdir}/${TARGET_SYS}/${BINV}/lib* \
27 ${gcclibdir}/${TARGET_SYS}/${BINV}/include \
28 ${includedir}/c++/${BINV} \
29 ${prefix}/${TARGET_SYS}/bin/* \
30 ${prefix}/${TARGET_SYS}/lib/* \
31 "
15do_install () { 32do_install () {
16 oe_runmake 'DESTDIR=${D}' install 33 oe_runmake 'DESTDIR=${D}' install
17 34
35 # Cleanup some of the ${libdir}{,exec}/gcc stuff ...
36 rm -r ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/install-tools
37 rm -r ${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/install-tools
38
39 # We care about g++ not c++
40 rm -f ${D}${bindir}/*c++
41
42 # We don't care about the gcc-<version> copies
43 rm -f ${D}${bindir}/*gcc-?.?*
44
45 # We use libiberty from binutils
46 rm -f ${D}${prefix}/${TARGET_SYS}/lib/libiberty.a
47 rm -f ${D}${libdir}/libiberty.a
48
49 # Create the ${prefix}/${TARGET_SYS}/bin/* symlinks
50 install -d ${D}${prefix}/${TARGET_SYS}/bin/
51 for l in ${D}${bindir}/*; do
52 ln -sf "${bindir}/`basename $l`" "${D}${prefix}/${TARGET_SYS}/bin/`basename $l | sed -e 's,${TARGET_PREFIX},,'`"
53 done
54 ln -sf "${bindir}/${TARGET_PREFIX}gcc" "${D}${prefix}/${TARGET_SYS}/bin/cc"
55
18 # Manually run the target stripper since we won't get it run by 56 # Manually run the target stripper since we won't get it run by
19 # the packaging. 57 # the packaging.
20 if [ "x${OLD_INHIBIT_PACKAGE_STRIP}" != "x1" ]; then 58 if [ "x${OLD_INHIBIT_PACKAGE_STRIP}" != "x1" ]; then
@@ -24,17 +62,3 @@ do_install () {
24 fi 62 fi
25} 63}
26 64
27FILES_libgcc = "${prefix}/${TARGET_SYS}/lib/libgcc*.so.*"
28FILES_libgcc-dev = "${prefix}/${TARGET_SYS}/lib/libgcc*.so"
29
30FILES_libstdc++ = "${prefix}/${TARGET_SYS}/lib/libstdc++.so.*"
31FILES_libstdc++-dev = "${includedir}/c++/${BINV} \
32 ${prefix}/${TARGET_SYS}/lib/libstdc++.so \
33 ${prefix}/${TARGET_SYS}/lib/libstdc++.a \
34 ${prefix}/${TARGET_SYS}/lib/libsupc++.a"
35
36FILES_libmudflap = "${prefix}/${TARGET_SYS}/lib/libmudflap*.so.*"
37FILES_libmudflap-dev = "${prefix}/${TARGET_SYS}/lib/libmudflap*.so \
38 ${prefix}/${TARGET_SYS}/lib/libmudflap*.a"
39
40RRECOMMENDS_${PN} += "libgcc libgcc-dev cpp g++ libstdc++ libstdc++-dev"