diff options
| author | Sam Ravnborg <sam@ravnborg.org> | 2010-07-28 13:33:00 -0400 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.cz> | 2010-08-03 08:09:45 -0400 |
| commit | c9575dc680dffa26411e9aed32b4a1e12609428d (patch) | |
| tree | 9bfcd0c2bc4b7395028e01697c5ecc0769bbcc1f | |
| parent | 80c00ba942ee39c9a95c06959223560400bbb86e (diff) | |
frv: clean up arch/frv/Makefile
- removed a lot of unused variable assignmnets
- removed unused bootstrap target
- replaced ARCHMODFLAGS with proper KBUILD_{A,C}FLAGS_MODULE assignmnets
The resuting Makefile has not been tested due to lack of toolchain,
but these were all trivial changes.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
| -rw-r--r-- | arch/frv/Makefile | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/arch/frv/Makefile b/arch/frv/Makefile index 310c47a663f8..7ff84575b186 100644 --- a/arch/frv/Makefile +++ b/arch/frv/Makefile | |||
| @@ -23,20 +23,14 @@ | |||
| 23 | # Copyright (C) 1994 by Hamish Macdonald | 23 | # Copyright (C) 1994 by Hamish Macdonald |
| 24 | # | 24 | # |
| 25 | 25 | ||
| 26 | CCSPECS := $(shell $(CC) -v 2>&1 | grep "^Reading specs from " | head -1 | cut -c20-) | ||
| 27 | CCDIR := $(strip $(patsubst %/specs,%,$(CCSPECS))) | ||
| 28 | CPUCLASS := fr400 | ||
| 29 | |||
| 30 | # test for cross compiling | ||
| 31 | COMPILE_ARCH = $(shell uname -m) | ||
| 32 | |||
| 33 | ifdef CONFIG_MMU | 26 | ifdef CONFIG_MMU |
| 34 | UTS_SYSNAME = -DUTS_SYSNAME=\"Linux\" | 27 | UTS_SYSNAME = -DUTS_SYSNAME=\"Linux\" |
| 35 | else | 28 | else |
| 36 | UTS_SYSNAME = -DUTS_SYSNAME=\"uClinux\" | 29 | UTS_SYSNAME = -DUTS_SYSNAME=\"uClinux\" |
| 37 | endif | 30 | endif |
| 38 | 31 | ||
| 39 | ARCHMODFLAGS += -G0 -mlong-calls | 32 | KBUILD_AFLAGS_MODULE += -G0 -mlong-calls |
| 33 | KBUILD_CFLAGS_MODULE += -G0 -mlong-calls | ||
| 40 | 34 | ||
| 41 | ifdef CONFIG_GPREL_DATA_8 | 35 | ifdef CONFIG_GPREL_DATA_8 |
| 42 | KBUILD_CFLAGS += -G8 | 36 | KBUILD_CFLAGS += -G8 |
| @@ -54,7 +48,6 @@ endif | |||
| 54 | 48 | ||
| 55 | ifdef CONFIG_GC_SECTIONS | 49 | ifdef CONFIG_GC_SECTIONS |
| 56 | KBUILD_CFLAGS += -ffunction-sections -fdata-sections | 50 | KBUILD_CFLAGS += -ffunction-sections -fdata-sections |
| 57 | LINKFLAGS += --gc-sections | ||
| 58 | endif | 51 | endif |
| 59 | 52 | ||
| 60 | ifndef CONFIG_FRAME_POINTER | 53 | ifndef CONFIG_FRAME_POINTER |
| @@ -64,16 +57,13 @@ endif | |||
| 64 | ifdef CONFIG_CPU_FR451_COMPILE | 57 | ifdef CONFIG_CPU_FR451_COMPILE |
| 65 | KBUILD_CFLAGS += -mcpu=fr450 | 58 | KBUILD_CFLAGS += -mcpu=fr450 |
| 66 | KBUILD_AFLAGS += -mcpu=fr450 | 59 | KBUILD_AFLAGS += -mcpu=fr450 |
| 67 | ASFLAGS += -mcpu=fr450 | ||
| 68 | else | 60 | else |
| 69 | ifdef CONFIG_CPU_FR551_COMPILE | 61 | ifdef CONFIG_CPU_FR551_COMPILE |
| 70 | KBUILD_CFLAGS += -mcpu=fr550 | 62 | KBUILD_CFLAGS += -mcpu=fr550 |
| 71 | KBUILD_AFLAGS += -mcpu=fr550 | 63 | KBUILD_AFLAGS += -mcpu=fr550 |
| 72 | ASFLAGS += -mcpu=fr550 | ||
| 73 | else | 64 | else |
| 74 | KBUILD_CFLAGS += -mcpu=fr400 | 65 | KBUILD_CFLAGS += -mcpu=fr400 |
| 75 | KBUILD_AFLAGS += -mcpu=fr400 | 66 | KBUILD_AFLAGS += -mcpu=fr400 |
| 76 | ASFLAGS += -mcpu=fr400 | ||
| 77 | endif | 67 | endif |
| 78 | endif | 68 | endif |
| 79 | 69 | ||
| @@ -83,14 +73,12 @@ endif | |||
| 83 | KBUILD_CFLAGS += -mno-fdpic -mgpr-32 -msoft-float -mno-media | 73 | KBUILD_CFLAGS += -mno-fdpic -mgpr-32 -msoft-float -mno-media |
| 84 | KBUILD_CFLAGS += -ffixed-fcc3 -ffixed-cc3 -ffixed-gr15 -ffixed-icc2 | 74 | KBUILD_CFLAGS += -ffixed-fcc3 -ffixed-cc3 -ffixed-gr15 -ffixed-icc2 |
| 85 | KBUILD_AFLAGS += -mno-fdpic | 75 | KBUILD_AFLAGS += -mno-fdpic |
| 86 | ASFLAGS += -mno-fdpic | ||
| 87 | 76 | ||
| 88 | # make sure the .S files get compiled with debug info | 77 | # make sure the .S files get compiled with debug info |
| 89 | # and disable optimisations that are unhelpful whilst debugging | 78 | # and disable optimisations that are unhelpful whilst debugging |
| 90 | ifdef CONFIG_DEBUG_INFO | 79 | ifdef CONFIG_DEBUG_INFO |
| 91 | #KBUILD_CFLAGS += -O1 | 80 | #KBUILD_CFLAGS += -O1 |
| 92 | KBUILD_AFLAGS += -Wa,--gdwarf2 | 81 | KBUILD_AFLAGS += -Wa,--gdwarf2 |
| 93 | ASFLAGS += -Wa,--gdwarf2 | ||
| 94 | endif | 82 | endif |
| 95 | 83 | ||
| 96 | head-y := arch/frv/kernel/head.o arch/frv/kernel/init_task.o | 84 | head-y := arch/frv/kernel/head.o arch/frv/kernel/init_task.o |
| @@ -105,11 +93,5 @@ all: Image | |||
| 105 | Image: vmlinux | 93 | Image: vmlinux |
| 106 | $(Q)$(MAKE) $(build)=arch/frv/boot $@ | 94 | $(Q)$(MAKE) $(build)=arch/frv/boot $@ |
| 107 | 95 | ||
| 108 | bootstrap: | ||
| 109 | $(Q)$(MAKEBOOT) bootstrap | ||
| 110 | |||
| 111 | archclean: | 96 | archclean: |
| 112 | $(Q)$(MAKE) $(clean)=arch/frv/boot | 97 | $(Q)$(MAKE) $(clean)=arch/frv/boot |
| 113 | |||
| 114 | archdep: scripts/mkdep symlinks | ||
| 115 | $(Q)$(MAKE) $(build)=arch/frv/boot dep | ||
