19 Commits

Author SHA1 Message Date
Gary S. Robertson
8d8b0f1cc8 libhugetlbfs: Fix page size & text offset for arm arches
Fixed computation of page size and text segment offset for various arm
architectures - including both LE and BE variants of armv7 as well as
aarch64

Upstream Status: Accepted at libhugetlbfs project

Signed-off-by: Gary S. Robertson <gary.robertson@linaro.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-12-26 17:59:07 -08:00
Gary S. Robertson
2b524c31f7 libhugetlbfs: Make cross-devel recognize all ix86 arches
In a non-native cross-development scenario, the Makefile
only recognized i386 or x86_64 PC architectures.
Extended this to also recognize i486, i586, and i686

Upstream Status: Accepted but not yet applied by libhugetlbfs project

Signed-off-by: Gary S. Robertson <gary.robertson@linaro.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-12-26 17:58:46 -08:00
Chong.Lu@windriver.com
12236ba5f7 libhugetlbfs: add bash and perl to RDEPENDS
This solves the following warning:

libhugetlbfs-2.18: libhugetlbfs-tests requires /bin/bash, but no providers in
its RDEPENDS [file-rdeps]
libhugetlbfs-2.18: libhugetlbfs requires /bin/bash, /usr/bin/perl, but no
providers in its RDEPENDS [file-rdeps]

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-10-30 09:00:08 +01:00
Gary S. Robertson
84364ebb57 libhugetlbfs: Extend arm32 support to include BE variants
Upstream Status: Submitted

This patch applies the same technique used by Koen Kool in the following patch
which was accepted by the libhugetlbfs project:

[0a4f6] Add aarch64_be_support 2014-03-31 10:52:37

It modifies the libhugetlbfs Makefile to mark all 32-bit arm architectures
as supported by the libhugetlbfs build.  Builds and successful functional
tests have been performed for armv7a LE and BE runtime platforms.

This patch replaces and renders obsolete the following patch:
arm32-support.patch by: Chunrong Guo <B40290@freescale.com>

Signed-off-by: Gary S. Robertson <gary.robertson@linaro.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-08-15 17:07:02 +02:00
Ting Liu
2892455bad libhugetlbfs: not build obj32 for all 64b platforms
qemux86_64 has the same issue with powerpc64, set
BUILDTYPE=NATIVEONLY as default

Fix the below build issue for 64bit platforms:
| fatal error: gnu/stubs-32.h: No such file or directory
|  # include <gnu/stubs-32.h>
|                            ^
| compilation terminated.
| make: *** [obj32/elflink.o] Error 1

Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-07-30 09:35:44 +02:00
Ting Liu
cd63a38d0a libhugetlbfs: not build obj32 for powerpc64
If obj32 needed, user can build lib32-libhugetlbfs.

Fix the below build issue for 64bit powerpc boards:
| fatal error: gnu/stubs-32.h: No such file or directory
|  # include <gnu/stubs-32.h>
|                            ^
| compilation terminated.
| make: *** [obj32/elflink.o] Error 1

Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-07-22 00:01:48 +02:00
Ting Liu
3efa077536 libhugetlbfs: use ARCH ppc/ppc64 for powerpc/powerpc64
In recent libhugetlbfs source, powerpc/powerpc64 is changed back to
ppc/ppc64 (to match with the output of `uname -a`).

Update the recipe to avoid build issue for now.

Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-07-22 00:01:48 +02:00
Koen Kooi
cd45cd77ef libhugetlbfs: fix packaging
Libhugetlbs doesn't generate proper .so.X libs, only two .so files. Package those in ${PN} and silence the resulting QA warning. This fixes:

 ERROR: QA Issue: libhugetlbfs-tests rdepends on libhugetlbfs-dev

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-07-22 00:01:48 +02:00
Koen Kooi
7b6c734be6 libhugetlbfs: fix versioning
PE bump is needed because "git+stuff"" > "2.18"

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-07-22 00:01:47 +02:00
Chunrong Guo
fca32c0fce libhugetlbfs: arm 32bit support
Signed-off-by: Chunrong Guo <B40290@freescale.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-07-22 00:01:47 +02:00
Fathi Boudra
447ef234d4 libhugetlbfs: update srcrev to 2.18 release
* Update recipe:
  - update SRCREV to latest release, 2.18
  - switch back to master branch
  - increase verbosity (pass V=1 to EXTRA_OEMAKE) to make debugging easier
