aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2016-12-07 04:38:36 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-12-12 06:11:26 -0500
commit82897ede9235d31c50074ce1da81828aa2f3d70c (patch)
tree67cabe02112350c880ac6a3833e569f88235b9fe
parentd543a106f96d6f15e4507cf349128912d44356d9 (diff)
s390: cleanup arch/s390/kernel Makefile
Group all compiler flag modification lines together and sort them alphabetically. This should hopefully prevent future bugs due to missing flag modifications. Also fix indentation at some places. Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r--arch/s390/kernel/Makefile66
1 files changed, 36 insertions, 30 deletions
diff --git a/arch/s390/kernel/Makefile b/arch/s390/kernel/Makefile
index 18bd8ccd2d21..36b5101c8606 100644
--- a/arch/s390/kernel/Makefile
+++ b/arch/s390/kernel/Makefile
@@ -2,20 +2,47 @@
2# Makefile for the linux kernel. 2# Makefile for the linux kernel.
3# 3#
4 4
5KCOV_INSTRUMENT_early.o := n
6KCOV_INSTRUMENT_sclp.o := n
7KCOV_INSTRUMENT_als.o := n
8
9ifdef CONFIG_FUNCTION_TRACER 5ifdef CONFIG_FUNCTION_TRACER
10# Don't trace early setup code and tracing code 6
11CFLAGS_REMOVE_early.o = $(CC_FLAGS_FTRACE) 7# Do not trace tracer code
12CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE) 8CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE)
9
10# Do not trace early setup code
11CFLAGS_REMOVE_als.o = $(CC_FLAGS_FTRACE)
12CFLAGS_REMOVE_early.o = $(CC_FLAGS_FTRACE)
13CFLAGS_REMOVE_sclp.o = $(CC_FLAGS_FTRACE)
14
15endif
16
17GCOV_PROFILE_als.o := n
18GCOV_PROFILE_early.o := n
19GCOV_PROFILE_sclp.o := n
20
21KCOV_INSTRUMENT_als.o := n
22KCOV_INSTRUMENT_early.o := n
23KCOV_INSTRUMENT_sclp.o := n
24
25UBSAN_SANITIZE_als.o := n
26UBSAN_SANITIZE_early.o := n
27UBSAN_SANITIZE_sclp.o := n
28
29#
30# Use -march=z900 for sclp.c and als.c to be able to print an error
31# message if the kernel is started on a machine which is too old
32#
33ifneq ($(CC_FLAGS_MARCH),-march=z900)
34CFLAGS_REMOVE_als.o += $(CC_FLAGS_MARCH)
35CFLAGS_als.o += -march=z900
36CFLAGS_REMOVE_sclp.o += $(CC_FLAGS_MARCH)
37CFLAGS_sclp.o += -march=z900
38AFLAGS_REMOVE_head.o += $(CC_FLAGS_MARCH)
39AFLAGS_head.o += -march=z900
13endif 40endif
14 41
15# 42#
16# Passing null pointers is ok for smp code, since we access the lowcore here. 43# Passing null pointers is ok for smp code, since we access the lowcore here.
17# 44#
18CFLAGS_smp.o := -Wno-nonnull 45CFLAGS_smp.o := -Wno-nonnull
19 46
20# 47#
21# Disable tailcall optimizations for stack / callchain walking functions 48# Disable tailcall optimizations for stack / callchain walking functions
@@ -30,28 +57,7 @@ CFLAGS_dumpstack.o += -fno-optimize-sibling-calls
30# 57#
31CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' 58CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'
32 59
33CFLAGS_sysinfo.o += -w 60CFLAGS_sysinfo.o += -w
34
35#
36# Use -march=z900 for sclp.c and als.c to be able to print an error
37# message if the kernel is started on a machine which is too old
38#
39CFLAGS_REMOVE_sclp.o = $(CC_FLAGS_FTRACE)
40CFLAGS_REMOVE_als.o = $(CC_FLAGS_FTRACE)
41ifneq ($(CC_FLAGS_MARCH),-march=z900)
42CFLAGS_REMOVE_sclp.o += $(CC_FLAGS_MARCH)
43CFLAGS_sclp.o += -march=z900
44CFLAGS_REMOVE_als.o += $(CC_FLAGS_MARCH)
45CFLAGS_als.o += -march=z900
46AFLAGS_REMOVE_head.o += $(CC_FLAGS_MARCH)
47AFLAGS_head.o += -march=z900
48endif
49GCOV_PROFILE_early.o := n
50GCOV_PROFILE_sclp.o := n
51GCOV_PROFILE_als.o := n
52UBSAN_SANITIZE_als.o := n
53UBSAN_SANITIZE_early.o := n
54UBSAN_SANITIZE_sclp.o := n
55 61
56obj-y := traps.o time.o process.o base.o early.o setup.o idle.o vtime.o 62obj-y := traps.o time.o process.o base.o early.o setup.o idle.o vtime.o
57obj-y += processor.o sys_s390.o ptrace.o signal.o cpcmd.o ebcdic.o nmi.o 63obj-y += processor.o sys_s390.o ptrace.o signal.o cpcmd.o ebcdic.o nmi.o