diff options
author | Chunrong Guo <B40290@freescale.com> | 2014-06-18 11:12:15 +0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-07-22 00:01:47 +0200 |
commit | fca32c0fcec0b9690f665cb5b764b4e5f5bfbf25 (patch) | |
tree | 10f58423c58d14e89b7a3e79bdb39d8dfacaddd7 | |
parent | 27981cbef19db115fa81704468721580dedfb1fd (diff) | |
download | meta-openembedded-fca32c0fcec0b9690f665cb5b764b4e5f5bfbf25.tar.gz |
libhugetlbfs: arm 32bit support
Signed-off-by: Chunrong Guo <B40290@freescale.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r-- | meta-oe/recipes-benchmark/libhugetlbfs/files/arm32-support.patch | 29 | ||||
-rw-r--r-- | meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb | 3 |
2 files changed, 31 insertions, 1 deletions
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/arm32-support.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/arm32-support.patch new file mode 100644 index 0000000000..96f162dd94 --- /dev/null +++ b/meta-oe/recipes-benchmark/libhugetlbfs/files/arm32-support.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | Upstream-Status: Submitted | ||
2 | |||
3 | This patch adds support for arm32. | ||
4 | |||
5 | Signed-off-by: Chunrong Guo <B40290@freescale.com> | ||
6 | |||
7 | --- a/Makefileold 2014-06-17 21:55:23.131058918 -0500 | ||
8 | +++ b/Makefile 2014-06-17 21:56:08.726098531 -0500 | ||
9 | @@ -59,6 +59,12 @@ | ||
10 | TMPLIB32 = lib | ||
11 | CPPFLAGS += -DPPC_NO_SEGMENTS | ||
12 | else | ||
13 | +ifeq ($(ARCH),arm) | ||
14 | +CC32 = $(CC) | ||
15 | +TMPLIB32 = lib | ||
16 | +ELF32 += armelf_linux_eabi | ||
17 | +CUSTOM_LDSCRIPTS = no | ||
18 | +else | ||
19 | ifeq ($(ARCH),armv7l) | ||
20 | CC32 = $(CC) | ||
21 | TMPLIB32 = lib | ||
22 | @@ -116,6 +122,7 @@ | ||
23 | endif | ||
24 | endif | ||
25 | endif | ||
26 | +endif | ||
27 | |||
28 | ifdef CC32 | ||
29 | OBJDIRS += obj32 | ||
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb index 5645add6b8..879f2a0674 100644 --- a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +++ b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb | |||
@@ -14,11 +14,12 @@ SRC_URI = "git://git.code.sf.net/p/libhugetlbfs/code \ | |||
14 | file://0001-aarch64-fix-cross-compilation.patch \ | 14 | file://0001-aarch64-fix-cross-compilation.patch \ |
15 | file://0001-aarch64-fix-page-size-not-properly-computed.patch \ | 15 | file://0001-aarch64-fix-page-size-not-properly-computed.patch \ |
16 | file://0001-replace-lib-lib64-hardcoded-values-by-LIBDIR32-LIBDI.patch \ | 16 | file://0001-replace-lib-lib64-hardcoded-values-by-LIBDIR32-LIBDI.patch \ |
17 | file://arm32-support.patch \ | ||
17 | " | 18 | " |
18 | 19 | ||
19 | S = "${WORKDIR}/git" | 20 | S = "${WORKDIR}/git" |
20 | 21 | ||
21 | COMPATIBLE_HOST = "(x86_64|powerpc|powerpc64|aarch64).*-linux*" | 22 | COMPATIBLE_HOST = "(x86_64|powerpc|powerpc64|aarch64|arm).*-linux*" |
22 | 23 | ||
23 | LIBARGS = "LIB32=${baselib} LIB64=${baselib}" | 24 | LIBARGS = "LIB32=${baselib} LIB64=${baselib}" |
24 | EXTRA_OEMAKE = "'ARCH=${TARGET_ARCH}' 'OPT=${CFLAGS}' 'CC=${CC}' ${LIBARGS} V=1" | 25 | EXTRA_OEMAKE = "'ARCH=${TARGET_ARCH}' 'OPT=${CFLAGS}' 'CC=${CC}' ${LIBARGS} V=1" |