diff options
author | Chong Lu <Chong.Lu@windriver.com> | 2014-08-19 17:38:32 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2014-09-08 16:36:08 -0400 |
commit | ab6a7fa8dd79754b7c464d6637ce8ce62eb7af7e (patch) | |
tree | 86177aa88c794375e7908550bfd3575ea1ba2de1 /meta-networking | |
parent | 46824934fa4ac6a61bebe2c92faa31c0a8e85392 (diff) | |
download | meta-openembedded-ab6a7fa8dd79754b7c464d6637ce8ce62eb7af7e.tar.gz |
memcached: add knob to detect whether hugetlbfs are checked
Add knob to detect whether hugetlbfs are checked or not.
This patch fixed the error:
ld: cannot find -lhugetlbfs
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking')
-rw-r--r-- | meta-networking/recipes-support/memcached/memcached/memcached-add-hugetlbfs-check.patch | 32 | ||||
-rw-r--r-- | meta-networking/recipes-support/memcached/memcached_1.4.17.bb | 13 |
2 files changed, 42 insertions, 3 deletions
diff --git a/meta-networking/recipes-support/memcached/memcached/memcached-add-hugetlbfs-check.patch b/meta-networking/recipes-support/memcached/memcached/memcached-add-hugetlbfs-check.patch new file mode 100644 index 000000000..544b840fe --- /dev/null +++ b/meta-networking/recipes-support/memcached/memcached/memcached-add-hugetlbfs-check.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | memcached: add knob to detect whether hugetlbfs are checked | ||
2 | |||
3 | Add knob to detect whether hugetlbfs are checked or not. | ||
4 | |||
5 | Upstream-Status: Pending | ||
6 | |||
7 | Signed-off-by: Chong Lu <Chong.Lu@windriver.com> | ||
8 | --- | ||
9 | configure.ac | 7 ++++++- | ||
10 | 1 file changed, 6 insertions(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/configure.ac b/configure.ac | ||
13 | index 7f22f21..21691b9 100644 | ||
14 | --- a/configure.ac | ||
15 | +++ b/configure.ac | ||
16 | @@ -314,7 +314,12 @@ fi | ||
17 | dnl ---------------------------------------------------------------------------- | ||
18 | |||
19 | AC_SEARCH_LIBS(umem_cache_create, umem) | ||
20 | -AC_SEARCH_LIBS(gethugepagesizes, hugetlbfs) | ||
21 | +AC_ARG_ENABLE(hugetlbfs, | ||
22 | + [AS_HELP_STRING([--enable-hugetlbfs],[Enable hugetlbfs])]) | ||
23 | + | ||
24 | +if test "x$enable_hugetlbfs" = "xyes"; then | ||
25 | + AC_SEARCH_LIBS(gethugepagesizes, hugetlbfs) | ||
26 | +fi | ||
27 | |||
28 | AC_HEADER_STDBOOL | ||
29 | AH_BOTTOM([#if HAVE_STDBOOL_H | ||
30 | -- | ||
31 | 1.8.3.4 | ||
32 | |||
diff --git a/meta-networking/recipes-support/memcached/memcached_1.4.17.bb b/meta-networking/recipes-support/memcached/memcached_1.4.17.bb index 5d37df08a..e61bc74cb 100644 --- a/meta-networking/recipes-support/memcached/memcached_1.4.17.bb +++ b/meta-networking/recipes-support/memcached/memcached_1.4.17.bb | |||
@@ -18,7 +18,11 @@ DEPENDS += "libevent" | |||
18 | RDEPENDS_${PN} += "perl perl-module-posix perl-module-autoloader perl-module-tie-hash" | 18 | RDEPENDS_${PN} += "perl perl-module-posix perl-module-autoloader perl-module-tie-hash" |
19 | 19 | ||
20 | SRC_URI = "http://www.memcached.org/files/${BP}.tar.gz \ | 20 | SRC_URI = "http://www.memcached.org/files/${BP}.tar.gz \ |
21 | file://configure.patch" | 21 | file://configure.patch \ |
22 | file://memcached-add-hugetlbfs-check.patch" | ||
23 | |||
24 | # set the same COMPATIBLE_HOST as libhugetlbfs | ||
25 | COMPATIBLE_HOST = '(i.86|x86_64|powerpc|powerpc64|arm).*-linux' | ||
22 | 26 | ||
23 | SRC_URI[md5sum] = "46402dfbd7faadf6182283dbbd18b1a6" | 27 | SRC_URI[md5sum] = "46402dfbd7faadf6182283dbbd18b1a6" |
24 | SRC_URI[sha256sum] = "d9173ef6d99ba798c982ea4566cb4f0e64eb23859fdbf9926a89999d8cdc0458" | 28 | SRC_URI[sha256sum] = "d9173ef6d99ba798c982ea4566cb4f0e64eb23859fdbf9926a89999d8cdc0458" |
@@ -26,11 +30,14 @@ SRC_URI[sha256sum] = "d9173ef6d99ba798c982ea4566cb4f0e64eb23859fdbf9926a89999d8c | |||
26 | python __anonymous () { | 30 | python __anonymous () { |
27 | endianness = d.getVar('SITEINFO_ENDIANNESS', True) | 31 | endianness = d.getVar('SITEINFO_ENDIANNESS', True) |
28 | if endianness == 'le': | 32 | if endianness == 'le': |
29 | d.setVar('EXTRA_OECONF', "ac_cv_c_endian=little") | 33 | d.appendVar('EXTRA_OECONF', " ac_cv_c_endian=little") |
30 | else: | 34 | else: |
31 | d.setVar('EXTRA_OECONF', "ac_cv_c_endian=big") | 35 | d.appendVar('EXTRA_OECONF', " ac_cv_c_endian=big") |
32 | } | 36 | } |
33 | 37 | ||
38 | PACKAGECONFIG ??= "" | ||
39 | PACKAGECONFIG[hugetlbfs] = "--enable-hugetlbfs, --disable-hugetlbfs, libhugetlbfs" | ||
40 | |||
34 | inherit update-rc.d | 41 | inherit update-rc.d |
35 | 42 | ||
36 | INITSCRIPT_NAME = "memcached" | 43 | INITSCRIPT_NAME = "memcached" |