1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 # 2 # 3 # Makefile for the Linux/Xtensa kernel. !! 3 # Makefile for the linux kernel. 4 # 4 # 5 5 6 extra-y := vmlinux.lds !! 6 extra-y += vmlinux.lds 7 7 8 obj-y := head.o align.o coprocessor.o entry.o !! 8 obj-$(CONFIG_AMIGA) := head.o 9 ptrace.o setup.o signal.o stacktrace. !! 9 obj-$(CONFIG_ATARI) := head.o 10 vectors.o !! 10 obj-$(CONFIG_MAC) := head.o 11 !! 11 obj-$(CONFIG_APOLLO) := head.o 12 obj-$(CONFIG_MMU) += pci-dma.o !! 12 obj-$(CONFIG_VME) := head.o 13 obj-$(CONFIG_PCI) += pci.o !! 13 obj-$(CONFIG_HP300) := head.o 14 obj-$(CONFIG_MODULES) += xtensa_ksyms.o module !! 14 obj-$(CONFIG_Q40) := head.o 15 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o !! 15 obj-$(CONFIG_SUN3X) := head.o 16 obj-$(CONFIG_SMP) += smp.o !! 16 obj-$(CONFIG_VIRT) := head.o 17 obj-$(CONFIG_SECONDARY_RESET_VECTOR) += mxhead !! 17 obj-$(CONFIG_SUN3) := sun3-head.o 18 obj-$(CONFIG_XTENSA_VARIANT_HAVE_PERF_EVENTS) !! 18 19 obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpo !! 19 obj-y += entry.o irq.o module.o process.o ptrace.o 20 obj-$(CONFIG_S32C1I_SELFTEST) += s32c1i_selfte !! 20 obj-y += setup.o signal.o sys_m68k.o syscalltable.o time.o traps.o 21 obj-$(CONFIG_JUMP_LABEL) += jump_label.o !! 21 22 obj-$(CONFIG_HIBERNATION) += hibernate.o !! 22 obj-$(CONFIG_MMU_MOTOROLA) += ints.o vectors.o 23 !! 23 obj-$(CONFIG_MMU_SUN3) += ints.o vectors.o 24 # In the Xtensa architecture, assembly generat !! 24 obj-$(CONFIG_PCI) += pcibios.o 25 # precede the L32R instruction with a relative !! 25 26 # Therefore, the .text and .literal section mu !! 26 obj-$(CONFIG_M68K_NONCOHERENT_DMA) += dma.o 27 # in the linker script, such as: *(.literal .t !! 27 28 # !! 28 obj-$(CONFIG_KEXEC_CORE) += machine_kexec.o relocate_kernel.o 29 # We need to post-process the generated vmlinu !! 29 obj-$(CONFIG_BOOTINFO_PROC) += bootinfo_proc.o 30 # *(xxx.text) to *(xxx.literal xxx.text) for !! 30 obj-$(CONFIG_UBOOT) += uboot.o 31 # .text .ref.text .*init.text .*exit.text .t << 32 # << 33 # Replicate rules in scripts/Makefile.build << 34 31 35 sed-y = -e ':a; s/\*(\([^)]*\)\.text\.unlikely !! 32 obj-$(CONFIG_EARLY_PRINTK) += early_printk.o 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 33 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.