1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 # 2 # 3 # Makefile for the linux kernel. 3 # Makefile for the linux kernel. 4 # 4 # 5 5 6 ifdef CONFIG_PPC32 !! 6 extra-y := vmlinux.lds 7 CFLAGS_prom_init.o += -fPIC !! 7 asflags-y := $(KBUILD_CFLAGS) 8 CFLAGS_btext.o += -fPIC !! 8 ccflags-y := -Wno-sign-compare 9 endif !! 9 10 !! 10 obj-y := head.o entry.o traps.o process.o osf_sys.o irq.o \ 11 CFLAGS_early_32.o += $(DISABLE_LATENT_ENTROPY_ !! 11 irq_alpha.o signal.o setup.o ptrace.o time.o \ 12 CFLAGS_cputable.o += $(DISABLE_LATENT_ENTROPY_ !! 12 systbls.o err_common.o io.o bugs.o termios.o 13 CFLAGS_prom_init.o += $(DISABLE_LATENT_ENTROPY !! 13 14 CFLAGS_btext.o += $(DISABLE_LATENT_ENTROPY_PLU !! 14 obj-$(CONFIG_VGA_HOSE) += console.o 15 CFLAGS_prom.o += $(DISABLE_LATENT_ENTROPY_PLUG !! 15 obj-$(CONFIG_SMP) += smp.o 16 !! 16 obj-$(CONFIG_PCI) += pci.o pci_iommu.o pci-sysfs.o 17 CFLAGS_prom_init.o += -fno-stack-protector !! 17 obj-$(CONFIG_SRM_ENV) += srm_env.o 18 CFLAGS_prom_init.o += -DDISABLE_BRANCH_PROFILI !! 18 obj-$(CONFIG_MODULES) += module.o 19 CFLAGS_prom_init.o += -ffreestanding !! 19 obj-$(CONFIG_PERF_EVENTS) += perf_event.o 20 CFLAGS_prom_init.o += $(call cc-option, -ftriv !! 20 obj-$(CONFIG_RTC_DRV_ALPHA) += rtc.o 21 !! 21 obj-$(CONFIG_AUDIT) += audit.o 22 ifdef CONFIG_FUNCTION_TRACER !! 22 23 # Do not trace early boot code !! 23 ifdef CONFIG_ALPHA_GENERIC 24 CFLAGS_REMOVE_cputable.o = $(CC_FLAGS_FTRACE) !! 24 25 CFLAGS_REMOVE_prom_init.o = $(CC_FLAGS_FTRACE) !! 25 obj-y += core_cia.o core_irongate.o \ 26 CFLAGS_REMOVE_btext.o = $(CC_FLAGS_FTRACE) !! 26 core_mcpcia.o core_polaris.o core_t2.o \ 27 CFLAGS_REMOVE_prom.o = $(CC_FLAGS_FTRACE) !! 27 core_tsunami.o 28 endif !! 28 29 !! 29 obj-y += sys_alcor.o sys_cabriolet.o sys_dp264.o sys_eiger.o \ 30 KASAN_SANITIZE_early_32.o := n !! 30 sys_miata.o sys_mikasa.o sys_nautilus.o \ 31 KASAN_SANITIZE_cputable.o := n !! 31 sys_noritake.o sys_rawhide.o sys_ruffian.o sys_rx164.o \ 32 KASAN_SANITIZE_prom_init.o := n !! 32 sys_sable.o sys_sx164.o sys_takara.o 33 KASAN_SANITIZE_btext.o := n !! 33 34 KASAN_SANITIZE_paca.o := n !! 34 ifndef CONFIG_ALPHA_LEGACY_START_ADDRESS 35 KASAN_SANITIZE_setup_64.o := n !! 35 obj-y += core_marvel.o core_titan.o core_wildfire.o 36 KASAN_SANITIZE_mce.o := n !! 36 obj-y += sys_marvel.o sys_titan.o sys_wildfire.o 37 KASAN_SANITIZE_mce_power.o := n !! 37 obj-y += err_ev7.o err_titan.o err_marvel.o 38 KASAN_SANITIZE_udbg.o := n !! 38 endif 39 KASAN_SANITIZE_udbg_16550.o := n !! 39 40 !! 40 obj-y += irq_pyxis.o irq_i8259.o irq_srm.o 41 # we have to be particularly careful in ppc64 !! 41 obj-y += err_ev6.o 42 # runs with translations off, as we cannot acc !! 42 obj-y += es1888.o smc37c669.o smc37c93x.o pc873xx.o gct.o 43 # translations off. However, ppc32 can sanitiz !! 43 obj-y += srmcons.o 44 ifdef CONFIG_PPC64 << 45 KASAN_SANITIZE_traps.o := n << 46 endif << 47 44 48 ifdef CONFIG_KASAN << 49 CFLAGS_early_32.o += -DDISABLE_BRANCH_PROFILIN << 50 CFLAGS_cputable.o += -DDISABLE_BRANCH_PROFILIN << 51 CFLAGS_btext.o += -DDISABLE_BRANCH_PROFILING << 52 endif << 53 << 54 KCSAN_SANITIZE_early_32.o := n << 55 KCSAN_SANITIZE_cputable.o := n << 56 KCSAN_SANITIZE_btext.o := n << 57 KCSAN_SANITIZE_paca.o := n << 58 KCSAN_SANITIZE_setup_64.o := n << 59 << 60 #ifdef CONFIG_RANDOMIZE_KSTACK_OFFSET << 61 # Remove stack protector to avoid triggering u << 62 # checks due to randomize_kstack_offset. << 63 CFLAGS_REMOVE_syscall.o = -fstack-protector -f << 64 CFLAGS_syscall.o += -fno-stack-protector << 65 #endif << 66 << 67 obj-y := cputable.o << 68 irq.o align << 69 process.o s << 70 signal.o sy << 71 prom.o trap << 72 udbg.o misc << 73 of_platform << 74 hw_breakpoi << 75 kdebugfs.o << 76 obj-y += ptrace/ << 77 obj-$(CONFIG_PPC64) += setup_64.o << 78 paca.o nvra << 79 obj-$(CONFIG_PPC32) += sys_ppc32.o << 80 obj-$(CONFIG_COMPAT) += sys_ppc32.o << 81 obj-$(CONFIG_VDSO32) += vdso32_wrap << 82 obj-$(CONFIG_PPC_WATCHDOG) += watchdog.o << 83 obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_ << 84 obj-$(CONFIG_PPC_DAWR) += dawr.o << 85 obj-$(CONFIG_PPC_BOOK3S_64) += cpu_setup_p << 86 obj-$(CONFIG_PPC_BOOK3S_64) += cpu_setup_p << 87 obj-$(CONFIG_PPC_BOOK3S_64) += dexcr.o << 88 obj-$(CONFIG_PPC_BOOK3S_64) += mce.o mce_p << 89 obj-$(CONFIG_PPC_BOOK3E_64) += exceptions- << 90 obj-$(CONFIG_PPC_BARRIER_NOSPEC) += security.o << 91 obj-$(CONFIG_PPC64) += vdso64_wrap << 92 obj-$(CONFIG_ALTIVEC) += vecemu.o << 93 obj-$(CONFIG_PPC_BOOK3S_IDLE) += idle_book3s << 94 procfs-y := proc_powerp << 95 obj-$(CONFIG_PROC_FS) += $(procfs-y) << 96 rtaspci-$(CONFIG_PPC64)-$(CONFIG_PCI) := rta << 97 obj-$(CONFIG_PPC_RTAS) += rtas_entry. << 98 obj-$(CONFIG_PPC_RTAS_DAEMON) += rtasd.o << 99 obj-$(CONFIG_RTAS_FLASH) += rtas_flash. << 100 obj-$(CONFIG_RTAS_PROC) += rtas-proc.o << 101 obj-$(CONFIG_PPC_DT_CPU_FTRS) += dt_cpu_ftrs << 102 obj-$(CONFIG_EEH) += eeh.o eeh_pe << 103 eeh_driver.o << 104 obj-$(CONFIG_GENERIC_TBSYNC) += smp-tbsync. << 105 obj-$(CONFIG_CRASH_DUMP) += crash_dump. << 106 obj-$(CONFIG_FA_DUMP) += fadump.o << 107 obj-$(CONFIG_PRESERVE_FA_DUMP) += fadump.o << 108 obj-$(CONFIG_PPC_85xx) += idle_85xx.o << 109 obj-$(CONFIG_PPC_BOOK3S_32) += idle_6xx.o << 110 obj-$(CONFIG_TAU) += tau_6xx.o << 111 obj-$(CONFIG_HIBERNATION) += swsusp.o su << 112 ifdef CONFIG_PPC_85xx << 113 obj-$(CONFIG_HIBERNATION) += swsusp_85xx << 114 else 45 else 115 obj-$(CONFIG_HIBERNATION) += swsusp_$(BI << 116 endif << 117 obj64-$(CONFIG_HIBERNATION) += swsusp_asm6 << 118 obj-$(CONFIG_MODULES) += module.o mo << 119 obj-$(CONFIG_44x) += cpu_setup_4 << 120 obj-$(CONFIG_PPC_E500) += cpu_setup_e << 121 obj-$(CONFIG_PPC_DOORBELL) += dbell.o << 122 obj-$(CONFIG_JUMP_LABEL) += jump_label. << 123 << 124 obj-$(CONFIG_PPC64) += head_64.o << 125 obj-$(CONFIG_PPC_BOOK3S_32) += head_book3s << 126 obj-$(CONFIG_44x) += head_44x.o << 127 obj-$(CONFIG_PPC_8xx) += head_8xx.o << 128 obj-$(CONFIG_PPC_85xx) += head_85xx.o << 129 extra-y += vmlinux.lds << 130 << 131 obj-$(CONFIG_RELOCATABLE) += reloc_$(BIT << 132 << 133 obj-$(CONFIG_PPC32) += entry_32.o << 134 obj-$(CONFIG_PPC64) += dma-iommu.o << 135 obj-$(CONFIG_KGDB) += kgdb.o << 136 obj-$(CONFIG_BOOTX_TEXT) += btext.o << 137 obj-$(CONFIG_SMP) += smp.o << 138 obj-$(CONFIG_KPROBES) += kprobes.o << 139 obj-$(CONFIG_OPTPROBES) += optprobes.o << 140 obj-$(CONFIG_KPROBES_ON_FTRACE) += kprobes-ftr << 141 obj-$(CONFIG_UPROBES) += uprobes.o << 142 obj-$(CONFIG_RETHOOK) += rethook.o << 143 obj-$(CONFIG_PPC_UDBG_16550) += legacy_seri << 144 obj-$(CONFIG_SWIOTLB) += dma-swiotlb << 145 obj-$(CONFIG_ARCH_HAS_DMA_SET_MASK) += dma-mas << 146 << 147 pci64-$(CONFIG_PPC64) += pci_dn.o pc << 148 obj-$(CONFIG_PCI) += pci_$(BITS) << 149 pci-common. << 150 obj-$(CONFIG_PCI_MSI) += msi.o << 151 << 152 obj-$(CONFIG_AUDIT) += audit.o << 153 obj64-$(CONFIG_AUDIT) += compat_audi << 154 << 155 obj-$(CONFIG_PPC_IO_WORKAROUNDS) += io- << 156 << 157 obj-y += trace/ << 158 << 159 ifneq ($(CONFIG_PPC_INDIRECT_PIO),y) << 160 obj-y += iomap.o << 161 endif << 162 << 163 obj64-$(CONFIG_PPC_TRANSACTIONAL_MEM) += tm. << 164 << 165 ifneq ($(CONFIG_XMON)$(CONFIG_KEXEC_CORE)(CONF << 166 obj-y += ppc_save_re << 167 endif << 168 << 169 obj-$(CONFIG_EPAPR_PARAVIRT) += epapr_parav << 170 obj-$(CONFIG_KVM_GUEST) += kvm.o kvm_e << 171 ifneq ($(CONFIG_PPC_POWERNV)$(CONFIG_PPC_SVM), << 172 obj-y += ucall.o << 173 endif << 174 46 175 obj-$(CONFIG_PPC_SECURE_BOOT) += secure_boot !! 47 # Misc support 176 obj-$(CONFIG_PPC_SECVAR_SYSFS) += secvar-sysf !! 48 obj-$(CONFIG_ALPHA_SRM) += srmcons.o 177 49 178 # Disable GCOV, KCOV & sanitizers in odd or se !! 50 # Core logic support 179 GCOV_PROFILE_prom_init.o := n !! 51 obj-$(CONFIG_ALPHA_CIA) += core_cia.o 180 KCOV_INSTRUMENT_prom_init.o := n !! 52 obj-$(CONFIG_ALPHA_IRONGATE) += core_irongate.o 181 KCSAN_SANITIZE_prom_init.o := n !! 53 obj-$(CONFIG_ALPHA_MARVEL) += core_marvel.o gct.o 182 UBSAN_SANITIZE_prom_init.o := n !! 54 obj-$(CONFIG_ALPHA_MCPCIA) += core_mcpcia.o 183 GCOV_PROFILE_kprobes.o := n !! 55 obj-$(CONFIG_ALPHA_POLARIS) += core_polaris.o 184 KCOV_INSTRUMENT_kprobes.o := n !! 56 obj-$(CONFIG_ALPHA_T2) += core_t2.o 185 KCSAN_SANITIZE_kprobes.o := n !! 57 obj-$(CONFIG_ALPHA_TSUNAMI) += core_tsunami.o 186 UBSAN_SANITIZE_kprobes.o := n !! 58 obj-$(CONFIG_ALPHA_TITAN) += core_titan.o 187 GCOV_PROFILE_kprobes-ftrace.o := n !! 59 obj-$(CONFIG_ALPHA_WILDFIRE) += core_wildfire.o 188 KCOV_INSTRUMENT_kprobes-ftrace.o := n !! 60 189 KCSAN_SANITIZE_kprobes-ftrace.o := n !! 61 # Board support 190 UBSAN_SANITIZE_kprobes-ftrace.o := n !! 62 obj-$(CONFIG_ALPHA_ALCOR) += sys_alcor.o irq_i8259.o irq_srm.o 191 UBSAN_SANITIZE_vdso.o := n !! 63 obj-$(CONFIG_ALPHA_LX164) += sys_cabriolet.o irq_i8259.o irq_srm.o \ 192 !! 64 smc37c93x.o 193 # Necessary for booting with kcov enabled on b !! 65 obj-$(CONFIG_ALPHA_PC164) += sys_cabriolet.o irq_i8259.o irq_srm.o \ 194 KCOV_INSTRUMENT_cputable.o := n !! 66 smc37c93x.o 195 KCOV_INSTRUMENT_setup_64.o := n !! 67 obj-$(CONFIG_ALPHA_DP264) += sys_dp264.o irq_i8259.o es1888.o smc37c669.o 196 KCOV_INSTRUMENT_paca.o := n !! 68 obj-$(CONFIG_ALPHA_SHARK) += sys_dp264.o irq_i8259.o es1888.o smc37c669.o 197 !! 69 obj-$(CONFIG_ALPHA_TITAN) += sys_titan.o irq_i8259.o smc37c669.o 198 CFLAGS_setup_64.o += -fno-stack- !! 70 obj-$(CONFIG_ALPHA_EIGER) += sys_eiger.o irq_i8259.o 199 CFLAGS_paca.o += -fno-stack- !! 71 obj-$(CONFIG_ALPHA_MARVEL) += sys_marvel.o 200 !! 72 obj-$(CONFIG_ALPHA_MIATA) += sys_miata.o irq_pyxis.o irq_i8259.o \ 201 obj-$(CONFIG_PPC_FPU) += fpu.o !! 73 es1888.o smc37c669.o 202 obj-$(CONFIG_ALTIVEC) += vector.o !! 74 obj-$(CONFIG_ALPHA_MIKASA) += sys_mikasa.o irq_i8259.o irq_srm.o 203 !! 75 obj-$(CONFIG_ALPHA_NAUTILUS) += sys_nautilus.o irq_i8259.o irq_srm.o 204 obj-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += prom_i !! 76 obj-$(CONFIG_ALPHA_NORITAKE) += sys_noritake.o irq_i8259.o 205 obj64-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += prom !! 77 obj-$(CONFIG_ALPHA_RAWHIDE) += sys_rawhide.o irq_i8259.o 206 extra-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += prom !! 78 obj-$(CONFIG_ALPHA_RUFFIAN) += sys_ruffian.o irq_pyxis.o irq_i8259.o 207 !! 79 obj-$(CONFIG_ALPHA_RX164) += sys_rx164.o irq_i8259.o 208 obj-$(CONFIG_PPC64) += $(obj64-y) !! 80 obj-$(CONFIG_ALPHA_SABLE) += sys_sable.o 209 obj-$(CONFIG_PPC32) += $(obj32-y) !! 81 obj-$(CONFIG_ALPHA_SX164) += sys_sx164.o irq_pyxis.o irq_i8259.o \ 210 !! 82 irq_srm.o smc37c669.o 211 quiet_cmd_prom_init_check = PROMCHK $@ !! 83 obj-$(CONFIG_ALPHA_TAKARA) += sys_takara.o irq_i8259.o pc873xx.o 212 cmd_prom_init_check = $(CONFIG_SHELL) $< !! 84 obj-$(CONFIG_ALPHA_WILDFIRE) += sys_wildfire.o irq_i8259.o 213 !! 85 214 $(obj)/prom_init_check: $(src)/prom_init_check !! 86 # Error support 215 $(call if_changed,prom_init_check) !! 87 obj-$(CONFIG_ALPHA_MARVEL) += err_ev7.o err_marvel.o 216 targets += prom_init_check !! 88 obj-$(CONFIG_ALPHA_NAUTILUS) += err_ev6.o 217 !! 89 obj-$(CONFIG_ALPHA_TITAN) += err_ev6.o err_titan.o 218 clean-files := vmlinux.lds << 219 << 220 # Force dependency (incbin is bad) << 221 $(obj)/vdso32_wrapper.o : $(obj)/vdso/vdso32.s << 222 $(obj)/vdso64_wrapper.o : $(obj)/vdso/vdso64.s << 223 90 224 # for cleaning !! 91 endif # GENERIC 225 subdir- += vdso <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.