Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id 2EC80607F8 for ; Fri, 2 Jun 2017 23:07:45 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id v52N7kL0018299 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Fri, 2 Jun 2017 16:07:46 -0700 (PDT) Received: from ala-jslater-lx3.wrs.com (147.11.152.42) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.294.0; Fri, 2 Jun 2017 16:07:46 -0700 From: Joe Slater To: Date: Fri, 2 Jun 2017 16:07:46 -0700 Message-ID: <1496444866-17811-1-git-send-email-jslater@windriver.com> X-Mailer: git-send-email 1.7.3.4 MIME-Version: 1.0 Subject: [PATCH 1/1] tcf-agent: correct CFLAGS X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2017 23:07:47 -0000 Content-Type: text/plain Modify CFLAGS for several cases which will not compile otherwise. Do not use the form CFLAGS_x_append because it will replace, not append to CFLAGS for override x. Signed-off-by: Joe Slater --- meta/recipes-devtools/tcf-agent/tcf-agent_git.bb | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb b/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb index 1dad825..5558a59 100644 --- a/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb +++ b/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb @@ -35,17 +35,18 @@ MAKE_OS = "`echo ${TARGET_OS} | sed s,^linux.*,GNU/Linux,`" EXTRA_OEMAKE = "MACHINE=${MAKE_ARCH} OPSYS=${MAKE_OS} 'CC=${CC}' 'AR=${AR}'" -# These features don't compile on mips and libc-musl -CFLAGS_mips_append = "-DSERVICE_RunControl=0 -DSERVICE_Breakpoints=0 \ - -DSERVICE_Memory=0 -DSERVICE_Registers=0 -DSERVICE_MemoryMap=0 \ - -DSERVICE_StackTrace=0 -DSERVICE_Expressions=0" -CFLAGS_mips64_append = "-DSERVICE_RunControl=0 -DSERVICE_Breakpoints=0 \ - -DSERVICE_Memory=0 -DSERVICE_Registers=0 -DSERVICE_MemoryMap=0 \ - -DSERVICE_StackTrace=0 -DSERVICE_Expressions=0" -CFLAGS_append_libc-musl = "-DSERVICE_RunControl=0 -DSERVICE_Breakpoints=0 \ +lcl_stop_services = "-DSERVICE_RunControl=0 -DSERVICE_Breakpoints=0 \ -DSERVICE_Memory=0 -DSERVICE_Registers=0 -DSERVICE_MemoryMap=0 \ -DSERVICE_StackTrace=0 -DSERVICE_Expressions=0" + +# These features don't compile for several cases. +# +CFLAGS_append_mips = " ${lcl_stop_services}" +CFLAGS_append_mips64 = " ${lcl_stop_services}" +CFLAGS_append_libc-musl = " ${lcl_stop_services}" +CFLAGS_append_powerpc64 = " ${lcl_stop_services}" + do_install() { oe_runmake install INSTALLROOT=${D} install -d ${D}${sysconfdir}/init.d/ -- 2.7.4