Makefile (6266a4dadb1d0976490fdf5af4f7941e36f64e80) Makefile (1a8916ee3ac29054322cdac687d36e1b5894d272)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the linux kernel.
4#
5
6CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'
7
8# Disable clang warning for using setjmp without setjmp.h header

--- 8 unchanged lines hidden (view full) ---

17endif
18
19CFLAGS_cputable.o += $(DISABLE_LATENT_ENTROPY_PLUGIN)
20CFLAGS_prom_init.o += $(DISABLE_LATENT_ENTROPY_PLUGIN)
21CFLAGS_btext.o += $(DISABLE_LATENT_ENTROPY_PLUGIN)
22CFLAGS_prom.o += $(DISABLE_LATENT_ENTROPY_PLUGIN)
23
24CFLAGS_prom_init.o += $(call cc-option, -fno-stack-protector)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the linux kernel.
4#
5
6CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'
7
8# Disable clang warning for using setjmp without setjmp.h header

--- 8 unchanged lines hidden (view full) ---

17endif
18
19CFLAGS_cputable.o += $(DISABLE_LATENT_ENTROPY_PLUGIN)
20CFLAGS_prom_init.o += $(DISABLE_LATENT_ENTROPY_PLUGIN)
21CFLAGS_btext.o += $(DISABLE_LATENT_ENTROPY_PLUGIN)
22CFLAGS_prom.o += $(DISABLE_LATENT_ENTROPY_PLUGIN)
23
24CFLAGS_prom_init.o += $(call cc-option, -fno-stack-protector)
25CFLAGS_prom_init.o += -DDISABLE_BRANCH_PROFILING
26
27ifdef CONFIG_FUNCTION_TRACER
28# Do not trace early boot code
29CFLAGS_REMOVE_cputable.o = $(CC_FLAGS_FTRACE)
30CFLAGS_REMOVE_prom_init.o = $(CC_FLAGS_FTRACE)
31CFLAGS_REMOVE_btext.o = $(CC_FLAGS_FTRACE)
32CFLAGS_REMOVE_prom.o = $(CC_FLAGS_FTRACE)
33endif
34
35KASAN_SANITIZE_early_32.o := n
36KASAN_SANITIZE_cputable.o := n
37KASAN_SANITIZE_prom_init.o := n
38KASAN_SANITIZE_btext.o := n
39
40ifdef CONFIG_KASAN
41CFLAGS_early_32.o += -DDISABLE_BRANCH_PROFILING
42CFLAGS_cputable.o += -DDISABLE_BRANCH_PROFILING
25
26ifdef CONFIG_FUNCTION_TRACER
27# Do not trace early boot code
28CFLAGS_REMOVE_cputable.o = $(CC_FLAGS_FTRACE)
29CFLAGS_REMOVE_prom_init.o = $(CC_FLAGS_FTRACE)
30CFLAGS_REMOVE_btext.o = $(CC_FLAGS_FTRACE)
31CFLAGS_REMOVE_prom.o = $(CC_FLAGS_FTRACE)
32endif
33
34KASAN_SANITIZE_early_32.o := n
35KASAN_SANITIZE_cputable.o := n
36KASAN_SANITIZE_prom_init.o := n
37KASAN_SANITIZE_btext.o := n
38
39ifdef CONFIG_KASAN
40CFLAGS_early_32.o += -DDISABLE_BRANCH_PROFILING
41CFLAGS_cputable.o += -DDISABLE_BRANCH_PROFILING
42CFLAGS_prom_init.o += -DDISABLE_BRANCH_PROFILING
43CFLAGS_btext.o += -DDISABLE_BRANCH_PROFILING
44endif
45
46obj-y := cputable.o ptrace.o syscalls.o \
47 irq.o align.o signal_32.o pmc.o vdso.o \
48 process.o systbl.o idle.o \
49 signal.o sysfs.o cacheinfo.o time.o \
50 prom.o traps.o setup-common.o \

--- 22 unchanged lines hidden (view full) ---

73obj-$(CONFIG_PPC_RTAS_DAEMON) += rtasd.o
74obj-$(CONFIG_RTAS_FLASH) += rtas_flash.o
75obj-$(CONFIG_RTAS_PROC) += rtas-proc.o
76obj-$(CONFIG_PPC_DT_CPU_FTRS) += dt_cpu_ftrs.o
77obj-$(CONFIG_EEH) += eeh.o eeh_pe.o eeh_dev.o eeh_cache.o \
78 eeh_driver.o eeh_event.o eeh_sysfs.o
79obj-$(CONFIG_GENERIC_TBSYNC) += smp-tbsync.o
80obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
43CFLAGS_btext.o += -DDISABLE_BRANCH_PROFILING
44endif
45
46obj-y := cputable.o ptrace.o syscalls.o \
47 irq.o align.o signal_32.o pmc.o vdso.o \
48 process.o systbl.o idle.o \
49 signal.o sysfs.o cacheinfo.o time.o \
50 prom.o traps.o setup-common.o \

