Merge openembedded@openembedded.bkbits.net:packages
authorChris Larson <clarson@kergoth.com>
Wed, 16 Jun 2004 20:15:16 +0000 (20:15 +0000)
committerChris Larson <clarson@kergoth.com>
Wed, 16 Jun 2004 20:15:16 +0000 (20:15 +0000)
into zelda.tuxnami.org:/home/kergoth/code/packages

2004/06/16 14:59:36-05:00 (none)!kergoth
Add oprofile 0.8 (a system-wide profiler for Linux systems, this .oe is for the userspace apps only).

2004/06/16 14:58:48-05:00 (none)!kergoth
In binutils, enable shared versions of bfd and opcodes, package them, and add a do_stage function.

BKrev: 40d0aa54CbdlMeWnUW9zt8JoBntQAw

binutils/binutils_2.15.90.0.3.oe
oprofile/oprofile-0.8/acinclude.m4 [new file with mode: 0644]
oprofile/oprofile_0.8.oe [new file with mode: 0644]

index b074c07..d75da80 100644 (file)
@@ -7,11 +7,15 @@ MAINTAINER = "Gerald Britton <gbritton@doomcom.org>"
 PACKAGES = "${PN} ${PN}-dev ${PN}-doc ${PN}-symlinks"
 
 FILES_${PN} = " \
-       ${bindir}/${TARGET_PREFIX}*"
+       ${bindir}/${TARGET_PREFIX}* \
+       ${libdir}/lib*-*.so"
 
 FILES_${PN}-dev = " \
        ${includedir} \
-       ${libdir}/*.a"
+       ${libdir}/*.a \
+       ${libdir}/*.la \
+       ${libdir}/libbfd.so \
+       ${libdir}/libopcodes.so"
 
 FILES_${PN}-symlinks = " \
        ${bindir}/addr2line \
@@ -44,7 +48,8 @@ B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"
 
 EXTRA_OECONF = "--with-sysroot=${prefix} \
                --disable-nls \
-               --program-prefix=${TARGET_PREFIX}"
+               --program-prefix=${TARGET_PREFIX} \
+               --enable-shared"
 
 # This is necessary due to a bug in the binutils Makefiles
 EXTRA_OEMAKE = "configure-build-libiberty all"
@@ -75,6 +80,18 @@ do_configure () {
        oe_runconf
 }
 
+do_stage () {
+       oe_libinstall -so -a -C opcodes libopcodes ${STAGING_LIBDIR}/
+       oe_libinstall -a -C libiberty libiberty ${STAGING_LIBDIR}/
+       oe_libinstall -so -a -C bfd libbfd ${STAGING_LIBDIR}/
+       install -m 0644 ${S}/include/dis-asm.h ${STAGING_INCDIR}/
+       install -m 0644 ${S}/include/symcat.h ${STAGING_INCDIR}/
+       install -m 0644 ${S}/include/libiberty.h ${STAGING_INCDIR}/
+       install -m 0644 ${S}/include/ansidecl.h ${STAGING_INCDIR}/
+       install -m 0644 ${S}/include/bfdlink.h ${STAGING_INCDIR}/
+       install -m 0644 bfd/bfd.h ${STAGING_INCDIR}/
+}
+
 do_install () {
        autotools_do_install
 
diff --git a/oprofile/oprofile-0.8/acinclude.m4 b/oprofile/oprofile-0.8/acinclude.m4
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/oprofile/oprofile_0.8.oe b/oprofile/oprofile_0.8.oe
new file mode 100644 (file)
index 0000000..e69de29