* Drop patches:
  - fix-lib64-can-not-be-shiped-in-64bit-target.patch
    replaced by LIBARGS definition. the build system allows to override libdir
    using LIB32 and LIB64 variables
  - 0001-install-perl-lib-to-directory-perl-instead-of-perl5.patch
    replaced by a one-liner to fixup perl module directory hardcoded to perl5
* Refresh skip-checking-LIB32-and-LIB64-if-they-point-to-the-s.patch
  - only disable the error to skip the check
* Add patches:
  - 0001-aarch64-fix-cross-compilation.patch - submitted upstream
    allow to override CC and use it for aarch64 case like the other arch
  - 0001-aarch64-fix-page-size-not-properly-computed.patch - submitted upstream
    fix typo on MB variable (MB -> $MB) and add the missing linker variants
    (aarch64elfb, aarch64linux, aarch64linuxb)
  - 0001-replace-lib-lib64-hardcoded-values-by-LIBDIR32-LIBDI.patch
    submitted upstream. replace lib/lib64 hardcoded values by LIBDIR32 and
    LIBDIR64 variables
* Remove patches that aren't applied in the recipe (they're all merged
  upstream and available in 2.18 release):
  - libhugetlbfs/files/aarch64-support.patch
  - aarch64-unit-test-fixes.patch
  - add-PROT-NONE-to-the-mprotest-test.patch

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-05-04 17:14:11 +02:00
Matthieu CRAPET
c95e155780 recipes: convert remaining SUMMARY/DESCRIPTION cosmetic issues
Changes:
- rename SUMMARY with length > 80 to DESCRIPTION
- rename DESCRIPTION with length < 80 to (non present tag) SUMMARY
- drop final point character at the end of SUMMARY string
- remove trailing whitespace of SUMMARY line

Note: don't bump PR

Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-02-23 23:20:02 +01:00
Koen Kooi
37b2407afa libhugetlbfs: ensure package strip logic stays the same after oe-core package.bbclass changes
See http://patches.openembedded.org/patch/65311/

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-02-01 08:51:05 +01:00
Ting Liu
e8256e7bb9 libhugetbfs: add branch parameter and uprev to 6824d18
Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-01-22 12:22:37 +01:00
Koen Kooi
be7ba2fcf1 libhugetlbfs: kill /opt usage
/opt should never be used for packages built by OE, so install the tests in a more standard location.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-10-21 12:15:03 +02:00
Chunrong Guo
f8903f53db libhugetlbfs: install perl lib to directory perl instead of perl5
*libhugetlbfs depends on perl, and perl installs a directory 'perl'
    and make a symlink 'perl5' to it. So just install perl libs in
    libhugetlbfs to directory 'perl' instead of 'perl5'. This can avoid
    the following error:
    | CalledProcessError: Command 'tar -cf - -C .../perl/5.14.3-r1/sysroot-destdir
    | -ps . | tar -xf - -C .../tmp/sysroots/t4240qds'
    | returned non-zero exit status 2 with output
    | tar: ./usr/lib/perl5: Cannot create symlink to `perl': File exists
    | tar: Exiting with failure status due to previous errors

Signed-off-by: Chunrong Guo <B40290@freescale.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-10-15 13:43:53 +02:00
Chunrong Guo
0e2a691f78 libhugetlbfs: not use hard coded path in run_tests.py
*Hard coded path makes the script impossible to run out of source tree.
  *After 'make install', we can use hugeadm utility under DESTDIR.

Signed-off-by: Chunrong Guo <B40290@freescale.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-10-15 13:43:53 +02:00
Chunrong Guo
90cd9eab66 libhugetlbfs: install static 4G-edge testcases
*TESTS_64 is empty, install will fail due to missing file operand.

Signed-off-by: Chunrong Guo <B40290@freescale.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-10-15 13:43:53 +02:00
Chunrong Guo
fd9f63aad1 libhugetlbfs: add recipe
Signed-off-by: Chunrong Guo <B40290@freescale.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-10-05 12:36:24 +02:00