diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-09-09 08:24:05 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-23 09:53:01 +0100 |
commit | cdfd96eb92415a1b3eaf603ffc4a35978985ade4 (patch) | |
tree | a587c2edd202ae5270bd481aa278deb19289e14c /meta/recipes-bsp | |
parent | 01416520c37f219e3c3f4abfd6f69a5563325568 (diff) | |
download | poky-cdfd96eb92415a1b3eaf603ffc4a35978985ade4.tar.gz |
gummiboot: Fix build warnings seen with gcc5
gummiboot uses -mno-sse so we should disble using sse for mfpmath as
well
Fix syntax errors in struct defines
(From OE-Core rev: 2593dc1936d7e477769753b8c8f97b988ecc8823)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r-- | meta/recipes-bsp/gummiboot/gummiboot/0001-console-Fix-C-syntax-errors-for-function-declaration.patch | 74 | ||||
-rw-r--r-- | meta/recipes-bsp/gummiboot/gummiboot_git.bb | 3 |
2 files changed, 77 insertions, 0 deletions
diff --git a/meta/recipes-bsp/gummiboot/gummiboot/0001-console-Fix-C-syntax-errors-for-function-declaration.patch b/meta/recipes-bsp/gummiboot/gummiboot/0001-console-Fix-C-syntax-errors-for-function-declaration.patch new file mode 100644 index 0000000000..fa50bc4a6e --- /dev/null +++ b/meta/recipes-bsp/gummiboot/gummiboot/0001-console-Fix-C-syntax-errors-for-function-declaration.patch | |||
@@ -0,0 +1,74 @@ | |||
1 | From 55957faf1272c8f5f304909faeebf647a78e3701 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 9 Sep 2015 07:19:45 +0000 | ||
4 | Subject: [PATCH] console: Fix C syntax errors for function declaration | ||
5 | |||
6 | To address this, the semicolons after the function parameters should be | ||
7 | replaced by commas, and the last one should be omitted | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | Upstream-Status: Pending | ||
12 | |||
13 | src/efi/console.c | 26 +++++++++++++------------- | ||
14 | 1 file changed, 13 insertions(+), 13 deletions(-) | ||
15 | |||
16 | diff --git a/src/efi/console.c b/src/efi/console.c | ||
17 | index 6206c80..66aa88f 100644 | ||
18 | --- a/src/efi/console.c | ||
19 | +++ b/src/efi/console.c | ||
20 | @@ -27,8 +27,8 @@ | ||
21 | struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL; | ||
22 | |||
23 | typedef EFI_STATUS (EFIAPI *EFI_INPUT_RESET_EX)( | ||
24 | - struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This; | ||
25 | - BOOLEAN ExtendedVerification; | ||
26 | + struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, | ||
27 | + BOOLEAN ExtendedVerification | ||
28 | ); | ||
29 | |||
30 | typedef UINT8 EFI_KEY_TOGGLE_STATE; | ||
31 | @@ -44,29 +44,29 @@ typedef struct { | ||
32 | } EFI_KEY_DATA; | ||
33 | |||
34 | typedef EFI_STATUS (EFIAPI *EFI_INPUT_READ_KEY_EX)( | ||
35 | - struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This; | ||
36 | - EFI_KEY_DATA *KeyData; | ||
37 | + struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, | ||
38 | + EFI_KEY_DATA *KeyData | ||
39 | ); | ||
40 | |||
41 | typedef EFI_STATUS (EFIAPI *EFI_SET_STATE)( | ||
42 | - struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This; | ||
43 | - EFI_KEY_TOGGLE_STATE *KeyToggleState; | ||
44 | + struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, | ||
45 | + EFI_KEY_TOGGLE_STATE *KeyToggleState | ||
46 | ); | ||
47 | |||
48 | typedef EFI_STATUS (EFIAPI *EFI_KEY_NOTIFY_FUNCTION)( | ||
49 | - EFI_KEY_DATA *KeyData; | ||
50 | + EFI_KEY_DATA *KeyData | ||
51 | ); | ||
52 | |||
53 | typedef EFI_STATUS (EFIAPI *EFI_REGISTER_KEYSTROKE_NOTIFY)( | ||
54 | - struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This; | ||
55 | - EFI_KEY_DATA KeyData; | ||
56 | - EFI_KEY_NOTIFY_FUNCTION KeyNotificationFunction; | ||
57 | - VOID **NotifyHandle; | ||
58 | + struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, | ||
59 | + EFI_KEY_DATA KeyData, | ||
60 | + EFI_KEY_NOTIFY_FUNCTION KeyNotificationFunction, | ||
61 | + VOID **NotifyHandle | ||
62 | ); | ||
63 | |||
64 | typedef EFI_STATUS (EFIAPI *EFI_UNREGISTER_KEYSTROKE_NOTIFY)( | ||
65 | - struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This; | ||
66 | - VOID *NotificationHandle; | ||
67 | + struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, | ||
68 | + VOID *NotificationHandle | ||
69 | ); | ||
70 | |||
71 | typedef struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL { | ||
72 | -- | ||
73 | 2.5.1 | ||
74 | |||
diff --git a/meta/recipes-bsp/gummiboot/gummiboot_git.bb b/meta/recipes-bsp/gummiboot/gummiboot_git.bb index 91c3db9306..376ab542dd 100644 --- a/meta/recipes-bsp/gummiboot/gummiboot_git.bb +++ b/meta/recipes-bsp/gummiboot/gummiboot_git.bb | |||
@@ -13,6 +13,7 @@ PV = "48+git${SRCPV}" | |||
13 | SRCREV = "2bcd919c681c952eb867ef1bdb458f1bc49c2d55" | 13 | SRCREV = "2bcd919c681c952eb867ef1bdb458f1bc49c2d55" |
14 | SRC_URI = "git://anongit.freedesktop.org/gummiboot \ | 14 | SRC_URI = "git://anongit.freedesktop.org/gummiboot \ |
15 | file://fix-objcopy.patch \ | 15 | file://fix-objcopy.patch \ |
16 | file://0001-console-Fix-C-syntax-errors-for-function-declaration.patch \ | ||
16 | " | 17 | " |
17 | 18 | ||
18 | # Note: Add COMPATIBLE_HOST here is only because it depends on gnu-efi | 19 | # Note: Add COMPATIBLE_HOST here is only because it depends on gnu-efi |
@@ -28,6 +29,8 @@ EXTRA_OECONF = "--disable-manpages --with-efi-includedir=${STAGING_INCDIR} \ | |||
28 | 29 | ||
29 | EXTRA_OEMAKE += "gummibootlibdir=${libdir}/gummiboot" | 30 | EXTRA_OEMAKE += "gummibootlibdir=${libdir}/gummiboot" |
30 | 31 | ||
32 | TUNE_CCARGS_remove = "-mfpmath=sse" | ||
33 | |||
31 | do_deploy () { | 34 | do_deploy () { |
32 | install ${B}/gummiboot*.efi ${DEPLOYDIR} | 35 | install ${B}/gummiboot*.efi ${DEPLOYDIR} |
33 | } | 36 | } |