diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-devtools/mklibs | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-devtools/mklibs')
4 files changed, 85 insertions, 0 deletions
diff --git a/meta/recipes-devtools/mklibs/files/ac_init_fix.patch b/meta/recipes-devtools/mklibs/files/ac_init_fix.patch new file mode 100644 index 0000000000..422af10420 --- /dev/null +++ b/meta/recipes-devtools/mklibs/files/ac_init_fix.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | Get the version of mklibs by simpler means. The MKLIBS_VERSION string in the | ||
2 | configure.ac file is replaced with real version string by the | ||
3 | do_configure_prepend() function from the recipe .bb file. | ||
4 | |||
5 | Upstream-Status: Inappropriate [configuration] | ||
6 | |||
7 | Nitin A Kamble <nitin.a.kamble@intel.com> | ||
8 | Date: 2011/01/24 | ||
9 | |||
10 | Index: mklibs/configure.ac | ||
11 | =================================================================== | ||
12 | --- mklibs.orig/configure.ac 2010-02-21 17:34:56.000000000 -0800 | ||
13 | +++ mklibs/configure.ac 2011-01-24 18:52:19.943242079 -0800 | ||
14 | @@ -1,4 +1,4 @@ | ||
15 | -AC_INIT([mklibs],m4_esyscmd(dpkg-parsechangelog | perl -ne 'print $1 if m/^Version: (.*)$/;')) | ||
16 | +AC_INIT([mklibs], MKLIBS_VERSION) | ||
17 | AM_INIT_AUTOMAKE([foreign no-define]) | ||
18 | AC_CONFIG_HEADERS([config.h]) | ||
19 | AM_MAINTAINER_MODE | ||
diff --git a/meta/recipes-devtools/mklibs/files/fix_STT_GNU_IFUNC.patch b/meta/recipes-devtools/mklibs/files/fix_STT_GNU_IFUNC.patch new file mode 100644 index 0000000000..d27a48916d --- /dev/null +++ b/meta/recipes-devtools/mklibs/files/fix_STT_GNU_IFUNC.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | The libc6-dev in Ubuntu 9.04 is so old that the elf.h doesn't | ||
2 | define STT_GNU_IFUNC, so we have to define it ourselves. | ||
3 | |||
4 | Upstream-Status: Inappropriate [other] - old release specific, maybe removable | ||
5 | |||
6 | -- Dexuan Cui (dexuan.cui@intel.com) Feb 16, 2011. | ||
7 | |||
8 | diff --git a/src/mklibs-readelf/main.cpp b/src/mklibs-readelf/main.cpp | ||
9 | index 2444c39..56d93f8 100644 | ||
10 | --- a/src/mklibs-readelf/main.cpp | ||
11 | +++ b/src/mklibs-readelf/main.cpp | ||
12 | @@ -6,6 +6,14 @@ | ||
13 | #include <vector> | ||
14 | |||
15 | #include <elf.h> | ||
16 | +/* | ||
17 | + * The /usr/include/elf.h in some distributions(like Ubuntu 9.04) doesn't | ||
18 | + * define the macro. We need to define it here. | ||
19 | + */ | ||
20 | +#ifndef STT_GNU_IFUNC | ||
21 | +#define STT_GNU_IFUNC 10 /* Symbol is indirect code object */ | ||
22 | +#endif | ||
23 | + | ||
24 | #include <getopt.h> | ||
25 | |||
26 | #include "elf.hpp" | ||
diff --git a/meta/recipes-devtools/mklibs/files/sysrooted-ldso.patch b/meta/recipes-devtools/mklibs/files/sysrooted-ldso.patch new file mode 100644 index 0000000000..75500a029a --- /dev/null +++ b/meta/recipes-devtools/mklibs/files/sysrooted-ldso.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | In cross builds we will have to respect sysroot | ||
2 | |||
3 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
4 | Upstream-Status: Pending | ||
5 | |||
6 | Index: mklibs-0.1.39/src/mklibs | ||
7 | =================================================================== | ||
8 | --- mklibs-0.1.39.orig/src/mklibs 2014-03-01 18:25:36.000000000 +0000 | ||
9 | +++ mklibs-0.1.39/src/mklibs 2014-10-19 00:51:46.813534596 +0000 | ||
10 | @@ -495,7 +495,7 @@ | ||
11 | present_symbols = {} | ||
12 | checked_libs = small_libs | ||
13 | checked_libs.extend(available_libs) | ||
14 | - checked_libs.append(ldlib) | ||
15 | + checked_libs.append(sysroot + ldlib) | ||
16 | for lib in checked_libs: | ||
17 | for symbol in provided_symbols(lib): | ||
18 | debug(DEBUG_SPAM, "present_symbols adding %s" % symbol) | ||
diff --git a/meta/recipes-devtools/mklibs/mklibs-native_0.1.39.bb b/meta/recipes-devtools/mklibs/mklibs-native_0.1.39.bb new file mode 100644 index 0000000000..9885561fe3 --- /dev/null +++ b/meta/recipes-devtools/mklibs/mklibs-native_0.1.39.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | SUMMARY = "Shared library optimisation tool" | ||
2 | DESCRIPTION = "mklibs produces cut-down shared libraries that contain only the routines required by a particular set of executables." | ||
3 | HOMEPAGE = "https://launchpad.net/mklibs" | ||
4 | SECTION = "devel" | ||
5 | LICENSE = "GPLv2+" | ||
6 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=98d31037b13d896e33890738ef01af64" | ||
7 | DEPENDS = "python-native dpkg-native" | ||
8 | |||
9 | SRC_URI = "http://ftp.de.debian.org/debian/pool/main/m/mklibs/${BPN}_${PV}.tar.xz \ | ||
10 | file://ac_init_fix.patch\ | ||
11 | file://fix_STT_GNU_IFUNC.patch\ | ||
12 | file://sysrooted-ldso.patch \ | ||
13 | " | ||
14 | |||
15 | SRC_URI[md5sum] = "38a579a531401eb76f4bab4ccfb774a2" | ||
16 | SRC_URI[sha256sum] = "fa2881ab4fe72b0504878357f1fc6b17920459b56e8a60dfb083ca28fb64e733" | ||
17 | |||
18 | inherit autotools gettext native pythonnative | ||
19 | |||
20 | do_configure_prepend() { | ||
21 | sed "s+MKLIBS_VERSION+${PV}+" ${S}/configure.ac | ||
22 | } | ||