diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2013-03-21 12:22:06 +0530 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2013-04-09 12:21:15 +0530 |
commit | af4c3ae3990bb5a2f0a53c7112c9d7696a3cab95 (patch) | |
tree | 54d54bf1f7ae3e4d57a612c76adb2acf604cda92 /arch | |
parent | 610c6502e0d51415dd1e4d31bc97e13ef9d25334 (diff) |
ARC: [build] silence make defconfig warnings with host gcc 4.7
We do cross compiles for ARC Linux.
With gcc 4.7, a make defconfig spews out the following:
------------------->8--------------------------
make ARCH=arc defconfig
gcc: error: unrecognized command line option '-marc600'
gcc: error: unrecognized command line option '-mA7'
gcc: error: unrecognized command line option '-mno-sdata'
gcc: error: unrecognized command line option '-mno-mpy'
*** Default configuration is based on 'fpga_defconfig'
------------------->8--------------------------
This apparently is coming from LIBGCC line - which is strange to be
invoked for defconfig generation.
Reported-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arc/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arc/Makefile b/arch/arc/Makefile index 92379c7cbc1a..fa30453b1331 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile @@ -8,6 +8,10 @@ UTS_MACHINE := arc +ifeq ($(CROSS_COMPILE),) +CROSS_COMPILE := arc-elf32- +endif + KBUILD_DEFCONFIG := fpga_defconfig cflags-y += -mA7 -fno-common -pipe -fno-builtin -D__linux__ |