diff options
author | Cody P Schafer <dev@codyps.com> | 2017-06-07 16:36:44 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-29 16:50:53 +0100 |
commit | 72084f751303405416938c776f6c1bf5b8842536 (patch) | |
tree | 3f74568bc9f3bbe1efa7755344958bc3651b194b /meta/recipes-devtools/elfutils/elfutils_0.166.bb | |
parent | 5f7d84821f7c53ce2250861c5e08da9eac928993 (diff) | |
download | poky-72084f751303405416938c776f6c1bf5b8842536.tar.gz |
elfutils: fix building elfutils-native with GCC7
This is heavily based on the oe-core master commit with the same
subject, but includes a backport of upstream's fix for the fallthrough
warnings rebased to 0.166 (the oe-core patch which targeted 0.168 did
not apply), a rebase of the format-truncation patch, and a backport of
the upstream format-length patch.
Info from OE-Core master patch follows:
From OE-Core rev: aaf4c4f3d09ac3897205417eb15e19d54e0c0d05
From: Joshua Lock <joshua.g.lock@intel.com>
Backport a fix from upstream for a -Wformat-truncation=2 warning
and implement a simple fix for a -Wimplicit-fallthrough warning.
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(From OE-Core rev: 3b91be97ae8c36cd6bad86fed992efc9800f4c9e)
Signed-off-by: Cody P Schafer <dev@codyps.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/elfutils/elfutils_0.166.bb')
-rw-r--r-- | meta/recipes-devtools/elfutils/elfutils_0.166.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.166.bb b/meta/recipes-devtools/elfutils/elfutils_0.166.bb index 5d934281b3..3593c1c1d3 100644 --- a/meta/recipes-devtools/elfutils/elfutils_0.166.bb +++ b/meta/recipes-devtools/elfutils/elfutils_0.166.bb | |||
@@ -18,7 +18,10 @@ SRC_URI += "\ | |||
18 | file://0001-remove-the-unneed-checking.patch \ | 18 | file://0001-remove-the-unneed-checking.patch \ |
19 | file://0001-fix-a-stack-usage-warning.patch \ | 19 | file://0001-fix-a-stack-usage-warning.patch \ |
20 | file://aarch64_uio.patch \ | 20 | file://aarch64_uio.patch \ |
21 | file://Fix_one_GCC7_warning.patch \ | ||
22 | file://0001-Add-GCC7-Wimplicit-fallthrough-support-fixes.patch \ | ||
21 | file://shadow.patch \ | 23 | file://shadow.patch \ |
24 | file://0001-ar-Fix-GCC7-Wformat-length-issues.patch \ | ||
22 | " | 25 | " |
23 | 26 | ||
24 | # pick the patch from debian | 27 | # pick the patch from debian |
@@ -37,6 +40,8 @@ SRC_URI += "\ | |||
37 | file://uclibc-support.patch \ | 40 | file://uclibc-support.patch \ |
38 | file://elfcmp-fix-self-comparision.patch \ | 41 | file://elfcmp-fix-self-comparision.patch \ |
39 | " | 42 | " |
43 | # Fix the patches from Debian with GCC7 | ||
44 | SRC_URI += "file://fallthrough.patch" | ||
40 | SRC_URI_append_libc-musl = " file://0001-build-Provide-alternatives-for-glibc-assumptions-hel.patch " | 45 | SRC_URI_append_libc-musl = " file://0001-build-Provide-alternatives-for-glibc-assumptions-hel.patch " |
41 | 46 | ||
42 | # The buildsystem wants to generate 2 .h files from source using a binary it just built, | 47 | # The buildsystem wants to generate 2 .h files from source using a binary it just built, |