--- 22 unchanged lines hidden (view full) ---

73obj-$(CONFIG_PPC_RTAS_DAEMON) += rtasd.o
74obj-$(CONFIG_RTAS_FLASH) += rtas_flash.o
75obj-$(CONFIG_RTAS_PROC) += rtas-proc.o
76obj-$(CONFIG_PPC_DT_CPU_FTRS) += dt_cpu_ftrs.o
77obj-$(CONFIG_EEH) += eeh.o eeh_pe.o eeh_dev.o eeh_cache.o \
78 eeh_driver.o eeh_event.o eeh_sysfs.o
79obj-$(CONFIG_GENERIC_TBSYNC) += smp-tbsync.o
80obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
81obj-$(CONFIG_FA_DUMP) += fadump.o
82obj-$(CONFIG_PRESERVE_FA_DUMP) += fadump.o
81ifneq ($(CONFIG_FA_DUMP)$(CONFIG_PRESERVE_FA_DUMP),)
82obj-y += fadump.o
83endif
83ifdef CONFIG_PPC32
84obj-$(CONFIG_E500) += idle_e500.o
85endif
86obj-$(CONFIG_PPC_BOOK3S_32) += idle_6xx.o l2cr_6xx.o cpu_setup_6xx.o
87obj-$(CONFIG_TAU) += tau_6xx.o
88obj-$(CONFIG_HIBERNATION) += swsusp.o suspend.o
89ifdef CONFIG_FSL_BOOKE
90obj-$(CONFIG_HIBERNATION) += swsusp_booke.o

--- 64 unchanged lines hidden (view full) ---

155endif
156
157obj-$(CONFIG_EPAPR_PARAVIRT) += epapr_paravirt.o epapr_hcalls.o
158obj-$(CONFIG_KVM_GUEST) += kvm.o kvm_emul.o
159ifneq ($(CONFIG_PPC_POWERNV)$(CONFIG_PPC_SVM),)
160obj-y += ucall.o
161endif
162
84ifdef CONFIG_PPC32
85obj-$(CONFIG_E500) += idle_e500.o
86endif
87obj-$(CONFIG_PPC_BOOK3S_32) += idle_6xx.o l2cr_6xx.o cpu_setup_6xx.o
88obj-$(CONFIG_TAU) += tau_6xx.o
89obj-$(CONFIG_HIBERNATION) += swsusp.o suspend.o
90ifdef CONFIG_FSL_BOOKE
91obj-$(CONFIG_HIBERNATION) += swsusp_booke.o

--- 64 unchanged lines hidden (view full) ---

156endif
157
158obj-$(CONFIG_EPAPR_PARAVIRT) += epapr_paravirt.o epapr_hcalls.o
159obj-$(CONFIG_KVM_GUEST) += kvm.o kvm_emul.o
160ifneq ($(CONFIG_PPC_POWERNV)$(CONFIG_PPC_SVM),)
161obj-y += ucall.o
162endif
163
164obj-$(CONFIG_PPC_SECURE_BOOT) += secure_boot.o
165
163# Disable GCOV, KCOV & sanitizers in odd or sensitive code
164GCOV_PROFILE_prom_init.o := n
165KCOV_INSTRUMENT_prom_init.o := n
166UBSAN_SANITIZE_prom_init.o := n
167GCOV_PROFILE_machine_kexec_64.o := n
168KCOV_INSTRUMENT_machine_kexec_64.o := n
169UBSAN_SANITIZE_machine_kexec_64.o := n
170GCOV_PROFILE_machine_kexec_32.o := n

--- 30 unchanged lines hidden ---
166# Disable GCOV, KCOV & sanitizers in odd or sensitive code
167GCOV_PROFILE_prom_init.o := n
168KCOV_INSTRUMENT_prom_init.o := n
169UBSAN_SANITIZE_prom_init.o := n
170GCOV_PROFILE_machine_kexec_64.o := n
171KCOV_INSTRUMENT_machine_kexec_64.o := n
172UBSAN_SANITIZE_machine_kexec_64.o := n
173GCOV_PROFILE_machine_kexec_32.o := n

--- 30 unchanged lines hidden ---