summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openembedded/packages/binutils/binutils-cross_cvs.bb32
-rw-r--r--openembedded/packages/binutils/binutils_cvs.bb122
-rw-r--r--openembedded/packages/glibc/glibc-initial_cvs.bb46
-rw-r--r--openembedded/packages/glibc/glibc-intermediate_cvs.bb14
-rw-r--r--openembedded/packages/glibc/glibc_cvs.bb167
5 files changed, 0 insertions, 381 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 @@
1SECTION = "devel"
2include binutils_cvs.bb
3inherit cross
4DEPENDS += "flex-native bison-native"
5PROVIDES = "virtual/${TARGET_PREFIX}binutils"
6FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-cvs"
7PACKAGES = ""
8EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \
9 --program-prefix=${TARGET_PREFIX}"
10
11do_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
30do_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 @@
1SECTION = "devel"
2inherit autotools gettext
3
4DESCRIPTION = "A GNU collection of binary utilities"
5HOMEPAGE = "http://www.gnu.org/software/binutils/"
6LICENSE = "GPL"
7MAINTAINER = "Gerald Britton <gbritton@doomcom.org>"
8FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-cvs"
9PV = "0.0+cvs${SRCDATE}"
10PR = "r2"
11
12PACKAGES = "${PN} ${PN}-dev ${PN}-doc ${PN}-symlinks"
13
14FILES_${PN} = " \
15 ${bindir}/${TARGET_PREFIX}* \
16 ${libdir}/lib*-*.so \
17 ${prefix}/${TARGET_SYS}/bin/*"
18
19FILES_${PN}-dev = " \
20 ${includedir} \
21 ${libdir}/*.a \
22 ${libdir}/*.la \
23 ${libdir}/libbfd.so \
24 ${libdir}/libopcodes.so"
25
26FILES_${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
42SRC_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
50S = "${WORKDIR}/src"
51B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"
52
53EXTRA_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
58EXTRA_OEMAKE = "configure-build-libiberty all"
59
60export AR = "${HOST_PREFIX}ar"
61export AS = "${HOST_PREFIX}as"
62export LD = "${HOST_PREFIX}ld"
63export NM = "${HOST_PREFIX}nm"
64export RANLIB = "${HOST_PREFIX}ranlib"
65export OBJCOPY = "${HOST_PREFIX}objcopy"
66export OBJDUMP = "${HOST_PREFIX}objdump"
67
68export AR_FOR_TARGET = "${TARGET_PREFIX}ar"
69export AS_FOR_TARGET = "${TARGET_PREFIX}as"
70export LD_FOR_TARGET = "${TARGET_PREFIX}ld"
71export NM_FOR_TARGET = "${TARGET_PREFIX}nm"
72export RANLIB_FOR_TARGET = "${TARGET_PREFIX}ranlib"
73
74export CC_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc"
75export CXX_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc"
76
77export CC_FOR_BUILD = "${BUILD_CC}"
78
79export CC = "${CCACHE} ${HOST_PREFIX}gcc"
80
81do_configure () {
82 (cd ${S}; gnu-configize) || die "Failed to run gnu-configize"
83 oe_runconf
84}
85
86do_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
98do_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}
diff --git a/openembedded/packages/glibc/glibc-initial_cvs.bb b/openembedded/packages/glibc/glibc-initial_cvs.bb
deleted file mode 100644
index 422e8b7110..0000000000
--- a/openembedded/packages/glibc/glibc-initial_cvs.bb
+++ /dev/null
@@ -1,46 +0,0 @@
1SECTION = "libs"
2include glibc_${PV}.bb
3
4DEPENDS = "linux-libc-headers"
5PROVIDES = "virtual/${TARGET_PREFIX}libc-initial"
6FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/glibc-cvs', '${FILE_DIRNAME}/glibc', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}"
7
8PACKAGES = ""
9
10do_configure () {
11 sed -ie 's,{ (exit 1); exit 1; }; },{ (exit 0); }; },g' ${S}/configure
12 chmod +x ${S}/configure
13 CC="${BUILD_CC}" CPP="${BUILD_CPP}" LD="${BUILD_LD}" ${S}/configure --host=${TARGET_SYS} --build=${BUILD_SYS} \
14 --without-cvs --disable-sanity-checks \
15 --with-headers=${CROSS_DIR}/${TARGET_SYS}/include \
16 --enable-hacker-mode
17 if grep -q GLIBC_2.3 ${S}/ChangeLog; then
18 # glibc-2.3.x passes cross options to $(CC) when generating errlist-compat.c, which fails without a real cross-compiler.
19 # Fortunately, we don't need errlist-compat.c, since we just need .h files,
20 # so work around this by creating a fake errlist-compat.c and satisfying its dependencies.
21 # Another workaround might be to tell configure to not use any cross options to $(CC).
22 # The real fix would be to get install-headers to not generate errlist-compat.c.
23 make sysdeps/gnu/errlist.c
24 mkdir -p stdio-common
25 touch stdio-common/errlist-compat.c
26 fi
27}
28
29do_compile () {
30 :
31}
32
33do_stage () {
34 oe_runmake cross-compiling=yes install_root=${CROSS_DIR}/${TARGET_SYS} prefix="" install-headers
35
36 # Two headers -- stubs.h and features.h -- aren't installed by install-headers,
37 # so do them by hand. We can tolerate an empty stubs.h for the moment.
38 # See e.g. http://gcc.gnu.org/ml/gcc/2002-01/msg00900.html
39 mkdir -p ${CROSS_DIR}/${TARGET_SYS}/include/gnu
40 touch ${CROSS_DIR}/${TARGET_SYS}/include/gnu/stubs.h
41 cp ${S}/include/features.h ${CROSS_DIR}/${TARGET_SYS}/include/features.h
42}
43
44do_install () {
45 :
46}
diff --git a/openembedded/packages/glibc/glibc-intermediate_cvs.bb b/openembedded/packages/glibc/glibc-intermediate_cvs.bb
deleted file mode 100644
index 11e78a5d59..0000000000
--- a/openembedded/packages/glibc/glibc-intermediate_cvs.bb
+++ /dev/null
@@ -1,14 +0,0 @@
1SECTION = "libs"
2include glibc_${PV}.bb
3
4DEFAULT_PREFERENCE = "-1"
5
6do_install () {
7 :
8}
9
10PACKAGES = ""
11PROVIDES = "virtual/${TARGET_PREFIX}libc-for-gcc"
12DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial"
13GLIBC_ADDONS = "linuxthreads"
14GLIBC_EXTRA_OECONF = ""
diff --git a/openembedded/packages/glibc/glibc_cvs.bb b/openembedded/packages/glibc/glibc_cvs.bb
deleted file mode 100644
index 0390b87535..0000000000
--- a/openembedded/packages/glibc/glibc_cvs.bb
+++ /dev/null
@@ -1,167 +0,0 @@
1DESCRIPTION = "GNU C Library"
2HOMEPAGE = "http://www.gnu.org/software/libc/libc.html"
3LICENSE = "LGPL"
4SECTION = "libs"
5PRIORITY = "required"
6MAINTAINER = "Phil Blundell <pb@handhelds.org>"
7
8FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/glibc-cvs-2.3.5"
9PR = "r0"
10PV = "2.3.5+cvs${SRCDATE}"
11
12GLIBC_ADDONS ?= "ports,linuxthreads"
13GLIBC_EXTRA_OECONF ?= ""
14
15DEFAULT_PREFERENCE = "-1"
16
17#
18# For now, we will skip building of a gcc package if it is a uclibc one
19# and our build is not a uclibc one, and we skip a glibc one if our build
20# is a uclibc build.
21#
22# See the note in gcc/gcc_3.4.0.oe
23#
24
25python __anonymous () {
26 import bb, re
27 uc_os = (re.match('.*uclibc$', bb.data.getVar('TARGET_OS', d, 1)) != None)
28 if uc_os:
29 raise bb.parse.SkipPackage("incompatible with target %s" %
30 bb.data.getVar('TARGET_OS', d, 1))
31}
32
33# nptl needs unwind support in gcc, which can't be built without glibc.
34PROVIDES = "virtual/libc ${@['virtual/${TARGET_PREFIX}libc-for-gcc', '']['nptl' in '${GLIBC_ADDONS}']}"
35PROVIDES += "virtual/libintl virtual/libiconv"
36DEPENDS = "${@['virtual/${TARGET_PREFIX}gcc-initial', 'virtual/${TARGET_PREFIX}gcc']['nptl' in '${GLIBC_ADDONS}']} linux-libc-headers"
37INHIBIT_DEFAULT_DEPS = "1"
38RDEPENDS_${PN}-dev = "linux-libc-headers-dev"
39
40# file://noinfo.patch;patch=1
41# file://ldconfig.patch;patch=1;pnum=0
42# file://arm-no-hwcap.patch;patch=1;pnum=0 \
43# file://arm-memcpy.patch;patch=1;pnum=0 \
44# file://arm-machine-gmon.patch;patch=1;pnum=0 \
45# \
46# file://arm-ioperm.patch;patch=1;pnum=0 \
47# file://ldd.patch;patch=1;pnum=0 \
48SRC_URI = "cvs://anoncvs@sources.redhat.com/cvs/glibc;module=libc \
49 cvs://anoncvs@sources.redhat.com/cvs/glibc;module=ports \
50 file://arm-audit.patch;patch=1 \
51 file://arm-audit2.patch;patch=1 \
52 file://arm-memcpy.patch;patch=1 \
53 file://arm-longlong.patch;patch=1;pnum=0 \
54 file://fhs-linux-paths.patch;patch=1 \
55 file://dl-cache-libcmp.patch;patch=1 \
56 file://ldsocache-varrun.patch;patch=1 \
57 file://etc/ld.so.conf \
58 file://generate-supported.mk"
59
60# seems to fail on tls platforms
61SRC_URI_append_arm = " file://dyn-ldconfig-20041128.patch;patch=1"
62
63S = "${WORKDIR}/libc"
64B = "${WORKDIR}/build-${TARGET_SYS}"
65
66inherit autotools
67
68EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \
69 --without-cvs --disable-profile --disable-debug --without-gd \
70 --enable-clocale=gnu \
71 --enable-add-ons=${GLIBC_ADDONS} \
72 --with-headers=${CROSS_DIR}/${TARGET_SYS}/include \
73 --without-selinux \
74 ${GLIBC_EXTRA_OECONF}"
75
76EXTRA_OECONF += "${@get_glibc_fpu_setting(bb, d)}"
77
78def get_glibc_fpu_setting(bb, d):
79 if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
80 return "--without-fp"
81 return ""
82
83do_munge() {
84 # Integrate ports into tree
85 mv ${WORKDIR}/ports ${S}
86}
87
88addtask munge before do_patch after do_unpack
89
90do_configure () {
91# override this function to avoid the autoconf/automake/aclocal/autoheader
92# calls for now
93# don't pass CPPFLAGS into configure, since it upsets the kernel-headers
94# version check and doesn't really help with anything
95 if [ -z "`which rpcgen`" ]; then
96 echo "rpcgen not found. Install glibc-devel."
97 exit 1
98 fi
99 (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
100 CPPFLAGS="" oe_runconf
101}
102
103rpcsvc = "bootparam_prot.x nlm_prot.x rstat.x \
104 yppasswd.x klm_prot.x rex.x sm_inter.x mount.x \
105 rusers.x spray.x nfs_prot.x rquota.x key_prot.x"
106
107do_compile () {
108 # -Wl,-rpath-link <staging>/lib in LDFLAGS can cause breakage if another glibc is in staging
109 unset LDFLAGS
110 base_do_compile
111 (
112 cd ${S}/sunrpc/rpcsvc
113 for r in ${rpcsvc}; do
114 h=`echo $r|sed -e's,\.x$,.h,'`
115 rpcgen -h $r -o $h || oewarn "unable to generate header for $r"
116 done
117 )
118}
119
120do_stage() {
121 rm -f ${STAGING_LIBDIR}/libc.so.6
122 oe_runmake 'install_root=${STAGING_DIR}/${HOST_SYS}' \
123 'includedir=/include' 'libdir=/lib' 'slibdir=/lib' \
124 '${STAGING_LIBDIR}/libc.so.6' \
125 install-headers install-lib
126
127 install -d ${STAGING_INCDIR}/gnu \
128 ${STAGING_INCDIR}/bits \
129 ${STAGING_INCDIR}/rpcsvc
130 install -m 0644 ${S}/include/gnu/stubs.h ${STAGING_INCDIR}/gnu/
131 install -m 0644 ${B}/bits/stdio_lim.h ${STAGING_INCDIR}/bits/
132 install -m 0644 misc/syscall-list.h ${STAGING_INCDIR}/bits/syscall.h
133 for r in ${rpcsvc}; do
134 h=`echo $r|sed -e's,\.x$,.h,'`
135 install -m 0644 ${S}/sunrpc/rpcsvc/$h ${STAGING_INCDIR}/rpcsvc/
136 done
137 for i in libc.a libc_pic.a libc_nonshared.a; do
138 install -m 0644 ${B}/$i ${STAGING_LIBDIR}/ || die "failed to install $i"
139 done
140 echo 'GROUP ( libpthread.so.0 libpthread_nonshared.a )' > ${STAGING_LIBDIR}/libpthread.so
141 echo 'GROUP ( libc.so.6 libc_nonshared.a )' > ${STAGING_LIBDIR}/libc.so
142
143 rm -f ${CROSS_DIR}/${TARGET_SYS}/lib/libc.so.6
144 oe_runmake 'install_root=${CROSS_DIR}/${TARGET_SYS}' \
145 'includedir=/include' 'libdir=/lib' 'slibdir=/lib' \
146 '${CROSS_DIR}/${TARGET_SYS}/lib/libc.so.6' \
147 install-headers install-lib
148
149 install -d ${CROSS_DIR}/${TARGET_SYS}/include/gnu \
150 ${CROSS_DIR}/${TARGET_SYS}/include/bits \
151 ${CROSS_DIR}/${TARGET_SYS}/include/rpcsvc
152 install -m 0644 ${S}/include/gnu/stubs.h ${CROSS_DIR}/${TARGET_SYS}/include/gnu/
153 install -m 0644 ${B}/bits/stdio_lim.h ${CROSS_DIR}/${TARGET_SYS}/include/bits/
154 install -m 0644 misc/syscall-list.h ${CROSS_DIR}/${TARGET_SYS}/include/bits/syscall.h
155 for r in ${rpcsvc}; do
156 h=`echo $r|sed -e's,\.x$,.h,'`
157 install -m 0644 ${S}/sunrpc/rpcsvc/$h ${CROSS_DIR}/${TARGET_SYS}/include/rpcsvc/
158 done
159
160 for i in libc.a libc_pic.a libc_nonshared.a; do
161 install -m 0644 ${B}/$i ${CROSS_DIR}/${TARGET_SYS}/lib/ || die "failed to install $i"
162 done
163 echo 'GROUP ( libpthread.so.0 libpthread_nonshared.a )' > ${CROSS_DIR}/${TARGET_SYS}/lib/libpthread.so
164 echo 'GROUP ( libc.so.6 libc_nonshared.a )' > ${CROSS_DIR}/${TARGET_SYS}/lib/libc.so
165}
166
167include glibc-package.bbclass