[oe] [PATCH] libhugetlbfs: add support for armv7a
Martin Jansa
martin.jansa at gmail.com
Mon Oct 28 08:26:03 UTC 2013
On Fri, Oct 18, 2013 at 04:09:07PM +0200, Anders Roxell wrote:
> Signed-off-by: Anders Roxell <anders.roxell at linaro.org>
> ---
> meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
> index 24480c3..4f1bfa4 100644
> --- a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
> +++ b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
> @@ -20,10 +20,16 @@ SRC_URI = "git://git.code.sf.net/p/libhugetlbfs/code \
>
> S = "${WORKDIR}/git"
>
> -COMPATIBLE_HOST = "(x86_64|powerpc|powerpc64|aarch64).*-linux*"
> +COMPATIBLE_HOST = "(x86_64|powerpc|powerpc64|arm|aarch64).*-linux*"
>
> +python __anonymous() {
> + if base_contains('TARGET_ARCH', 'arm', True, False, d):
> + d.setVar('ARCH', 'armv7l')
> + else:
> + d.setVar('ARCH', d.getVar('TARGET_ARCH'))
> +}
>
> -EXTRA_OEMAKE = "'ARCH=${TARGET_ARCH}' 'OPT=${CFLAGS}' 'CC=${CC}' BUILDTYPE=NATIVEONLY ${LIBARGS}"
> +EXTRA_OEMAKE = "'ARCH=${ARCH}' 'OPT=${CFLAGS}' 'CC=${CC}' BUILDTYPE=NATIVEONLY ${LIBARGS}"
> CFLAGS += "-fexpensive-optimizations -frename-registers -fomit-frame-pointer -g0"
>
> TARGET_CC_ARCH += "${LDFLAGS}"
It enables every arm* and fails for qemuarm:
|
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/libexec/armv5te-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/4.8.1/ld:
error: zero_filesize_segment.ld: SECTIONS seen after other input files;
try -T/--script
| collect2: error: ld returned 1 exit status
| CC32 obj32/linkhuge.o
| LD32 (hugelink test) obj32/linkhuge
| CC32 obj32/linkhuge_nofd.o
| LD32 (hugelink test) obj32/linkhuge_nofd
| CC32 obj32/linkshare.o
| LD32 (hugelink test) obj32/linkshare
| CC32 obj32/linkhuge_rw.o
| LD32 (hugelink_rw test) obj32/linkhuge_rw
| arm-oe-linux-gnueabi-ld: error: cannot open text-segment=2097152: No
such file or directory
| arm-oe-linux-gnueabi-ld: fatal error: unable to parse script file
text-segment=2097152
| collect2: error: ld returned 1 exit status
| make[1]: *** [obj32/linkhuge_rw] Error 1
| make: *** [tests/all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/libhugetlbfs/git-r0/temp/log.do_compile.24357)
NOTE: recipe libhugetlbfs-git-r0: task do_compile: Failed
ERROR: Task 23498
(/home/jenkins/oe/shr-core-branches/shr-core/meta-openembedded/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb,
do_compile) failed with exit code '1'
> --
> 1.8.1.2
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20131028/83771d00/attachment-0002.sig>
More information about the Openembedded-devel
mailing list