* [PATCH 01/11] arch/m68k: do not use EXTRA_{A,C,LD}FLAGS
[not found] <1313384834-24433-1-git-send-email-lacombar@gmail.com>
@ 2011-08-15 5:07 ` Arnaud Lacombe
[not found] ` <1313384834-24433-2-git-send-email-lacombar@gmail.com>
1 sibling, 0 replies; 4+ messages in thread
From: Arnaud Lacombe @ 2011-08-15 5:07 UTC (permalink / raw)
To: linux-kernel; +Cc: Arnaud Lacombe, Sam Ravnborg, linux-m68k
Usage of these flags has been deprecated for nearly 4 years by:
commit f77bf01425b11947eeb3b5b54685212c302741b8
Author: Sam Ravnborg <sam@neptun.(none)>
Date: Mon Oct 15 22:25:06 2007 +0200
kbuild: introduce ccflags-y, asflags-y and ldflags-y
Moreover, these flags (at least EXTRA_CFLAGS) have been documented for command
line use. By default, gmake(1) do not override command line setting, so this is
likely to result in build failure or unexpected behavior.
Replace their usage by Kbuild's `{as,cc,ld}flags-y'.
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: linux-m68k@lists.linux-m68k.org
---
arch/m68k/fpsp040/Makefile | 2 +-
arch/m68k/ifpsp060/Makefile | 2 +-
arch/m68k/platform/54xx/Makefile | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/m68k/fpsp040/Makefile b/arch/m68k/fpsp040/Makefile
index 9506d88..628a351 100644
--- a/arch/m68k/fpsp040/Makefile
+++ b/arch/m68k/fpsp040/Makefile
@@ -10,6 +10,6 @@ obj-y := bindec.o binstr.o decbin.o do_func.o gen_except.o get_op.o \
x_bsun.o x_fline.o x_operr.o x_ovfl.o x_snan.o x_store.o \
x_unfl.o x_unimp.o x_unsupp.o bugfix.o skeleton.o
-EXTRA_LDFLAGS := -x
+ldflags-y := -x
$(OS_OBJS): fpsp.h
diff --git a/arch/m68k/ifpsp060/Makefile b/arch/m68k/ifpsp060/Makefile
index 43b4350..5ba2d1e 100644
--- a/arch/m68k/ifpsp060/Makefile
+++ b/arch/m68k/ifpsp060/Makefile
@@ -6,4 +6,4 @@
obj-y := fskeleton.o iskeleton.o os.o
-EXTRA_LDFLAGS := -x
+ldflags-y := -x
diff --git a/arch/m68k/platform/54xx/Makefile b/arch/m68k/platform/54xx/Makefile
index 6cfd090..967b51d 100644
--- a/arch/m68k/platform/54xx/Makefile
+++ b/arch/m68k/platform/54xx/Makefile
@@ -8,8 +8,8 @@
# on the console port whenever a DBG interrupt occurs. You have to
# set up you HW breakpoints to trigger a DBG interrupt:
#
-# EXTRA_CFLAGS += -DTRAP_DBG_INTERRUPT
-# EXTRA_AFLAGS += -DTRAP_DBG_INTERRUPT
+# ccflags-y += -DTRAP_DBG_INTERRUPT
+# ccflags-y += -DTRAP_DBG_INTERRUPT
#
asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1
--
1.7.6.153.g78432
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 01/11] arch/m68k: do not use EXTRA_{A,C,LD}FLAGS
[not found] ` <1313384834-24433-2-git-send-email-lacombar@gmail.com>
@ 2011-08-15 5:11 ` Arnaud Lacombe
2011-08-15 7:26 ` Finn Thain
1 sibling, 0 replies; 4+ messages in thread
From: Arnaud Lacombe @ 2011-08-15 5:11 UTC (permalink / raw)
To: linux-kernel; +Cc: Arnaud Lacombe, Sam Ravnborg, linux-m68k
Hi,
On Mon, Aug 15, 2011 at 1:07 AM, Arnaud Lacombe <lacombar@gmail.com> wrote:
> Usage of these flags has been deprecated for nearly 4 years by:
>
> commit f77bf01425b11947eeb3b5b54685212c302741b8
> Author: Sam Ravnborg <sam@neptun.(none)>
> Date: Mon Oct 15 22:25:06 2007 +0200
>
> kbuild: introduce ccflags-y, asflags-y and ldflags-y
>
> Moreover, these flags (at least EXTRA_CFLAGS) have been documented for command
> line use. By default, gmake(1) do not override command line setting, so this is
> likely to result in build failure or unexpected behavior.
>
> Replace their usage by Kbuild's `{as,cc,ld}flags-y'.
>
> Cc: Sam Ravnborg <sam@ravnborg.org>
> Cc: linux-m68k@lists.linux-m68k.org
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
- Arnaud
> ---
> arch/m68k/fpsp040/Makefile | 2 +-
> arch/m68k/ifpsp060/Makefile | 2 +-
> arch/m68k/platform/54xx/Makefile | 4 ++--
> 3 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/arch/m68k/fpsp040/Makefile b/arch/m68k/fpsp040/Makefile
> index 9506d88..628a351 100644
> --- a/arch/m68k/fpsp040/Makefile
> +++ b/arch/m68k/fpsp040/Makefile
> @@ -10,6 +10,6 @@ obj-y := bindec.o binstr.o decbin.o do_func.o gen_except.o get_op.o \
> x_bsun.o x_fline.o x_operr.o x_ovfl.o x_snan.o x_store.o \
> x_unfl.o x_unimp.o x_unsupp.o bugfix.o skeleton.o
>
> -EXTRA_LDFLAGS := -x
> +ldflags-y := -x
>
> $(OS_OBJS): fpsp.h
> diff --git a/arch/m68k/ifpsp060/Makefile b/arch/m68k/ifpsp060/Makefile
> index 43b4350..5ba2d1e 100644
> --- a/arch/m68k/ifpsp060/Makefile
> +++ b/arch/m68k/ifpsp060/Makefile
> @@ -6,4 +6,4 @@
>
> obj-y := fskeleton.o iskeleton.o os.o
>
> -EXTRA_LDFLAGS := -x
> +ldflags-y := -x
> diff --git a/arch/m68k/platform/54xx/Makefile b/arch/m68k/platform/54xx/Makefile
> index 6cfd090..967b51d 100644
> --- a/arch/m68k/platform/54xx/Makefile
> +++ b/arch/m68k/platform/54xx/Makefile
> @@ -8,8 +8,8 @@
> # on the console port whenever a DBG interrupt occurs. You have to
> # set up you HW breakpoints to trigger a DBG interrupt:
> #
> -# EXTRA_CFLAGS += -DTRAP_DBG_INTERRUPT
> -# EXTRA_AFLAGS += -DTRAP_DBG_INTERRUPT
> +# ccflags-y += -DTRAP_DBG_INTERRUPT
> +# ccflags-y += -DTRAP_DBG_INTERRUPT
> #
>
> asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1
> --
> 1.7.6.153.g78432
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 01/11] arch/m68k: do not use EXTRA_{A,C,LD}FLAGS
[not found] ` <1313384834-24433-2-git-send-email-lacombar@gmail.com>
2011-08-15 5:11 ` Arnaud Lacombe
@ 2011-08-15 7:26 ` Finn Thain
2011-08-15 14:45 ` Arnaud Lacombe
1 sibling, 1 reply; 4+ messages in thread
From: Finn Thain @ 2011-08-15 7:26 UTC (permalink / raw)
To: Arnaud Lacombe; +Cc: linux-kernel, Sam Ravnborg, linux-m68k
On Mon, 15 Aug 2011, Arnaud Lacombe wrote:
> -# EXTRA_CFLAGS += -DTRAP_DBG_INTERRUPT
> -# EXTRA_AFLAGS += -DTRAP_DBG_INTERRUPT
> +# ccflags-y += -DTRAP_DBG_INTERRUPT
> +# ccflags-y += -DTRAP_DBG_INTERRUPT
asflags-y?
Finn
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 01/11] arch/m68k: do not use EXTRA_{A,C,LD}FLAGS
2011-08-15 7:26 ` Finn Thain
@ 2011-08-15 14:45 ` Arnaud Lacombe
0 siblings, 0 replies; 4+ messages in thread
From: Arnaud Lacombe @ 2011-08-15 14:45 UTC (permalink / raw)
To: Finn Thain; +Cc: linux-kernel, Sam Ravnborg, linux-m68k
Hi,
On Mon, Aug 15, 2011 at 3:26 AM, Finn Thain <fthain@telegraphics.com.au> wrote:
>
> On Mon, 15 Aug 2011, Arnaud Lacombe wrote:
>
>> -# EXTRA_CFLAGS += -DTRAP_DBG_INTERRUPT
>> -# EXTRA_AFLAGS += -DTRAP_DBG_INTERRUPT
>> +# ccflags-y += -DTRAP_DBG_INTERRUPT
>> +# ccflags-y += -DTRAP_DBG_INTERRUPT
>
> asflags-y?
>
yes, indeed. I'll resend later on.
- Arnaud
> Finn
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-08-15 14:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1313384834-24433-1-git-send-email-lacombar@gmail.com>
2011-08-15 5:07 ` [PATCH 01/11] arch/m68k: do not use EXTRA_{A,C,LD}FLAGS Arnaud Lacombe
[not found] ` <1313384834-24433-2-git-send-email-lacombar@gmail.com>
2011-08-15 5:11 ` Arnaud Lacombe
2011-08-15 7:26 ` Finn Thain
2011-08-15 14:45 ` Arnaud Lacombe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox