* [meta-fsl-ppc][PATCH V2] usdpaa: remove default -mcpu=e500mc64 in Makefile
@ 2016-03-09 10:43 Hongxu Jia
2016-03-10 3:18 ` Zhenhua Luo
0 siblings, 1 reply; 5+ messages in thread
From: Hongxu Jia @ 2016-03-09 10:43 UTC (permalink / raw)
To: meta-freescale
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.
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
.../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
diff --git a/recipes-dpaa/usdpaa/files/remove-default-mcpu-e500mc64.patch b/recipes-dpaa/usdpaa/files/remove-default-mcpu-e500mc64.patch
new file mode 100644
index 0000000..08581c3
--- /dev/null
+++ b/recipes-dpaa/usdpaa/files/remove-default-mcpu-e500mc64.patch
@@ -0,0 +1,48 @@
+From b28ab3b56b9bf967bf0e6a7f9e446d3c324e324d Mon Sep 17 00:00:00 2001
+From: Hongxu Jia <hongxu.jia@windriver.com>
+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 <hongxu.jia@windriver.com>
+---
+ 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
+
diff --git a/recipes-dpaa/usdpaa/usdpaa_git.bb b/recipes-dpaa/usdpaa/usdpaa_git.bb
index e636261..140a1c0 100644
--- a/recipes-dpaa/usdpaa/usdpaa_git.bb
+++ b/recipes-dpaa/usdpaa/usdpaa_git.bb
@@ -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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [meta-fsl-ppc][PATCH V2] usdpaa: remove default -mcpu=e500mc64 in Makefile
2016-03-09 10:43 [meta-fsl-ppc][PATCH V2] usdpaa: remove default -mcpu=e500mc64 in Makefile Hongxu Jia
@ 2016-03-10 3:18 ` Zhenhua Luo
2016-03-11 8:12 ` [PATCH] usdpaa: add COMPATIBLE_MACHINE Hongxu Jia
0 siblings, 1 reply; 5+ messages in thread
From: Zhenhua Luo @ 2016-03-10 3:18 UTC (permalink / raw)
To: Hongxu Jia; +Cc: meta-freescale@yoctoproject.org
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
> -----Original Message-----
> From: meta-freescale-bounces@yoctoproject.org [mailto:meta-freescale-
> bounces@yoctoproject.org] On Behalf Of Hongxu Jia
> Sent: Wednesday, March 09, 2016 6:44 PM
> To: meta-freescale@yoctoproject.org
> Subject: [meta-freescale] [meta-fsl-ppc][PATCH V2] 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.
>
> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
> ---
> .../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
>
> diff --git a/recipes-dpaa/usdpaa/files/remove-default-mcpu-e500mc64.patch
> b/recipes-dpaa/usdpaa/files/remove-default-mcpu-e500mc64.patch
> new file mode 100644
> index 0000000..08581c3
> --- /dev/null
> +++ b/recipes-dpaa/usdpaa/files/remove-default-mcpu-e500mc64.patch
> @@ -0,0 +1,48 @@
> +From b28ab3b56b9bf967bf0e6a7f9e446d3c324e324d Mon Sep 17 00:00:00
> 2001
> +From: Hongxu Jia <hongxu.jia@windriver.com>
> +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 <hongxu.jia@windriver.com>
> +---
> + 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
> +
> diff --git a/recipes-dpaa/usdpaa/usdpaa_git.bb b/recipes-
> dpaa/usdpaa/usdpaa_git.bb
> index e636261..140a1c0 100644
> --- a/recipes-dpaa/usdpaa/usdpaa_git.bb
> +++ b/recipes-dpaa/usdpaa/usdpaa_git.bb
> @@ -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
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] usdpaa: add COMPATIBLE_MACHINE
2016-03-10 3:18 ` Zhenhua Luo
@ 2016-03-11 8:12 ` Hongxu Jia
2016-03-11 8:18 ` [meta-fsl-ppc] " Hongxu Jia
2016-03-14 5:47 ` Zhenhua Luo
0 siblings, 2 replies; 5+ messages in thread
From: Hongxu Jia @ 2016-03-11 8:12 UTC (permalink / raw)
To: meta-freescale, zhenhua.luo
As usdpaa Makefile shows, 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 <hongxu.jia@windriver.com>
---
recipes-dpaa/usdpaa/usdpaa_git.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/recipes-dpaa/usdpaa/usdpaa_git.bb b/recipes-dpaa/usdpaa/usdpaa_git.bb
index e636261..f0edafe 100644
--- a/recipes-dpaa/usdpaa/usdpaa_git.bb
+++ b/recipes-dpaa/usdpaa/usdpaa_git.bb
@@ -25,3 +25,5 @@ PARALLEL_MAKE_pn-${PN} = ""
COMPATIBLE_HOST_qoriq-ppc = ".*"
COMPATIBLE_HOST ?= "(none)"
+
+COMPATIBLE_MACHINE = "(p2041rdb|p3041ds|p4080ds)"
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [meta-fsl-ppc] [PATCH] usdpaa: add COMPATIBLE_MACHINE
2016-03-11 8:12 ` [PATCH] usdpaa: add COMPATIBLE_MACHINE Hongxu Jia
@ 2016-03-11 8:18 ` Hongxu Jia
2016-03-14 5:47 ` Zhenhua Luo
1 sibling, 0 replies; 5+ messages in thread
From: Hongxu Jia @ 2016-03-11 8:18 UTC (permalink / raw)
To: meta-freescale
Sorry missing sub layer in title
//Hongxu
On 03/11/2016 04:12 PM, Hongxu Jia wrote:
> As usdpaa Makefile shows, 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 <hongxu.jia@windriver.com>
> ---
> recipes-dpaa/usdpaa/usdpaa_git.bb | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/recipes-dpaa/usdpaa/usdpaa_git.bb b/recipes-dpaa/usdpaa/usdpaa_git.bb
> index e636261..f0edafe 100644
> --- a/recipes-dpaa/usdpaa/usdpaa_git.bb
> +++ b/recipes-dpaa/usdpaa/usdpaa_git.bb
> @@ -25,3 +25,5 @@ PARALLEL_MAKE_pn-${PN} = ""
>
> COMPATIBLE_HOST_qoriq-ppc = ".*"
> COMPATIBLE_HOST ?= "(none)"
> +
> +COMPATIBLE_MACHINE = "(p2041rdb|p3041ds|p4080ds)"
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] usdpaa: add COMPATIBLE_MACHINE
2016-03-11 8:12 ` [PATCH] usdpaa: add COMPATIBLE_MACHINE Hongxu Jia
2016-03-11 8:18 ` [meta-fsl-ppc] " Hongxu Jia
@ 2016-03-14 5:47 ` Zhenhua Luo
1 sibling, 0 replies; 5+ messages in thread
From: Zhenhua Luo @ 2016-03-14 5:47 UTC (permalink / raw)
To: Hongxu Jia, meta-freescale@yoctoproject.org
Hi Hongxu,
> -----Original Message-----
> From: Hongxu Jia [mailto:hongxu.jia@windriver.com]
> Sent: Friday, March 11, 2016 4:13 PM
> To: meta-freescale@yoctoproject.org; Zhenhua Luo <zhenhua.luo@nxp.com>
>
> +COMPATIBLE_MACHINE = "(p2041rdb|p3041ds|p4080ds)"
[Luo Zhenhua-B19537] usdpaa are supported on e500mc, e5500, e5500-64b, e6500 and e6500-64b platforms.
Best Regards,
Zhenhua
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-03-14 5:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-09 10:43 [meta-fsl-ppc][PATCH V2] usdpaa: remove default -mcpu=e500mc64 in Makefile Hongxu Jia
2016-03-10 3:18 ` Zhenhua Luo
2016-03-11 8:12 ` [PATCH] usdpaa: add COMPATIBLE_MACHINE Hongxu Jia
2016-03-11 8:18 ` [meta-fsl-ppc] " Hongxu Jia
2016-03-14 5:47 ` Zhenhua Luo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.