Skip to contentSkip to conversation

usdpaa: Use TARGET_CC_ARCH instead of hardcoding flags

PATCH In review Sujith H 2 participants 3 messages Sep 12, 2016 – Sep 18, 2016

lore
Share & tools
lore

Sujith H

author
#0 lore raw

PATCH 1/1 usdpaa: Use TARGET_CC_ARCH instead of hardcoding flags

From: Fahad Arslan <[email protected]>

Using TARGET_CC_ARCH would avoid using hardcoded flags

---
 ...ARGET_CC_ARCH-instead-of-hardcoding-flags.patch | 26 ++++++++++++++++++++++
 recipes-dpaa/usdpaa/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
recipes-dpaa/usdpaa/files/0001-Use-TARGET_CC_ARCH-instead-of-hardcoding-flags.patch new file +26 -0
new file mode 100644
index 0000000..afb42df
@@ -0,0 +1,26 @@
+From ab1448138439adb8c96197d1d1436576332ce266 Mon Sep 17 00:00:00 2001
+From: Fahad Arslan <[email protected]>
+Date: Mon, 12 Sep 2016 14:54:21 +0530
+Subject: [PATCH] Use TARGET_CC_ARCH instead of hardcoding flags
+
+Signed-off-by: Fahad Arslan <[email protected]>
+---
+ 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
+
recipes-dpaa/usdpaa/usdpaa_git.bb +2 -1
index 44d28fe..ac71491 100644
@@ -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"
+SRC_URI = "git://git.freescale.com/ppc/sdk/usdpaa.git;branch=sdk-v2.0.x \
+           file://0001-Use-TARGET_CC_ARCH-instead-of-hardcoding-flags.patch"
 SRCREV = "940d8f7f989c567b8c554ddba7bc4f0f4f21eb11"
 
 S = "${WORKDIR}/git"
Signature · 1 line
1.9.1
author
#1 lore raw

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

Quoted 68 lines · Sujith H

From: Fahad Arslan <[email protected]>

Using TARGET_CC_ARCH would avoid using hardcoded flags

---
 ...ARGET_CC_ARCH-instead-of-hardcoding-flags.patch | 26
++++++++++++++++++++++
 recipes-dpaa/usdpaa/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

(quoted diff) +0 -0

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

recipes-dpaa/usdpaa/files/0001-Use-TARGET_CC_ARCH- new file +0 -0

instead-of-hardcoding-flags.patch

recipes-dpaa/usdpaa/files/0001-Use-TARGET_CC_ARCH- new file +26 -0
@@ -0,0 +1,26 @@
+From ab1448138439adb8c96197d1d1436576332ce266 Mon Sep 17 00:00:00 2001
+From: Fahad Arslan <[email protected]>
+Date: Mon, 12 Sep 2016 14:54:21 +0530
+Subject: [PATCH] Use TARGET_CC_ARCH instead of hardcoding flags
+
+Signed-off-by: Fahad Arslan <[email protected]>
+---
+ 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
+
recipes-dpaa/usdpaa/ renamed from recipes-dpaa/usdpaa/usdpaa_git.bb +0 -0

usdpaa_git.bb
index 44d28fe..ac71491 100644

recipes-dpaa/usdpaa/usdpaa_git.bb +2 -1
@@ -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"
+SRC_URI = "git://git.freescale.com/ppc/sdk/usdpaa.git;branch=sdk-v2.0.x \
+           file://0001-Use-TARGET_CC_ARCH-instead-of-hardcoding-

flags.patch"
SRCREV = "940d8f7f989c567b8c554ddba7bc4f0f4f21eb11"

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

Signature · 7 lines
സുജിത് ഹരിദാസന്
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
#2 lore raw

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

Best Regards,

Zhenhua

From: [email protected] [mailto:[email protected]] On Behalf Of sujith h
Sent: Thursday, September 15, 2016 4:58 PM
To: [email protected]
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 <[email protected]<mailto:[email protected]>> wrote:
From: Fahad Arslan <[email protected]<mailto:[email protected]>>

Using TARGET_CC_ARCH would avoid using hardcoded flags

---
 ...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
recipes-dpaa/usdpaa/files/0001-Use-TARGET_CC_ARCH-instead-of-hardcoding-flags.patch new file +26 -0
new file mode 100644
index 0000000..afb42df
@@ -0,0 +1,26 @@
+From ab1448138439adb8c96197d1d1436576332ce266 Mon Sep 17 00:00:00 2001
+From: Fahad Arslan <[email protected]<mailto:[email protected]>>
+Date: Mon, 12 Sep 2016 14:54:21 +0530
+Subject: [PATCH] Use TARGET_CC_ARCH instead of hardcoding flags
+
+Signed-off-by: Fahad Arslan <[email protected]<mailto:[email protected]>>
+---
+ 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
+
recipes-dpaa/usdpaa/usdpaa_git.bb<http://usdpaa_git.bb> +2 -1
index 44d28fe..ac71491 100644
@@ -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