[meta-freescale] [meta-fsl-ppc][PATCH V2] usdpaa: remove default -mcpu=e500mc64 in Makefile
Zhenhua Luo
zhenhua.luo at nxp.com
Wed Mar 9 19:18:27 PST 2016
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 at yoctoproject.org [mailto:meta-freescale-
> bounces at yoctoproject.org] On Behalf Of Hongxu Jia
> Sent: Wednesday, March 09, 2016 6:44 PM
> To: meta-freescale at 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 at 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 at 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 at 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 at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
More information about the meta-freescale
mailing list