aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFahad Arslan <Fahad_Arslan@mentor.com>2016-09-12 15:13:29 +0530
committerZhenhua Luo <zhenhua.luo@nxp.com>2016-09-18 14:36:36 +0800
commit520c753c38ec9fb9d6b9c6c63933ed6c658b4b7c (patch)
tree4f745dc9137a6bf277103a6ec53955c63c8a9919
parent87de9aeb0cb727cb5486bcb10acb45ddad7284af (diff)
downloadmeta-fsl-ppc-520c753c38ec9fb9d6b9c6c63933ed6c658b4b7c.tar.gz
meta-fsl-ppc-520c753c38ec9fb9d6b9c6c63933ed6c658b4b7c.tar.bz2
meta-fsl-ppc-520c753c38ec9fb9d6b9c6c63933ed6c658b4b7c.zip
usdpaa: Use TARGET_CC_ARCH instead of hardcoding flags
Using TARGET_CC_ARCH would avoid using hardcoded flags Signed-off-by: Fahad Arslan <Fahad_Arslan@mentor.com>
-rw-r--r--recipes-dpaa/usdpaa/files/0001-Use-TARGET_CC_ARCH-instead-of-hardcoding-flags.patch26
-rw-r--r--recipes-dpaa/usdpaa/usdpaa_git.bb3
2 files changed, 28 insertions, 1 deletions
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@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@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 b/recipes-dpaa/usdpaa/usdpaa_git.bb
index 44d28fe..ac71491 100644
--- a/recipes-dpaa/usdpaa/usdpaa_git.bb
+++ b/recipes-dpaa/usdpaa/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"
+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"