~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/xtensa/kernel/Makefile

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: GPL-2.0
  2 #
  3 # Makefile for the Linux/Xtensa kernel.
  4 #
  5 
  6 extra-y := vmlinux.lds
  7 
  8 obj-y := head.o align.o coprocessor.o entry.o irq.o platform.o process.o \
  9          ptrace.o setup.o signal.o stacktrace.o syscall.o time.o traps.o \
 10          vectors.o
 11 
 12 obj-$(CONFIG_MMU) += pci-dma.o
 13 obj-$(CONFIG_PCI) += pci.o
 14 obj-$(CONFIG_MODULES) += xtensa_ksyms.o module.o
 15 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o
 16 obj-$(CONFIG_SMP) += smp.o
 17 obj-$(CONFIG_SECONDARY_RESET_VECTOR) += mxhead.o
 18 obj-$(CONFIG_XTENSA_VARIANT_HAVE_PERF_EVENTS) += perf_event.o
 19 obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o
 20 obj-$(CONFIG_S32C1I_SELFTEST) += s32c1i_selftest.o
 21 obj-$(CONFIG_JUMP_LABEL) += jump_label.o
 22 obj-$(CONFIG_HIBERNATION) += hibernate.o
 23 
 24 # In the Xtensa architecture, assembly generates literals which must always
 25 # precede the L32R instruction with a relative offset less than 256 kB.
 26 # Therefore, the .text and .literal section must be combined in parenthesis
 27 # in the linker script, such as: *(.literal .text).
 28 #
 29 # We need to post-process the generated vmlinux.lds scripts to convert
 30 # *(xxx.text) to  *(xxx.literal xxx.text) for the following text sections:
 31 #   .text .ref.text .*init.text .*exit.text .text.*
 32 #
 33 # Replicate rules in scripts/Makefile.build
 34 
 35 sed-y = -e ':a; s/\*(\([^)]*\)\.text\.unlikely/*(\1.literal.unlikely .{text}.unlikely/; ta; ' \
 36         -e ':b; s/\*(\([^)]*\)\.text\(\.[a-z]*\)/*(\1.{text}\2.literal .{text}\2/; tb; ' \
 37         -e ':c; s/\*(\([^)]*\)\(\.[a-z]*it\|\.ref\)\.text/*(\1\2.literal \2.{text}/; tc; ' \
 38         -e ':d; s/\*(\([^)]\+ \|\)\.text/*(\1.literal .{text}/; td; ' \
 39         -e 's/\.{text}/.text/g'
 40 
 41 quiet_cmd__cpp_lds_S = LDS     $@
 42 cmd__cpp_lds_S = $(CPP) $(cpp_flags) -P -C -Uxtensa -D__ASSEMBLY__ \
 43                  -DLINKER_SCRIPT $< | sed $(sed-y) >$@
 44 
 45 $(obj)/vmlinux.lds: $(src)/vmlinux.lds.S FORCE
 46         $(call if_changed_dep,_cpp_lds_S)

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php