Skip to content

Commit

Permalink
arch/unicore32: do not use EXTRA_AFLAGS or EXTRA_CFLAGS
Browse files Browse the repository at this point in the history
Usage of these flags has been deprecated for nearly 4 years by:

    commit f77bf01
    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 <[email protected]>
Cc: Guan Xuetao <[email protected]>
Signed-off-by: Arnaud Lacombe <[email protected]>
Acked-by: Guan Xuetao <[email protected]>
  • Loading branch information
lacombar authored and gxt committed Nov 15, 2011
1 parent e13b91c commit 63c95fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/unicore32/boot/compressed/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
# Copyright (C) 2001~2010 GUAN Xue-tao
#

EXTRA_CFLAGS := -fpic -fno-builtin
EXTRA_AFLAGS := -Wa,-march=all
ccflags-y := -fpic -fno-builtin
asflags-y := -Wa,-march=all

OBJS := misc.o

Expand Down

0 comments on commit 63c95fa

Please sign in to comment.