Makefile 776 B

123456789101112131415161718192021222324252627
  1. # SPDX-License-Identifier: GPL-2.0
  2. # Makefile for xmon
  3. # Disable clang warning for using setjmp without setjmp.h header
  4. subdir-ccflags-y := $(call cc-disable-warning, builtin-requires-header)
  5. GCOV_PROFILE := n
  6. UBSAN_SANITIZE := n
  7. # Disable ftrace for the entire directory
  8. ORIG_CFLAGS := $(KBUILD_CFLAGS)
  9. KBUILD_CFLAGS = $(subst $(CC_FLAGS_FTRACE),,$(ORIG_CFLAGS))
  10. ifdef CONFIG_CC_IS_CLANG
  11. # clang stores addresses on the stack causing the frame size to blow
  12. # out. See https://github.com/ClangBuiltLinux/linux/issues/252
  13. KBUILD_CFLAGS += -Wframe-larger-than=4096
  14. endif
  15. ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC)
  16. obj-y += xmon.o nonstdio.o spr_access.o
  17. ifdef CONFIG_XMON_DISASSEMBLY
  18. obj-y += ppc-dis.o ppc-opc.o
  19. obj-$(CONFIG_SPU_BASE) += spu-dis.o spu-opc.o
  20. endif