Skip to content

Commit c9575dc

Browse files
sravnborgmichal42
authored andcommitted
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>
1 parent 80c00ba commit c9575dc

1 file changed

Lines changed: 2 additions & 20 deletions

File tree

‎arch/frv/Makefile‎

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,14 @@
2323
# Copyright (C) 1994 by Hamish Macdonald
2424
#
2525

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-
3326
ifdef CONFIG_MMU
3427
UTS_SYSNAME = -DUTS_SYSNAME=\"Linux\"
3528
else
3629
UTS_SYSNAME = -DUTS_SYSNAME=\"uClinux\"
3730
endif
3831

39-
ARCHMODFLAGS += -G0 -mlong-calls
32+
KBUILD_AFLAGS_MODULE += -G0 -mlong-calls
33+
KBUILD_CFLAGS_MODULE += -G0 -mlong-calls
4034

4135
ifdef CONFIG_GPREL_DATA_8
4236
KBUILD_CFLAGS += -G8
@@ -54,7 +48,6 @@ endif
5448

5549
ifdef CONFIG_GC_SECTIONS
5650
KBUILD_CFLAGS += -ffunction-sections -fdata-sections
57-
LINKFLAGS += --gc-sections
5851
endif
5952

6053
ifndef CONFIG_FRAME_POINTER
@@ -64,16 +57,13 @@ endif
6457
ifdef CONFIG_CPU_FR451_COMPILE
6558
KBUILD_CFLAGS += -mcpu=fr450
6659
KBUILD_AFLAGS += -mcpu=fr450
67-
ASFLAGS += -mcpu=fr450
6860
else
6961
ifdef CONFIG_CPU_FR551_COMPILE
7062
KBUILD_CFLAGS += -mcpu=fr550
7163
KBUILD_AFLAGS += -mcpu=fr550
72-
ASFLAGS += -mcpu=fr550
7364
else
7465
KBUILD_CFLAGS += -mcpu=fr400
7566
KBUILD_AFLAGS += -mcpu=fr400
76-
ASFLAGS += -mcpu=fr400
7767
endif
7868
endif
7969

@@ -83,14 +73,12 @@ endif
8373
KBUILD_CFLAGS += -mno-fdpic -mgpr-32 -msoft-float -mno-media
8474
KBUILD_CFLAGS += -ffixed-fcc3 -ffixed-cc3 -ffixed-gr15 -ffixed-icc2
8575
KBUILD_AFLAGS += -mno-fdpic
86-
ASFLAGS += -mno-fdpic
8776

8877
# make sure the .S files get compiled with debug info
8978
# and disable optimisations that are unhelpful whilst debugging
9079
ifdef CONFIG_DEBUG_INFO
9180
#KBUILD_CFLAGS += -O1
9281
KBUILD_AFLAGS += -Wa,--gdwarf2
93-
ASFLAGS += -Wa,--gdwarf2
9482
endif
9583

9684
head-y := arch/frv/kernel/head.o arch/frv/kernel/init_task.o
@@ -105,11 +93,5 @@ all: Image
10593
Image: vmlinux
10694
$(Q)$(MAKE) $(build)=arch/frv/boot $@
10795

108-
bootstrap:
109-
$(Q)$(MAKEBOOT) bootstrap
110-
11196
archclean:
11297
$(Q)$(MAKE) $(clean)=arch/frv/boot
113-
114-
archdep: scripts/mkdep symlinks
115-
$(Q)$(MAKE) $(build)=arch/frv/boot dep

0 commit comments

Comments
 (0)