usdpaa: remove default -mcpu=e500mc64 in Makefile
PATCH v2 1/1 usdpaa: remove default -mcpu=e500mc64 in Makefile
It explicitly support -mcpu=e500mc64 by default, for p1022ds bsp (ppce500v2), the cpu type is '-mcpu=8554' which causes compile failed.
...
| [CC] process.c (lib:usdpaa_process) | src/process/process.c:1:0: error: SPE not supported in this target | /* Copyright (c) 2011 Freescale Semiconductor, Inc. | ^ | make: *** [src/process/objs_powerpc/usdpaa_process_process.o] Error 1
...
Remove default -mcpu=e500mc64 in Makefile could fix the issue.
--- .../files/remove-default-mcpu-e500mc64.patch | 48 ++++++++++++++++++++++ recipes-dpaa/usdpaa/usdpaa_git.bb | 4 +- 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 recipes-dpaa/usdpaa/files/remove-default-mcpu-e500mc64.patch
recipes-dpaa/usdpaa/files/remove-default-mcpu-e500mc64.patch new file +48 -0
@@ -0,0 +1,48 @@ +From b28ab3b56b9bf967bf0e6a7f9e446d3c324e324d Mon Sep 17 00:00:00 2001 +From: Hongxu Jia <[email protected]> +Date: Wed, 9 Mar 2016 05:20:41 -0500 +Subject: [PATCH] Makefile: remove default -mcpu=e500mc64 + +When cpu type is not e500mc64, there is build failure +... +| [CC] process.c (lib:usdpaa_process) +| src/process/process.c:1:0: error: SPE not supported in this target +| /* Copyright (c) 2011 Freescale Semiconductor, Inc. +| ^ +| make: *** [src/process/objs_powerpc/usdpaa_process_process.o] Error 1 +... + +Remove it could fix the issue + +Upstream-Status: Pending + +Signed-off-by: Hongxu Jia <[email protected]> +--- + Makefile | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Makefile b/Makefile +index a926eb2..8087b18 100644 +--- a/Makefile ++++ b/Makefile +@@ -38,7 +38,7 @@ ifneq (distclean,$(MAKECMDGOALS)) + $(ARCH)_SPEC_DEFINE := _FILE_OFFSET_BITS=64 + $(ARCH)_SPEC_INC_PATH:= + $(ARCH)_SPEC_LIB_PATH:= +- $(ARCH)_SPEC_CFLAGS := -mcpu=e500mc ++ $(ARCH)_SPEC_CFLAGS := + $(ARCH)_SPEC_LDFLAGS := + LIBDIR ?= lib + else +@@ -47,7 +47,7 @@ ifneq (distclean,$(MAKECMDGOALS)) + $(ARCH)_SPEC_DEFINE := + $(ARCH)_SPEC_INC_PATH:= + $(ARCH)_SPEC_LIB_PATH:= +- $(ARCH)_SPEC_CFLAGS := -mcpu=e500mc64 -m64 ++ $(ARCH)_SPEC_CFLAGS := -m64 + $(ARCH)_SPEC_LDFLAGS := + LIBDIR ?= lib64 + else +-- +1.9.1 +
recipes-dpaa/usdpaa/usdpaa_git.bb +3 -1
@@ -9,7 +9,9 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" DEPENDS += "flib" -SRC_URI = "git://git.freescale.com/ppc/sdk/usdpaa.git;branch=sdk-v1.9.x" +SRC_URI = "git://git.freescale.com/ppc/sdk/usdpaa.git;branch=sdk-v1.9.x \ + file://remove-default-mcpu-e500mc64.patch \ +" SRCREV = "b73546dc923d9f3df92af08c2ebaf36d83ab96ea" S = "${WORKDIR}/git"
Signature · 1 line
1.9.1
Hi Hongxu,
The e500v2 targets don't support usdpaa.
Can you submit a patch to add COMPATIBLE_MACHINE to limit the supported machines.
Best Regards,
Zhenhua
Quoted 106 lines
-----Original Message-----
From: [email protected] [mailto:meta-freescale- [email protected]] On Behalf Of Hongxu Jia
Sent: Wednesday, March 09, 2016 6:44 PM
To: [email protected]
Subject: [meta-freescale] [meta-fsl-ppc][PATCH V2] usdpaa: remove default - mcpu=e500mc64 inMakefileIt explicitly support -mcpu=e500mc64 by default, for p1022ds bsp (ppce500v2), the cpu type is '-mcpu=8554' which causes compile failed.
...| [CC] process.c (lib:usdpaa_process) | src/process/process.c:1:0: error: SPE not supported in this target | /* Copyright (c) 2011 Freescale Semiconductor, Inc. | ^ | make: *** [src/process/objs_powerpc/usdpaa_process_process.o] Error 1...
Remove default -mcpu=e500mc64 in
Makefilecould fix the issue.Signed-off-by Hongxu Jia <[email protected]>--- .../files/remove-default-mcpu-e500mc64.patch | 48 ++++++++++++++++++++++ recipes-dpaa/usdpaa/usdpaa_git.bb | 4 +- 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 recipes-
dpaa/usdpaa/files/remove-default-mcpu-e500mc64.patchrecipes-dpaa/usdpaa/files/remove-default-mcpu-e500mc64.patch new file +1
-0@@ -0,0 +1,48 @@ +From b28ab3b56b9bf967bf0e6a7f9e446d3c324e324d Mon Sep 17 00:00:002001
recipes-dpaa/usdpaa/files/remove-default-mcpu-e500mc64.patch new file +46
-0+From: Hongxu Jia <[email protected]> +Date: Wed, 9 Mar 2016 05:20:41 -0500 +Subject: [PATCH] Makefile: remove default -mcpu=e500mc64 + +When cpu type is not e500mc64, there is build failure ... +| [CC] process.c (lib:usdpaa_process) +| src/process/process.c:1:0: error: SPE not supported in this target +| /* Copyright (c) 2011 Freescale Semiconductor, Inc. +| ^ +| make: *** [src/process/objs_powerpc/usdpaa_process_process.o] Error 1 +... + +Remove it could fix the issue + +Upstream-Status: Pending + +Signed-off-by: Hongxu Jia <[email protected]> +--- + Makefile | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Makefile b/Makefile +index a926eb2..8087b18 100644 +--- a/Makefile ++++ b/Makefile +@@ -38,7 +38,7 @@ ifneq (distclean,$(MAKECMDGOALS)) + $(ARCH)_SPEC_DEFINE := _FILE_OFFSET_BITS=64 + $(ARCH)_SPEC_INC_PATH:= + $(ARCH)_SPEC_LIB_PATH:= +- $(ARCH)_SPEC_CFLAGS := -mcpu=e500mc ++ $(ARCH)_SPEC_CFLAGS := + $(ARCH)_SPEC_LDFLAGS := + LIBDIR ?= lib + else +@@ -47,7 +47,7 @@ ifneq (distclean,$(MAKECMDGOALS)) + $(ARCH)_SPEC_DEFINE := + $(ARCH)_SPEC_INC_PATH:= + $(ARCH)_SPEC_LIB_PATH:= +- $(ARCH)_SPEC_CFLAGS := -mcpu=e500mc64 -m64 ++ $(ARCH)_SPEC_CFLAGS := -m64 + $(ARCH)_SPEC_LDFLAGS := + LIBDIR ?= lib64 + else +-- +1.9.1 +recipes- renamed from recipes-dpaa/usdpaa/usdpaa_git.bb +0
-0dpaa/usdpaa/usdpaa_git.bb
index e636261..140a1c0 100644recipes-dpaa/usdpaa/usdpaa_git.bb +2
-2@@ -9,7 +9,9 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" DEPENDS += "flib" -SRC_URI = "git://git.freescale.com/ppc/sdk/usdpaa.git;branch=sdk-v1.9.x" +SRC_URI = "git://git.freescale.com/ppc/sdk/usdpaa.git;branch=sdk-v1.9.x \ + file://remove-default-mcpu-e500mc64.patch \ " SRCREV = "b73546dc923d9f3df92af08c2ebaf36d83ab96ea" S = "${WORKDIR}/git" --1.9.1
--
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale
PATCH 1/1 usdpaa: add COMPATIBLE_MACHINE
As usdpaa Makefile shows, it only support '-mcpu=e500mc' or '-mcpu=e500mc64'.
With a simple search in meta-fsl-ppc, add specific compatible machine.
--- recipes-dpaa/usdpaa/usdpaa_git.bb | 2 ++ 1 file changed, 2 insertions(+)
recipes-dpaa/usdpaa/usdpaa_git.bb +2 -0
@@ -25,3 +25,5 @@ PARALLEL_MAKE_pn-${PN} = "" COMPATIBLE_HOST_qoriq-ppc = ".*" COMPATIBLE_HOST ?= "(none)" + +COMPATIBLE_MACHINE = "(p2041rdb|p3041ds|p4080ds)"
Signature · 1 line
1.9.1
Re: [meta-fsl-ppc] [PATCH] usdpaa: add COMPATIBLE_MACHINE
Sorry missing sub layer in title
//Hongxu
Quoted 20 lines · Hongxu Jia
As usdpaa
Makefileshows, it only support '-mcpu=e500mc' or '-mcpu=e500mc64'.With a simple search in meta-fsl-ppc, add specific compatible machine.
Signed-off-by Hongxu Jia <[email protected]>--- recipes-dpaa/usdpaa/usdpaa_git.bb | 2 ++ 1 file changed, 2 insertions(+)recipes-dpaa/usdpaa/usdpaa_git.bb +2
-0@@ -25,3 +25,5 @@ PARALLEL_MAKE_pn-${PN} = "" COMPATIBLE_HOST_qoriq-ppc = ".*" COMPATIBLE_HOST ?= "(none)" + +COMPATIBLE_MACHINE = "(p2041rdb|p3041ds|p4080ds)"
Re: [PATCH] usdpaa: add COMPATIBLE_MACHINE
In reply to Hongxu JiaHi Hongxu,
Quoted 6 lines
-----Original Message-----
From: Hongxu Jia [mailto:[email protected]]
Sent: Friday, March 11, 2016 4:13 PM
To: [email protected]; Zhenhua Luo <[email protected]>+COMPATIBLE_MACHINE = "(p2041rdb|p3041ds|p4080ds)"
[Luo Zhenhua-B19537] usdpaa are supported on e500mc, e5500, e5500-64b, e6500 and e6500-64b platforms.
Best Regards,
Zhenhua