1 # SPDX-License-Identifier: GPL-2.0 << 2 # 1 # 3 # Makefile for the linux kernel. 2 # Makefile for the linux kernel. 4 # 3 # >> 4 # Note! Dependencies are done automagically by 'make dep', which also >> 5 # removes any old dependencies. DON'T put your own dependencies here >> 6 # unless it's something special (ie not a .c file). >> 7 # >> 8 # Note 2! The CFLAGS definitions are now in the main makefile... >> 9 >> 10 .S.o: >> 11 $(CC) $(AFLAGS) -traditional -c $< -o $*.o >> 12 >> 13 ifndef CONFIG_SUN3 >> 14 all: head.o kernel.o >> 15 else >> 16 all: sun3-head.o kernel.o >> 17 endif >> 18 >> 19 O_TARGET := kernel.o >> 20 >> 21 export-objs := setup.o m68k_ksyms.o >> 22 >> 23 obj-y := entry.o process.o traps.o ints.o signal.o ptrace.o \ >> 24 sys_m68k.o time.o semaphore.o setup.o m68k_ksyms.o >> 25 >> 26 obj-$(CONFIG_PCI) += bios32.o >> 27 >> 28 head.o: head.S m68k_defs.h >> 29 >> 30 entry.o: entry.S m68k_defs.h 5 31 6 CFLAGS_armv8_deprecated.o := -I$(src) !! 32 sun3-head.o: sun3-head.S m68k_defs.h 7 33 8 CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE) !! 34 m68k_defs.h: m68k_defs.c m68k_defs.head 9 CFLAGS_REMOVE_insn.o = $(CC_FLAGS_FTRACE) !! 35 rm -f m68k_defs.d 10 CFLAGS_REMOVE_return_address.o = $(CC_FLAGS_FT !! 36 SUNPRO_DEPENDENCIES="m68k_defs.d m68k_defs.h" \ 11 !! 37 $(CC) $(filter-out -MD,$(CFLAGS)) -S m68k_defs.c 12 # Remove stack protector to avoid triggering u !! 38 cp m68k_defs.head m68k_defs.h 13 # checks due to randomize_kstack_offset. !! 39 grep '^#define' m68k_defs.s >> m68k_defs.h 14 CFLAGS_REMOVE_syscall.o = -fstack-protector - !! 40 rm m68k_defs.s 15 CFLAGS_syscall.o += -fno-stack-protecto !! 41 -include m68k_defs.d 16 << 17 # When KASAN is enabled, a stack trace is reco << 18 # can significantly impact performance. Avoid << 19 # collection code to minimize this impact. << 20 KASAN_SANITIZE_stacktrace.o := n << 21 << 22 # It's not safe to invoke KCOV when portions o << 23 # available or are out-of-sync with HW state. << 24 # inhibit KCOV instrumentation, disable it for << 25 KCOV_INSTRUMENT_entry-common.o := n << 26 KCOV_INSTRUMENT_idle.o := n << 27 << 28 # Object file lists. << 29 obj-y := debug-monitors.o en << 30 entry-common.o entr << 31 setup.o signal.o sy << 32 io.o vdso.o hyp-stu << 33 return_address.o cp << 34 cpufeature.o altern << 35 smp.o smp_spin_tabl << 36 syscall.o proton-pa << 37 << 38 obj-$(CONFIG_COMPAT) += sys << 39 sys << 40 obj-$(CONFIG_COMPAT) += sig << 41 obj-$(CONFIG_COMPAT_ALIGNMENT_FIXUPS) += com << 42 obj-$(CONFIG_KUSER_HELPERS) += kus << 43 obj-$(CONFIG_FUNCTION_TRACER) += ftr << 44 obj-$(CONFIG_MODULES) += mod << 45 obj-$(CONFIG_PERF_EVENTS) += per << 46 obj-$(CONFIG_HARDLOCKUP_DETECTOR_PERF) += wat << 47 obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_ << 48 obj-$(CONFIG_CPU_PM) += sle << 49 obj-$(CONFIG_JUMP_LABEL) += jum << 50 obj-$(CONFIG_KGDB) += kgd << 51 obj-$(CONFIG_EFI) += efi << 52 obj-$(CONFIG_PCI) += pci << 53 obj-$(CONFIG_ARMV8_DEPRECATED) += arm << 54 obj-$(CONFIG_ACPI) += acp << 55 obj-$(CONFIG_ACPI_NUMA) += acp << 56 obj-$(CONFIG_ARM64_ACPI_PARKING_PROTOCOL) << 57 obj-$(CONFIG_PARAVIRT) += par << 58 obj-$(CONFIG_RANDOMIZE_BASE) += kas << 59 obj-$(CONFIG_HIBERNATION) += hib << 60 obj-$(CONFIG_ELF_CORE) += elf << 61 obj-$(CONFIG_KEXEC_CORE) += mac << 62 cpu << 63 obj-$(CONFIG_KEXEC_FILE) += mac << 64 obj-$(CONFIG_ARM64_RELOC_TEST) += arm << 65 arm64-reloc-test-y := reloc_test_core.o reloc_ << 66 obj-$(CONFIG_CRASH_DUMP) += cra << 67 obj-$(CONFIG_VMCORE_INFO) += vmc << 68 obj-$(CONFIG_ARM_SDE_INTERFACE) += sde << 69 obj-$(CONFIG_ARM64_PTR_AUTH) += poi << 70 obj-$(CONFIG_ARM64_MTE) += mte << 71 obj-y += vds << 72 obj-$(CONFIG_COMPAT_VDSO) += vds << 73 << 74 # Force dependency (vdso*-wrap.S includes vdso << 75 $(obj)/vdso-wrap.o: $(obj)/vdso/vdso.so << 76 $(obj)/vdso32-wrap.o: $(obj)/vdso32/vdso.so << 77 << 78 obj-y += pro << 79 obj-y += hea << 80 extra-y += vml << 81 << 82 ifeq ($(CONFIG_DEBUG_EFI),y) << 83 AFLAGS_head.o += -DVMLINUX_PATH="\"$(realpath << 84 endif << 85 42 86 # for cleaning !! 43 include $(TOPDIR)/Rules.make 87 subdir- += vdso vdso32 <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.