summaryrefslogtreecommitdiffstats
path: root/meta-oe/files
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2016-01-06 14:42:48 +0800
committerJoe MacDonald <joe_macdonald@mentor.com>2016-03-02 14:47:23 -0500
commitfe4106ca0d81fb0dd30c82a2c4a45c38f9694ad6 (patch)
tree1554ed17cc6dd03d6e0e517acbbf3785f1d8db44 /meta-oe/files
parent0762fdd1f57e68374454cc43e7047bd99063e683 (diff)
downloadmeta-openembedded-fe4106ca0d81fb0dd30c82a2c4a45c38f9694ad6.tar.gz
waf-samba.bbclass: add cross-answers option and files
--cross-execute uses qemu to run cross-compiled binaries, it works fine for qemu supported targets, but it definitely will fail if the target is not supported by qemu. So we need to use the cross-answers option. Added three methods and set 'answer' as default: 1. answers: Only --cross-answers - try the cross-answers file, and if there's no corresponding answer, add to the file and mark the configure process as unfinished. 2. exec: Only --cross-execute - get the answer from cross-execute, an emulator (qemu) is used to run cross-compiled binaries. 3. both: Try the cross-answers file first, and if there is no corresponding answer, use cross-execute to get an answer, and add that answer to the file. The cross files in are all generated by qemu when the 'both' mode is enabled, and are placed in a common directory LAYERDIR/files/waf-cross-answers which is set as WAF_CROSS_ANSWERS_PATH in layer.conf of meta-oe, so that we don't have to put copies of them for each package (there are 5 packages inerit waf-samba for now) Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-oe/files')
-rw-r--r--meta-oe/files/waf-cross-answers/README3
-rw-r--r--meta-oe/files/waf-cross-answers/cross-answers-aarch64.txt38
-rw-r--r--meta-oe/files/waf-cross-answers/cross-answers-arm.txt39
-rw-r--r--meta-oe/files/waf-cross-answers/cross-answers-i586.txt39
-rw-r--r--meta-oe/files/waf-cross-answers/cross-answers-i686.txt39
-rw-r--r--meta-oe/files/waf-cross-answers/cross-answers-mips.txt39
-rw-r--r--meta-oe/files/waf-cross-answers/cross-answers-mips64.txt38
-rw-r--r--meta-oe/files/waf-cross-answers/cross-answers-powerpc.txt39
-rw-r--r--meta-oe/files/waf-cross-answers/cross-answers-powerpc64.txt39
-rw-r--r--meta-oe/files/waf-cross-answers/cross-answers-x86_64.txt38
10 files changed, 351 insertions, 0 deletions
diff --git a/meta-oe/files/waf-cross-answers/README b/meta-oe/files/waf-cross-answers/README
new file mode 100644
index 000000000..0c2334436
--- /dev/null
+++ b/meta-oe/files/waf-cross-answers/README
@@ -0,0 +1,3 @@
1The files in this directory are cross answers files
2used by waf-samba.bbaclss, please see waf-samba.bbaclss
3for details about how they are used.
diff --git a/meta-oe/files/waf-cross-answers/cross-answers-aarch64.txt b/meta-oe/files/waf-cross-answers/cross-answers-aarch64.txt
new file mode 100644
index 000000000..bbf7f1620
--- /dev/null
+++ b/meta-oe/files/waf-cross-answers/cross-answers-aarch64.txt
@@ -0,0 +1,38 @@
1Checking uname sysname type: "Linux"
2Checking uname version type: "# Wed May 20 10:34:39 UTC 2015"
3Checking simple C program: "hello world"
4rpath library support: OK
5-Wl,--version-script support: OK
6Checking getconf LFS_CFLAGS: NO
7Checking correct behavior of strtoll: NO
8Checking for working strptime: OK
9Checking for C99 vsnprintf: "1"
10Checking for HAVE_SHARED_MMAP: OK
11Checking for HAVE_MREMAP: OK
12Checking for HAVE_SECURE_MKSTEMP: OK
13Checking for HAVE_IFACE_GETIFADDRS: NO
14Checking for HAVE_IFACE_IFCONF: NO
15Checking for HAVE_IFACE_IFREQ: NO
16Checking for large file support without additional flags: OK
17Checking for HAVE_INCOHERENT_MMAP: NO
18Checking value of NSIG: "65"
19Checking value of _NSIG: "65"
20Checking value of SIGRTMAX: "64"
21Checking value of SIGRTMIN: "34"
22Checking whether the WRFILE -keytab is supported: OK
23Checking for kernel change notify support: OK
24Checking for Linux kernel oplocks: OK
25Checking for kernel share modes: OK
26Checking whether POSIX capabilities are available: OK
27Checking if can we convert from CP850 to UCS-2LE: OK
28Checking if can we convert from UTF-8 to UCS-2LE: OK
29vfs_fileid checking for statfs() and struct statfs.f_fsid: OK
30Checking whether we can use Linux thread-specific credentials: OK
31Checking whether fcntl locking is available: OK
32Checking for the maximum value of the 'time_t' type: OK
33Checking whether the realpath function allows a NULL argument: OK
34Checking for ftruncate extend: OK
35getcwd takes a NULL argument: OK
36Checking for small off_t: NO
37Checking whether blkcnt_t is 32 bit: NO
38Checking whether blkcnt_t is 64 bit: OK
diff --git a/meta-oe/files/waf-cross-answers/cross-answers-arm.txt b/meta-oe/files/waf-cross-answers/cross-answers-arm.txt
new file mode 100644
index 000000000..e926fcd3c
--- /dev/null
+++ b/meta-oe/files/waf-cross-answers/cross-answers-arm.txt
@@ -0,0 +1,39 @@
1Checking uname sysname type: "Linux"
2Checking uname version type: "# Wed May 20 10:34:39 UTC 2015"
3Checking simple C program: "hello world"
4rpath library support: OK
5-Wl,--version-script support: OK
6Checking getconf LFS_CFLAGS: NO
7Checking correct behavior of strtoll: NO
8Checking for working strptime: OK
9Checking for C99 vsnprintf: "1"
10Checking for HAVE_SHARED_MMAP: OK
11Checking for HAVE_MREMAP: OK
12Checking for HAVE_SECURE_MKSTEMP: OK
13Checking for HAVE_IFACE_GETIFADDRS: NO
14Checking for HAVE_IFACE_IFCONF: NO
15Checking for HAVE_IFACE_IFREQ: NO
16Checking for large file support without additional flags: NO
17Checking for -D_FILE_OFFSET_BITS=64: OK
18Checking for HAVE_INCOHERENT_MMAP: NO
19Checking value of NSIG: "65"
20Checking value of _NSIG: "65"
21Checking value of SIGRTMAX: "64"
22Checking value of SIGRTMIN: "34"
23Checking whether the WRFILE -keytab is supported: OK
24Checking for kernel change notify support: OK
25Checking for Linux kernel oplocks: OK
26Checking for kernel share modes: OK
27Checking whether POSIX capabilities are available: OK
28Checking if can we convert from CP850 to UCS-2LE: OK
29Checking if can we convert from UTF-8 to UCS-2LE: OK
30vfs_fileid checking for statfs() and struct statfs.f_fsid: OK
31Checking whether we can use Linux thread-specific credentials with 32-bit system calls: OK
32Checking whether fcntl locking is available: OK
33Checking for the maximum value of the 'time_t' type: NO
34Checking whether the realpath function allows a NULL argument: OK
35Checking for ftruncate extend: OK
36getcwd takes a NULL argument: OK
37Checking for small off_t: NO
38Checking whether blkcnt_t is 32 bit: NO
39Checking whether blkcnt_t is 64 bit: OK
diff --git a/meta-oe/files/waf-cross-answers/cross-answers-i586.txt b/meta-oe/files/waf-cross-answers/cross-answers-i586.txt
new file mode 100644
index 000000000..e926fcd3c
--- /dev/null
+++ b/meta-oe/files/waf-cross-answers/cross-answers-i586.txt
@@ -0,0 +1,39 @@
1Checking uname sysname type: "Linux"
2Checking uname version type: "# Wed May 20 10:34:39 UTC 2015"
3Checking simple C program: "hello world"
4rpath library support: OK
5-Wl,--version-script support: OK
6Checking getconf LFS_CFLAGS: NO
7Checking correct behavior of strtoll: NO
8Checking for working strptime: OK
9Checking for C99 vsnprintf: "1"
10Checking for HAVE_SHARED_MMAP: OK
11Checking for HAVE_MREMAP: OK
12Checking for HAVE_SECURE_MKSTEMP: OK
13Checking for HAVE_IFACE_GETIFADDRS: NO
14Checking for HAVE_IFACE_IFCONF: NO
15Checking for HAVE_IFACE_IFREQ: NO
16Checking for large file support without additional flags: NO
17Checking for -D_FILE_OFFSET_BITS=64: OK
18Checking for HAVE_INCOHERENT_MMAP: NO
19Checking value of NSIG: "65"
20Checking value of _NSIG: "65"
21Checking value of SIGRTMAX: "64"
22Checking value of SIGRTMIN: "34"
23Checking whether the WRFILE -keytab is supported: OK
24Checking for kernel change notify support: OK
25Checking for Linux kernel oplocks: OK
26Checking for kernel share modes: OK
27Checking whether POSIX capabilities are available: OK
28Checking if can we convert from CP850 to UCS-2LE: OK
29Checking if can we convert from UTF-8 to UCS-2LE: OK
30vfs_fileid checking for statfs() and struct statfs.f_fsid: OK
31Checking whether we can use Linux thread-specific credentials with 32-bit system calls: OK
32Checking whether fcntl locking is available: OK
33Checking for the maximum value of the 'time_t' type: NO
34Checking whether the realpath function allows a NULL argument: OK
35Checking for ftruncate extend: OK
36getcwd takes a NULL argument: OK
37Checking for small off_t: NO
38Checking whether blkcnt_t is 32 bit: NO
39Checking whether blkcnt_t is 64 bit: OK
diff --git a/meta-oe/files/waf-cross-answers/cross-answers-i686.txt b/meta-oe/files/waf-cross-answers/cross-answers-i686.txt
new file mode 100644
index 000000000..e926fcd3c
--- /dev/null
+++ b/meta-oe/files/waf-cross-answers/cross-answers-i686.txt
@@ -0,0 +1,39 @@
1Checking uname sysname type: "Linux"
2Checking uname version type: "# Wed May 20 10:34:39 UTC 2015"
3Checking simple C program: "hello world"
4rpath library support: OK
5-Wl,--version-script support: OK
6Checking getconf LFS_CFLAGS: NO
7Checking correct behavior of strtoll: NO
8Checking for working strptime: OK
9Checking for C99 vsnprintf: "1"
10Checking for HAVE_SHARED_MMAP: OK
11Checking for HAVE_MREMAP: OK
12Checking for HAVE_SECURE_MKSTEMP: OK
13Checking for HAVE_IFACE_GETIFADDRS: NO
14Checking for HAVE_IFACE_IFCONF: NO
15Checking for HAVE_IFACE_IFREQ: NO
16Checking for large file support without additional flags: NO
17Checking for -D_FILE_OFFSET_BITS=64: OK
18Checking for HAVE_INCOHERENT_MMAP: NO
19Checking value of NSIG: "65"
20Checking value of _NSIG: "65"
21Checking value of SIGRTMAX: "64"
22Checking value of SIGRTMIN: "34"
23Checking whether the WRFILE -keytab is supported: OK
24Checking for kernel change notify support: OK
25Checking for Linux kernel oplocks: OK
26Checking for kernel share modes: OK
27Checking whether POSIX capabilities are available: OK
28Checking if can we convert from CP850 to UCS-2LE: OK
29Checking if can we convert from UTF-8 to UCS-2LE: OK
30vfs_fileid checking for statfs() and struct statfs.f_fsid: OK
31Checking whether we can use Linux thread-specific credentials with 32-bit system calls: OK
32Checking whether fcntl locking is available: OK
33Checking for the maximum value of the 'time_t' type: NO
34Checking whether the realpath function allows a NULL argument: OK
35Checking for ftruncate extend: OK
36getcwd takes a NULL argument: OK
37Checking for small off_t: NO
38Checking whether blkcnt_t is 32 bit: NO
39Checking whether blkcnt_t is 64 bit: OK
diff --git a/meta-oe/files/waf-cross-answers/cross-answers-mips.txt b/meta-oe/files/waf-cross-answers/cross-answers-mips.txt
new file mode 100644
index 000000000..18bfa0203
--- /dev/null
+++ b/meta-oe/files/waf-cross-answers/cross-answers-mips.txt
@@ -0,0 +1,39 @@
1Checking uname sysname type: "Linux"
2Checking uname version type: "# Wed May 20 10:34:39 UTC 2015"
3Checking simple C program: "hello world"
4rpath library support: OK
5-Wl,--version-script support: OK
6Checking getconf LFS_CFLAGS: NO
7Checking correct behavior of strtoll: NO
8Checking for working strptime: OK
9Checking for C99 vsnprintf: "1"
10Checking for HAVE_SHARED_MMAP: OK
11Checking for HAVE_MREMAP: OK
12Checking for HAVE_SECURE_MKSTEMP: OK
13Checking for HAVE_IFACE_GETIFADDRS: NO
14Checking for HAVE_IFACE_IFCONF: NO
15Checking for HAVE_IFACE_IFREQ: NO
16Checking for large file support without additional flags: NO
17Checking for -D_FILE_OFFSET_BITS=64: OK
18Checking for HAVE_INCOHERENT_MMAP: NO
19Checking value of NSIG: "128"
20Checking value of _NSIG: "128"
21Checking value of SIGRTMAX: "127"
22Checking value of SIGRTMIN: "34"
23Checking whether the WRFILE -keytab is supported: OK
24Checking for kernel change notify support: OK
25Checking for Linux kernel oplocks: OK
26Checking for kernel share modes: OK
27Checking whether POSIX capabilities are available: OK
28Checking if can we convert from CP850 to UCS-2LE: OK
29Checking if can we convert from UTF-8 to UCS-2LE: OK
30vfs_fileid checking for statfs() and struct statfs.f_fsid: OK
31Checking whether we can use Linux thread-specific credentials: OK
32Checking whether fcntl locking is available: OK
33Checking for the maximum value of the 'time_t' type: NO
34Checking whether the realpath function allows a NULL argument: OK
35Checking for ftruncate extend: OK
36getcwd takes a NULL argument: OK
37Checking for small off_t: NO
38Checking whether blkcnt_t is 32 bit: NO
39Checking whether blkcnt_t is 64 bit: OK
diff --git a/meta-oe/files/waf-cross-answers/cross-answers-mips64.txt b/meta-oe/files/waf-cross-answers/cross-answers-mips64.txt
new file mode 100644
index 000000000..8fa015ab9
--- /dev/null
+++ b/meta-oe/files/waf-cross-answers/cross-answers-mips64.txt
@@ -0,0 +1,38 @@
1Checking uname sysname type: "Linux"
2Checking uname version type: "# Wed May 20 10:34:39 UTC 2015"
3Checking simple C program: "hello world"
4rpath library support: OK
5-Wl,--version-script support: OK
6Checking getconf LFS_CFLAGS: NO
7Checking correct behavior of strtoll: NO
8Checking for working strptime: OK
9Checking for C99 vsnprintf: "1"
10Checking for HAVE_SHARED_MMAP: OK
11Checking for HAVE_MREMAP: OK
12Checking for HAVE_SECURE_MKSTEMP: OK
13Checking for HAVE_IFACE_GETIFADDRS: NO
14Checking for HAVE_IFACE_IFCONF: NO
15Checking for HAVE_IFACE_IFREQ: NO
16Checking for large file support without additional flags: OK
17Checking for HAVE_INCOHERENT_MMAP: OK
18Checking value of NSIG: "128"
19Checking value of _NSIG: "128"
20Checking value of SIGRTMAX: "127"
21Checking value of SIGRTMIN: "34"
22Checking whether the WRFILE -keytab is supported: OK
23Checking for kernel change notify support: OK
24Checking for Linux kernel oplocks: OK
25Checking for kernel share modes: OK
26Checking whether POSIX capabilities are available: OK
27Checking if can we convert from CP850 to UCS-2LE: OK
28Checking if can we convert from UTF-8 to UCS-2LE: OK
29vfs_fileid checking for statfs() and struct statfs.f_fsid: OK
30Checking whether we can use Linux thread-specific credentials: OK
31Checking whether fcntl locking is available: OK
32Checking for the maximum value of the 'time_t' type: OK
33Checking whether the realpath function allows a NULL argument: OK
34Checking for ftruncate extend: OK
35getcwd takes a NULL argument: OK
36Checking for small off_t: NO
37Checking whether blkcnt_t is 32 bit: NO
38Checking whether blkcnt_t is 64 bit: OK
diff --git a/meta-oe/files/waf-cross-answers/cross-answers-powerpc.txt b/meta-oe/files/waf-cross-answers/cross-answers-powerpc.txt
new file mode 100644
index 000000000..fb93b56fc
--- /dev/null
+++ b/meta-oe/files/waf-cross-answers/cross-answers-powerpc.txt
@@ -0,0 +1,39 @@
1Checking uname sysname type: "Linux"
2Checking uname version type: "# Wed May 20 10:34:39 UTC 2015"
3Checking simple C program: "hello world"
4rpath library support: OK
5-Wl,--version-script support: OK
6Checking getconf LFS_CFLAGS: NO
7Checking correct behavior of strtoll: NO
8Checking for working strptime: OK
9Checking for C99 vsnprintf: "1"
10Checking for HAVE_SHARED_MMAP: OK
11Checking for HAVE_MREMAP: OK
12Checking for HAVE_SECURE_MKSTEMP: OK
13Checking for HAVE_IFACE_GETIFADDRS: NO
14Checking for HAVE_IFACE_IFCONF: NO
15Checking for HAVE_IFACE_IFREQ: NO
16Checking for large file support without additional flags: NO
17Checking for -D_FILE_OFFSET_BITS=64: OK
18Checking for HAVE_INCOHERENT_MMAP: NO
19Checking value of NSIG: "65"
20Checking value of _NSIG: "65"
21Checking value of SIGRTMAX: "64"
22Checking value of SIGRTMIN: "34"
23Checking whether the WRFILE -keytab is supported: OK
24Checking for kernel change notify support: OK
25Checking for Linux kernel oplocks: OK
26Checking for kernel share modes: OK
27Checking whether POSIX capabilities are available: OK
28Checking if can we convert from CP850 to UCS-2LE: OK
29Checking if can we convert from UTF-8 to UCS-2LE: OK
30vfs_fileid checking for statfs() and struct statfs.f_fsid: OK
31Checking whether we can use Linux thread-specific credentials: OK
32Checking whether fcntl locking is available: OK
33Checking for the maximum value of the 'time_t' type: NO
34Checking whether the realpath function allows a NULL argument: OK
35Checking for ftruncate extend: OK
36getcwd takes a NULL argument: OK
37Checking for small off_t: NO
38Checking whether blkcnt_t is 32 bit: NO
39Checking whether blkcnt_t is 64 bit: OK
diff --git a/meta-oe/files/waf-cross-answers/cross-answers-powerpc64.txt b/meta-oe/files/waf-cross-answers/cross-answers-powerpc64.txt
new file mode 100644
index 000000000..fd585f0d5
--- /dev/null
+++ b/meta-oe/files/waf-cross-answers/cross-answers-powerpc64.txt
@@ -0,0 +1,39 @@
1Checking uname sysname type: "Linux"
2Checking uname version type: "# Wed May 20 10:34:39 UTC 2015"
3Checking simple C program: "hello world"
4rpath library support: OK
5-Wl,--version-script support: OK
6Checking getconf LFS_CFLAGS: NO
7Checking correct behavior of strtoll: NO
8Checking for working strptime: OK
9Checking for C99 vsnprintf: "1"
10Checking for HAVE_SHARED_MMAP: OK
11Checking for HAVE_MREMAP: OK
12Checking for HAVE_SECURE_MKSTEMP: OK
13Checking for HAVE_IFACE_GETIFADDRS: NO
14Checking for HAVE_IFACE_IFCONF: NO
15Checking for HAVE_IFACE_IFREQ: NO
16Checking for large file support without additional flags: OK
17Checking for HAVE_INCOHERENT_MMAP: NO
18Checking value of NSIG: "65"
19Checking value of _NSIG: "65"
20Checking value of SIGRTMAX: "64"
21Checking value of SIGRTMIN: "34"
22Checking whether the WRFILE -keytab is supported: OK
23Checking for kernel change notify support: OK
24Checking for Linux kernel oplocks: OK
25Checking for kernel share modes: OK
26Checking whether POSIX capabilities are available: OK
27Checking if can we convert from CP850 to UCS-2LE: (255, "")
28Checking if can we convert from IBM850 to UCS-2LE: (255, "")
29Checking if can we convert from UTF-8 to UCS-2LE: OK
30vfs_fileid checking for statfs() and struct statfs.f_fsid: OK
31Checking whether we can use Linux thread-specific credentials: OK
32Checking whether fcntl locking is available: OK
33Checking for the maximum value of the 'time_t' type: OK
34Checking whether the realpath function allows a NULL argument: OK
35Checking for ftruncate extend: OK
36getcwd takes a NULL argument: OK
37Checking for small off_t: NO
38Checking whether blkcnt_t is 32 bit: NO
39Checking whether blkcnt_t is 64 bit: OK
diff --git a/meta-oe/files/waf-cross-answers/cross-answers-x86_64.txt b/meta-oe/files/waf-cross-answers/cross-answers-x86_64.txt
new file mode 100644
index 000000000..bbf7f1620
--- /dev/null
+++ b/meta-oe/files/waf-cross-answers/cross-answers-x86_64.txt
@@ -0,0 +1,38 @@
1Checking uname sysname type: "Linux"
2Checking uname version type: "# Wed May 20 10:34:39 UTC 2015"
3Checking simple C program: "hello world"
4rpath library support: OK
5-Wl,--version-script support: OK
6Checking getconf LFS_CFLAGS: NO
7Checking correct behavior of strtoll: NO
8Checking for working strptime: OK
9Checking for C99 vsnprintf: "1"
10Checking for HAVE_SHARED_MMAP: OK
11Checking for HAVE_MREMAP: OK
12Checking for HAVE_SECURE_MKSTEMP: OK
13Checking for HAVE_IFACE_GETIFADDRS: NO
14Checking for HAVE_IFACE_IFCONF: NO
15Checking for HAVE_IFACE_IFREQ: NO
16Checking for large file support without additional flags: OK
17Checking for HAVE_INCOHERENT_MMAP: NO
18Checking value of NSIG: "65"
19Checking value of _NSIG: "65"
20Checking value of SIGRTMAX: "64"
21Checking value of SIGRTMIN: "34"
22Checking whether the WRFILE -keytab is supported: OK
23Checking for kernel change notify support: OK
24Checking for Linux kernel oplocks: OK
25Checking for kernel share modes: OK
26Checking whether POSIX capabilities are available: OK
27Checking if can we convert from CP850 to UCS-2LE: OK
28Checking if can we convert from UTF-8 to UCS-2LE: OK
29vfs_fileid checking for statfs() and struct statfs.f_fsid: OK
30Checking whether we can use Linux thread-specific credentials: OK
31Checking whether fcntl locking is available: OK
32Checking for the maximum value of the 'time_t' type: OK
33Checking whether the realpath function allows a NULL argument: OK
34Checking for ftruncate extend: OK
35getcwd takes a NULL argument: OK
36Checking for small off_t: NO
37Checking whether blkcnt_t is 32 bit: NO
38Checking whether blkcnt_t is 64 bit: OK