[meta-freescale] [meta-fsl-ppc][PATCH] usdpaa: Use TARGET_CC_ARCH instead of hardcoding flags

Zhenhua Luo zhenhua.luo at nxp.com
Sat Sep 17 23:44:40 PDT 2016


The patch is merged in master-next, it will be merged in master when sanity test is done.


Best Regards,

Zhenhua

From: meta-freescale-bounces at yoctoproject.org [mailto:meta-freescale-bounces at yoctoproject.org] On Behalf Of sujith h
Sent: Thursday, September 15, 2016 4:58 PM
To: meta-freescale at yoctoproject.org
Subject: Re: [meta-freescale] [meta-fsl-ppc][PATCH] usdpaa: Use TARGET_CC_ARCH instead of hardcoding flags

Hi,
Let me know if I need to do some work on this patch. If so I would be glad to do so.
Thanks,
Sujith H

On Mon, Sep 12, 2016 at 3:13 PM, Sujith H <sujith.h at gmail.com<mailto:sujith.h at gmail.com>> wrote:
From: Fahad Arslan <Fahad_Arslan at mentor.com<mailto:Fahad_Arslan at mentor.com>>

Using TARGET_CC_ARCH would avoid using hardcoded flags

Signed-off-by: Fahad Arslan <Fahad_Arslan at mentor.com<mailto:Fahad_Arslan at mentor.com>>
---
 ...ARGET_CC_ARCH-instead-of-hardcoding-flags.patch | 26 ++++++++++++++++++++++
 recipes-dpaa/usdpaa/usdpaa_git.bb<http://usdpaa_git.bb>                  |  3 ++-
 2 files changed, 28 insertions(+), 1 deletion(-)
 create mode 100644 recipes-dpaa/usdpaa/files/0001-Use-TARGET_CC_ARCH-instead-of-hardcoding-flags.patch

diff --git a/recipes-dpaa/usdpaa/files/0001-Use-TARGET_CC_ARCH-instead-of-hardcoding-flags.patch b/recipes-dpaa/usdpaa/files/0001-Use-TARGET_CC_ARCH-instead-of-hardcoding-flags.patch
new file mode 100644
index 0000000..afb42df
--- /dev/null
+++ b/recipes-dpaa/usdpaa/files/0001-Use-TARGET_CC_ARCH-instead-of-hardcoding-flags.patch
@@ -0,0 +1,26 @@
+From ab1448138439adb8c96197d1d1436576332ce266 Mon Sep 17 00:00:00 2001
+From: Fahad Arslan <Fahad_Arslan at mentor.com<mailto:Fahad_Arslan at mentor.com>>
+Date: Mon, 12 Sep 2016 14:54:21 +0530
+Subject: [PATCH] Use TARGET_CC_ARCH instead of hardcoding flags
+
+Signed-off-by: Fahad Arslan <Fahad_Arslan at mentor.com<mailto:Fahad_Arslan at mentor.com>>
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 5b47cf7..ac51f3c 100644
+--- a/Makefile
++++ b/Makefile
+@@ -38,7 +38,7 @@ ifneq (distclean,$(MAKECMDGOALS))
+    $(ARCH)_SPEC_DEFINE        := _FILE_OFFSET_BITS=64 CONFIG_PPC32
+    $(ARCH)_SPEC_INC_PATH:=
+    $(ARCH)_SPEC_LIB_PATH:=
+-   $(ARCH)_SPEC_CFLAGS        := -mcpu=e500mc
++   $(ARCH)_SPEC_CFLAGS        := $(TARGET_CC_ARCH)
+    $(ARCH)_SPEC_LDFLAGS       :=
+    LIBDIR               ?= lib
+  else ifeq (powerpc64,$(ARCH))
+--
+1.9.1
+
diff --git a/recipes-dpaa/usdpaa/usdpaa_git.bb<http://usdpaa_git.bb> b/recipes-dpaa/usdpaa/usdpaa_git.bb<http://usdpaa_git.bb>
index 44d28fe..ac71491 100644
--- a/recipes-dpaa/usdpaa/usdpaa_git.bb<http://usdpaa_git.bb>
+++ b/recipes-dpaa/usdpaa/usdpaa_git.bb<http://usdpaa_git.bb>
@@ -9,7 +9,8 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"

 DEPENDS += "flib"

-SRC_URI = "git://git.freescale.com/ppc/sdk/usdpaa.git;branch=sdk-v2.0.x<http://git.freescale.com/ppc/sdk/usdpaa.git;branch=sdk-v2.0.x>"
+SRC_URI = "git://git.freescale.com/ppc/sdk/usdpaa.git;branch=sdk-v2.0.x<http://git.freescale.com/ppc/sdk/usdpaa.git;branch=sdk-v2.0.x> \
+           file://0001-Use-TARGET_CC_ARCH-instead-of-hardcoding-flags.patch<file:///\\0001-Use-TARGET_CC_ARCH-instead-of-hardcoding-flags.patch>"
 SRCREV = "940d8f7f989c567b8c554ddba7bc4f0f4f21eb11"

 S = "${WORKDIR}/git"
--
1.9.1



--
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
<Project>Contributor to Yocto project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info
C-x C-c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20160918/1a5a55fd/attachment.html>


More information about the meta-freescale mailing list