[OE-core] [PATCH 1/2] grub: Enhance Waddress-of-packed-member patch to cover x86_64 testcase

akuster808 akuster808 at gmail.com
Sun Mar 3 01:57:32 UTC 2019



On 3/2/19 4:38 PM, Khem Raj wrote:
> This was not compiled last time when testing aarch64

The subject and body have conflicting archs.
is it both?
- armin
>
> Signed-off-by: Khem Raj <raj.khem at gmail.com>
> ---
>  .../files/disable-address-of-packed-member.patch    | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
>
> diff --git a/meta/recipes-bsp/grub/files/disable-address-of-packed-member.patch b/meta/recipes-bsp/grub/files/disable-address-of-packed-member.patch
> index 4af6a599d5..415f52ebe3 100644
> --- a/meta/recipes-bsp/grub/files/disable-address-of-packed-member.patch
> +++ b/meta/recipes-bsp/grub/files/disable-address-of-packed-member.patch
> @@ -247,3 +247,16 @@ Signed-off-by: Khem Raj <raj.khem at gmail.com>
>   
>   static grub_dl_t my_mod;
>   
> +--- a/grub-core/commands/usbtest.c
> ++++ b/grub-core/commands/usbtest.c
> +@@ -63,6 +63,10 @@ static const char *usb_devspeed[] =
> +     "High"
> +   };
> + 
> ++#if __GNUC__ >= 9
> ++#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
> ++#endif
> ++
> + static grub_usb_err_t
> + grub_usb_get_string (grub_usb_device_t dev, grub_uint8_t index, int langid,
> + 		     char **string)




More information about the Openembedded-core mailing list