diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-02-12 09:54:20 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-14 11:42:19 +0000 |
commit | b5b8003a0b99fb591f2e2a0a5ed74e60a120dc87 (patch) | |
tree | dc2c9b361a74923b39f75c5b1dc0f845a335051d /meta/recipes-extended/ltp/ltp/0005-kernel-controllers-Link-with-libfts-explicitly-on-mu.patch | |
parent | f6b39575fb4cbc7cd9f7fbe57562ebca8901d59d (diff) | |
download | poky-b5b8003a0b99fb591f2e2a0a5ed74e60a120dc87.tar.gz |
ltp: Upgrade to 20160126 and fix build on musl
pass -D__SANE_USERSPACE_TYPES__ to CFLAGS
MIPS64/PPC64 uses long long for u64 in the kernel, but powerpc's asm/types.h
prevents 64-bit userland from seeing this definition, instead
defaulting to u64 == long in userspace. Define __SANE_USERSPACE_TYPES__
to get int-ll64.h included.
(From OE-Core rev: d17984eda9635f98d4472019d4af83f661b4dfe7)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/ltp/ltp/0005-kernel-controllers-Link-with-libfts-explicitly-on-mu.patch')
-rw-r--r-- | meta/recipes-extended/ltp/ltp/0005-kernel-controllers-Link-with-libfts-explicitly-on-mu.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0005-kernel-controllers-Link-with-libfts-explicitly-on-mu.patch b/meta/recipes-extended/ltp/ltp/0005-kernel-controllers-Link-with-libfts-explicitly-on-mu.patch new file mode 100644 index 0000000000..8dab1ed2ec --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/0005-kernel-controllers-Link-with-libfts-explicitly-on-mu.patch | |||
@@ -0,0 +1,45 @@ | |||
1 | From 6e3058521b50d91d4b0569c4d491c5af5ff798b2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 7 Jan 2016 18:22:38 +0000 | ||
4 | Subject: [PATCH 05/32] kernel/controllers: Link with libfts explicitly on musl | ||
5 | |||
6 | musl does not implement fts like glibc and therefore it depends on | ||
7 | external implementation for all fts APIs | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | testcases/kernel/controllers/Makefile.inc | 3 +++ | ||
12 | testcases/kernel/controllers/cpuset/Makefile.inc | 3 +++ | ||
13 | 2 files changed, 6 insertions(+) | ||
14 | |||
15 | diff --git a/testcases/kernel/controllers/Makefile.inc b/testcases/kernel/controllers/Makefile.inc | ||
16 | index b106283..ef5fc0c 100644 | ||
17 | --- a/testcases/kernel/controllers/Makefile.inc | ||
18 | +++ b/testcases/kernel/controllers/Makefile.inc | ||
19 | @@ -36,6 +36,9 @@ MAKE_DEPS := $(LIB) | ||
20 | CPPFLAGS += -I$(abs_srcdir)/../$(LIBDIR) | ||
21 | |||
22 | LDFLAGS += -L$(abs_builddir)/../$(LIBDIR) | ||
23 | +ifeq ($(LIBC),musl) | ||
24 | +LDLIBS += -lfts | ||
25 | +endif | ||
26 | |||
27 | INSTALL_TARGETS ?= *.sh | ||
28 | |||
29 | diff --git a/testcases/kernel/controllers/cpuset/Makefile.inc b/testcases/kernel/controllers/cpuset/Makefile.inc | ||
30 | index 9e002f4..e0fcb9c 100644 | ||
31 | --- a/testcases/kernel/controllers/cpuset/Makefile.inc | ||
32 | +++ b/testcases/kernel/controllers/cpuset/Makefile.inc | ||
33 | @@ -42,6 +42,9 @@ MAKE_DEPS := $(LIBCONTROLLERS) $(LIBCPUSET) | ||
34 | LDFLAGS += -L$(abs_builddir)/$(LIBCPUSET_DIR) -L$(abs_builddir)/$(LIBCONTROLLERS_DIR) | ||
35 | |||
36 | LDLIBS += -lcpu_set -lcontrollers -lltp | ||
37 | +ifeq ($(LIBC),musl) | ||
38 | +LDLIBS += -lfts | ||
39 | +endif | ||
40 | |||
41 | INSTALL_TARGETS ?= *.sh | ||
42 | |||
43 | -- | ||
44 | 2.7.0 | ||
45 | |||