diff options
| author | Joe Slater <jslater@windriver.com> | 2017-01-25 13:52:59 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-31 14:43:01 +0000 |
| commit | 34fd5043b2a971eee067e8032ce2050b985e100d (patch) | |
| tree | 9f348946c063d901507a17519292718b3c07fd23 | |
| parent | aca3afcb592ef4ff070760ab2aafba03152a57fb (diff) | |
| download | poky-34fd5043b2a971eee067e8032ce2050b985e100d.tar.gz | |
gnutls: account for ARM_EABI
Do not reference unavailable system calls when
building for ARM_EABI.
(From OE-Core rev: 67f0094af624866f02e7fb0173c335a7e8942921)
Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-support/gnutls/gnutls/arm_eabi.patch | 19 | ||||
| -rw-r--r-- | meta/recipes-support/gnutls/gnutls_3.5.7.bb | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/meta/recipes-support/gnutls/gnutls/arm_eabi.patch b/meta/recipes-support/gnutls/gnutls/arm_eabi.patch new file mode 100644 index 0000000000..34c8985c19 --- /dev/null +++ b/meta/recipes-support/gnutls/gnutls/arm_eabi.patch | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | Certain syscall's are not availabe for arm-eabi, so we eliminate | ||
| 2 | reference to them. | ||
| 3 | |||
| 4 | Upstream-Status: Pending | ||
| 5 | |||
| 6 | Signed-off-by: Joe Slater <jslater@windriver.com> | ||
| 7 | |||
| 8 | --- a/tests/seccomp.c | ||
| 9 | +++ b/tests/seccomp.c | ||
| 10 | @@ -49,7 +49,9 @@ int disable_system_calls(void) | ||
| 11 | } | ||
| 12 | |||
| 13 | ADD_SYSCALL(nanosleep, 0); | ||
| 14 | +#if ! defined(__ARM_EABI__) | ||
| 15 | ADD_SYSCALL(time, 0); | ||
| 16 | +#endif | ||
| 17 | ADD_SYSCALL(getpid, 0); | ||
| 18 | ADD_SYSCALL(gettimeofday, 0); | ||
| 19 | #if defined(HAVE_CLOCK_GETTIME) | ||
diff --git a/meta/recipes-support/gnutls/gnutls_3.5.7.bb b/meta/recipes-support/gnutls/gnutls_3.5.7.bb index cf77a20634..9508a8edcf 100644 --- a/meta/recipes-support/gnutls/gnutls_3.5.7.bb +++ b/meta/recipes-support/gnutls/gnutls_3.5.7.bb | |||
| @@ -4,6 +4,7 @@ SRC_URI += "file://correct_rpl_gettimeofday_signature.patch \ | |||
| 4 | file://0001-configure.ac-fix-sed-command.patch \ | 4 | file://0001-configure.ac-fix-sed-command.patch \ |
| 5 | file://use-pkg-config-to-locate-zlib.patch \ | 5 | file://use-pkg-config-to-locate-zlib.patch \ |
| 6 | file://0001-Do-not-add-cli-args.h-to-cli-args.stamp-Makefile-tar.patch \ | 6 | file://0001-Do-not-add-cli-args.h-to-cli-args.stamp-Makefile-tar.patch \ |
| 7 | file://arm_eabi.patch \ | ||
| 7 | " | 8 | " |
| 8 | SRC_URI[md5sum] = "08ad2c539bc1d91283f610539deef34e" | 9 | SRC_URI[md5sum] = "08ad2c539bc1d91283f610539deef34e" |
| 9 | SRC_URI[sha256sum] = "60cbfc119e6268cfa38d712621daa473298a0c5b129c0842caec4c1ed4d7861a" | 10 | SRC_URI[sha256sum] = "60cbfc119e6268cfa38d712621daa473298a0c5b129c0842caec4c1ed4d7861a" |
