From: Zhenhua Luo Date: Wed, 12 Aug 2015 14:42:16 +0000 (+0800) Subject: apptrk: Update recipe to support both QorIQ ARM and QorIQ PPC targets X-Git-Tag: 2.1~400 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=e91d77daebaec5c83f5bc4ef36970b098a7ba751;p=meta-freescale.git apptrk: Update recipe to support both QorIQ ARM and QorIQ PPC targets * Conditionally define EXTRA_OEMAKE and CFLAGS * Add COMPATIBLE_MACHINE Signed-off-by: Zhenhua Luo Acked-by: Daiane Angolini Signed-off-by: Otavio Salvador --- diff --git a/recipes-bsp/apptrk/apptrk_git.bb b/recipes-bsp/apptrk/apptrk_git.bb index 1d251070..cef12927 100644 --- a/recipes-bsp/apptrk/apptrk_git.bb +++ b/recipes-bsp/apptrk/apptrk_git.bb @@ -15,11 +15,15 @@ SRCREV = "cbed10997c5e2a4aaa004fb0e1efec858bf1bbe1" S = "${WORKDIR}/git" -EXTRA_OEMAKE = "" +EXTRA_OEMAKE_qoriq-arm = "ARCH=arm" -CFLAGS += " -I${STAGING_INCDIR}" -CFLAGS_append_powerpc64 = " -DENABLE_64BIT_SUPPORT" +CFLAGS += "-I${STAGING_INCDIR} -ISource/Linux -ISource/Portable" +CFLAGS_qoriq-arm += "-ISource/Linux_ARM -ISource/ARM" +CFLAGS_qoriq-ppc += "-ISource/Linux_PA -ISource/PA -DPPC" +CFLAGS_powerpc64 += "-DENABLE_64BIT_SUPPORT" do_install() { oe_runmake install DESTDIR=${D} } + +COMPATIBLE_MACHINE = "(qoriq)"