From 4f19548bfb5e9259eb0e38bbe3886f139d6b1f0a Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Fri, 23 Jul 2010 08:18:07 -0700 Subject: prelink: Add prelink-native Add the new cross prelink support as the prelink-native integration. Set the prelinker to use the prelink-cross.git repository as the upstream. Note: libiberty.a is required on the host at this time Signed-off-by: Mark Hatle --- meta/packages/prelink/prelink_20100106.bb | 45 ---------------------------- meta/packages/prelink/prelink_git.bb | 50 +++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 45 deletions(-) delete mode 100644 meta/packages/prelink/prelink_20100106.bb create mode 100644 meta/packages/prelink/prelink_git.bb (limited to 'meta/packages') diff --git a/meta/packages/prelink/prelink_20100106.bb b/meta/packages/prelink/prelink_20100106.bb deleted file mode 100644 index a84aaa267..000000000 --- a/meta/packages/prelink/prelink_20100106.bb +++ /dev/null @@ -1,45 +0,0 @@ -SECTION = "devel" -DEPENDS = "elfutils" -DESCRIPTION = " The prelink package contains a utility which modifies ELF shared libraries \ -and executables, so that far fewer relocations need to be resolved at \ -runtime and thus programs come up faster." -LICENSE = "GPL" -PR = "r0" - -SRC_URI = "http://people.redhat.com/jakub/prelink/prelink-${PV}.tar.bz2 \ - file://prelink.conf \ - file://prelink.cron.daily \ - file://prelink.default" - -TARGET_OS_ORIG := "${TARGET_OS}" -OVERRIDES_append = ":${TARGET_OS_ORIG}" - -S = "${WORKDIR}/prelink" - -EXTRA_OECONF = "--disable-64bit" - -inherit autotools - -do_install_append () { - install -d ${D}${sysconfdir}/cron.daily ${D}${sysconfdir}/default - install -m 0644 ${WORKDIR}/prelink.conf ${D}${sysconfdir}/prelink.conf - install -m 0644 ${WORKDIR}/prelink.cron.daily ${D}${sysconfdir}/cron.daily/prelink - install -m 0644 ${WORKDIR}/prelink.default ${D}${sysconfdir}/default/prelink -} - -pkg_postinst_prelink() { -#!/bin/sh - -if [ "x$D" != "x" ]; then - exit 1 -fi - -prelink -a -} - -pkg_postrm_prelink() { -#!/bin/sh - -prelink -au -} - diff --git a/meta/packages/prelink/prelink_git.bb b/meta/packages/prelink/prelink_git.bb new file mode 100644 index 000000000..06078ed68 --- /dev/null +++ b/meta/packages/prelink/prelink_git.bb @@ -0,0 +1,50 @@ +SECTION = "devel" +# Need binutils for libiberty.a +DEPENDS = "elfutils binutils" +DESCRIPTION = " The prelink package contains a utility which modifies ELF shared libraries \ +and executables, so that far fewer relocations need to be resolved at \ +runtime and thus programs come up faster." +LICENSE = "GPLv2" +PV = "1.0+git${SRCPV}" +PR = "r0" + +SRC_URI = "git://git.pokylinux.org/prelink-cross.git;protocol=git \ + file://prelink.conf \ + file://prelink.cron.daily \ + file://prelink.default" + +TARGET_OS_ORIG := "${TARGET_OS}" +OVERRIDES_append = ":${TARGET_OS_ORIG}" + +S = "${WORKDIR}/git/trunk" + +inherit autotools + +BBCLASSEXTEND = "native" + +EXTRA_OECONF = "--disable-selinux --with-pkgversion=${PV}-${PR} \ + --with-bugurl=http://bugzilla.pokylinux.org/" + +do_install_append () { + install -d ${D}${sysconfdir}/cron.daily ${D}${sysconfdir}/default + install -m 0644 ${WORKDIR}/prelink.conf ${D}${sysconfdir}/prelink.conf + install -m 0644 ${WORKDIR}/prelink.cron.daily ${D}${sysconfdir}/cron.daily/prelink + install -m 0644 ${WORKDIR}/prelink.default ${D}${sysconfdir}/default/prelink +} + +pkg_postinst_prelink() { +#!/bin/sh + +if [ "x$D" != "x" ]; then + exit 1 +fi + +prelink -a +} + +pkg_postrm_prelink() { +#!/bin/sh + +prelink -au +} + -- cgit v1.2.3