1 # SPDX-License-Identifier: GPL-2.0 << 2 # 1 # 3 # Makefile for the Linux/Xtensa kernel. !! 2 # Makefile for the linux kernel. 4 # 3 # 5 4 6 extra-y := vmlinux.lds !! 5 ifndef CONFIG_SUN3 >> 6 extra-y := head.o >> 7 else >> 8 extra-y := sun3-head.o >> 9 endif >> 10 extra-y += vmlinux.lds 7 11 8 obj-y := head.o align.o coprocessor.o entry.o !! 12 obj-y := entry.o process.o traps.o ints.o signal.o ptrace.o module.o \ 9 ptrace.o setup.o signal.o stacktrace. !! 13 sys_m68k.o time.o setup.o m68k_ksyms.o devres.o 10 vectors.o << 11 14 12 obj-$(CONFIG_MMU) += pci-dma.o !! 15 devres-y = ../../../kernel/irq/devres.o 13 obj-$(CONFIG_PCI) += pci.o << 14 obj-$(CONFIG_MODULES) += xtensa_ksyms.o module << 15 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o << 16 obj-$(CONFIG_SMP) += smp.o << 17 obj-$(CONFIG_SECONDARY_RESET_VECTOR) += mxhead << 18 obj-$(CONFIG_XTENSA_VARIANT_HAVE_PERF_EVENTS) << 19 obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpo << 20 obj-$(CONFIG_S32C1I_SELFTEST) += s32c1i_selfte << 21 obj-$(CONFIG_JUMP_LABEL) += jump_label.o << 22 obj-$(CONFIG_HIBERNATION) += hibernate.o << 23 16 24 # In the Xtensa architecture, assembly generat !! 17 obj-y$(CONFIG_MMU_SUN3) += dma.o # no, it's not a typo 25 # precede the L32R instruction with a relative << 26 # Therefore, the .text and .literal section mu << 27 # in the linker script, such as: *(.literal .t << 28 # << 29 # We need to post-process the generated vmlinu << 30 # *(xxx.text) to *(xxx.literal xxx.text) for << 31 # .text .ref.text .*init.text .*exit.text .t << 32 # << 33 # Replicate rules in scripts/Makefile.build << 34 << 35 sed-y = -e ':a; s/\*(\([^)]*\)\.text\.unlikely << 36 -e ':b; s/\*(\([^)]*\)\.text\(\.[a-z]* << 37 -e ':c; s/\*(\([^)]*\)\(\.[a-z]*it\|\. << 38 -e ':d; s/\*(\([^)]\+ \|\)\.text/*(\1. << 39 -e 's/\.{text}/.text/g' << 40 << 41 quiet_cmd__cpp_lds_S = LDS $@ << 42 cmd__cpp_lds_S = $(CPP) $(cpp_flags) -P -C -Ux << 43 -DLINKER_SCRIPT $< | sed $(se << 44 << 45 $(obj)/vmlinux.lds: $(src)/vmlinux.lds.S FORCE << 46 $(call if_changed_dep,_cpp_lds_S) <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.