* [PATCH] ARM: at91: fix pm_suspend.S compilation when ARMv6 is selected
@ 2015-03-19 20:14 ` Alexandre Belloni
0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Belloni @ 2015-03-19 20:14 UTC (permalink / raw)
To: linux-arm-kernel
When compiling for multiplatform for both ARMv6 and ARMv7, the default compiler
flags are for ARMv6, and results in:
arch/arm/mach-at91/pm_suspend.S:144: Error: selected processor does not support ARM mode `dsb'
Enforce ARMv7 flags for pm_suspend.o when CPU_V7 is selected.
Reported-by: fengguang.wu at intel.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
arch/arm/mach-at91/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile
index 06a4cefd33a0..4fa8b4541e64 100644
--- a/arch/arm/mach-at91/Makefile
+++ b/arch/arm/mach-at91/Makefile
@@ -17,6 +17,9 @@ obj-$(CONFIG_SOC_SAMA5) += sama5.o
obj-$(CONFIG_PM) += pm.o
obj-$(CONFIG_PM) += pm_suspend.o
+ifeq ($(CONFIG_CPU_V7),y)
+AFLAGS_pm_suspend.o := -march=armv7-a
+endif
ifeq ($(CONFIG_PM_DEBUG),y)
CFLAGS_pm.o += -DDEBUG
endif
--
2.1.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] ARM: at91: fix pm_suspend.S compilation when ARMv6 is selected
@ 2015-03-19 20:14 ` Alexandre Belloni
0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Belloni @ 2015-03-19 20:14 UTC (permalink / raw)
To: Nicolas Ferre
Cc: Jean-Christophe Plagniol-Villard, Wenyou Yang, linux-arm-kernel,
linux-kernel, Boris Brezillon, Alexandre Belloni
When compiling for multiplatform for both ARMv6 and ARMv7, the default compiler
flags are for ARMv6, and results in:
arch/arm/mach-at91/pm_suspend.S:144: Error: selected processor does not support ARM mode `dsb'
Enforce ARMv7 flags for pm_suspend.o when CPU_V7 is selected.
Reported-by: fengguang.wu@intel.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
arch/arm/mach-at91/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile
index 06a4cefd33a0..4fa8b4541e64 100644
--- a/arch/arm/mach-at91/Makefile
+++ b/arch/arm/mach-at91/Makefile
@@ -17,6 +17,9 @@ obj-$(CONFIG_SOC_SAMA5) += sama5.o
obj-$(CONFIG_PM) += pm.o
obj-$(CONFIG_PM) += pm_suspend.o
+ifeq ($(CONFIG_CPU_V7),y)
+AFLAGS_pm_suspend.o := -march=armv7-a
+endif
ifeq ($(CONFIG_PM_DEBUG),y)
CFLAGS_pm.o += -DDEBUG
endif
--
2.1.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] ARM: at91: fix pm_suspend.S compilation when ARMv6 is selected
2015-03-19 20:14 ` Alexandre Belloni
@ 2015-03-20 10:54 ` Nicolas Ferre
-1 siblings, 0 replies; 4+ messages in thread
From: Nicolas Ferre @ 2015-03-20 10:54 UTC (permalink / raw)
To: linux-arm-kernel
Le 19/03/2015 21:14, Alexandre Belloni a ?crit :
> When compiling for multiplatform for both ARMv6 and ARMv7, the default compiler
> flags are for ARMv6, and results in:
>
> arch/arm/mach-at91/pm_suspend.S:144: Error: selected processor does not support ARM mode `dsb'
>
> Enforce ARMv7 flags for pm_suspend.o when CPU_V7 is selected.
>
> Reported-by: fengguang.wu at intel.com
Changed in:
Reported-by: kbuild test robot <fengguang.wu@intel.com>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Thanks.
> ---
> arch/arm/mach-at91/Makefile | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile
> index 06a4cefd33a0..4fa8b4541e64 100644
> --- a/arch/arm/mach-at91/Makefile
> +++ b/arch/arm/mach-at91/Makefile
> @@ -17,6 +17,9 @@ obj-$(CONFIG_SOC_SAMA5) += sama5.o
> obj-$(CONFIG_PM) += pm.o
> obj-$(CONFIG_PM) += pm_suspend.o
>
> +ifeq ($(CONFIG_CPU_V7),y)
> +AFLAGS_pm_suspend.o := -march=armv7-a
> +endif
> ifeq ($(CONFIG_PM_DEBUG),y)
> CFLAGS_pm.o += -DDEBUG
> endif
>
--
Nicolas Ferre
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ARM: at91: fix pm_suspend.S compilation when ARMv6 is selected
@ 2015-03-20 10:54 ` Nicolas Ferre
0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Ferre @ 2015-03-20 10:54 UTC (permalink / raw)
To: Alexandre Belloni
Cc: Jean-Christophe Plagniol-Villard, Wenyou Yang, linux-arm-kernel,
linux-kernel, Boris Brezillon
Le 19/03/2015 21:14, Alexandre Belloni a écrit :
> When compiling for multiplatform for both ARMv6 and ARMv7, the default compiler
> flags are for ARMv6, and results in:
>
> arch/arm/mach-at91/pm_suspend.S:144: Error: selected processor does not support ARM mode `dsb'
>
> Enforce ARMv7 flags for pm_suspend.o when CPU_V7 is selected.
>
> Reported-by: fengguang.wu@intel.com
Changed in:
Reported-by: kbuild test robot <fengguang.wu@intel.com>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Thanks.
> ---
> arch/arm/mach-at91/Makefile | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile
> index 06a4cefd33a0..4fa8b4541e64 100644
> --- a/arch/arm/mach-at91/Makefile
> +++ b/arch/arm/mach-at91/Makefile
> @@ -17,6 +17,9 @@ obj-$(CONFIG_SOC_SAMA5) += sama5.o
> obj-$(CONFIG_PM) += pm.o
> obj-$(CONFIG_PM) += pm_suspend.o
>
> +ifeq ($(CONFIG_CPU_V7),y)
> +AFLAGS_pm_suspend.o := -march=armv7-a
> +endif
> ifeq ($(CONFIG_PM_DEBUG),y)
> CFLAGS_pm.o += -DDEBUG
> endif
>
--
Nicolas Ferre
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-03-20 10:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-19 20:14 [PATCH] ARM: at91: fix pm_suspend.S compilation when ARMv6 is selected Alexandre Belloni
2015-03-19 20:14 ` Alexandre Belloni
2015-03-20 10:54 ` Nicolas Ferre
2015-03-20 10:54 ` Nicolas Ferre
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.