From 8c65ee48730882afd0f99ac10acbbe46ecc5c48d Mon Sep 17 00:00:00 2001 From: Thuy Tran Date: Tue, 17 Jul 2018 16:08:23 +0700 Subject: rcar-gen3: adsp-if-module: WORKAROUND to fix compile error with GCC 8.1 Current ADSP source code will get compilation error with GCC 8.1 due to new command-line option -Wpacked-not-aligned have been added for the C and C++ compilers. | In file included from ./include/xf-ap.h:46, from proxy/xf-proxy.c:26: | ./include/xf-ap-msg.h:128:1: error: alignment 1 of 'struct xf_ext_param_msg' is less than 4 [-Werror=packed-not-ali| gned] | } __attribute__ ((__packed__)) xf_ext_param_msg_t; | ^ | In file included from ./include/xf-ap.h:46, from proxy/xf-trace.c:20: | ./include/xf-ap-msg.h:128:1: error: alignment 1 of 'struct xf_ext_param_msg' is less than 4 [-Werror=packed-not-ali| gned] | } __attribute__ ((__packed__)) xf_ext_param_msg_t; | ^ This commit silenced -Wpacked-not-aligned errors when compiling this ADSP module. Signed-off-by: Thuy Tran Signed-off-by: Takamitsu Honda --- meta-rcar-gen3/recipes-multimedia/adsp-module/adsp-if-module.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-rcar-gen3/recipes-multimedia/adsp-module/adsp-if-module.bb b/meta-rcar-gen3/recipes-multimedia/adsp-module/adsp-if-module.bb index 1689746..52b2627 100644 --- a/meta-rcar-gen3/recipes-multimedia/adsp-module/adsp-if-module.bb +++ b/meta-rcar-gen3/recipes-multimedia/adsp-module/adsp-if-module.bb @@ -19,6 +19,7 @@ do_configure[noexec] = "1" # Don't use EXTRA_OEMAKE default value to avoid default CFLAGS, LDFLAGS # of poky override the CFLAGS, LDFLAGS inside RCG3AHIFL4101ZDP/Makefile EXTRA_OEMAKE = "INCSHARED=${STAGING_INCDIR}" +CFLAGS += "-Wno-packed-not-aligned" do_compile() { cd ${S} -- cgit 1.2.3-korg