Makefile 686 B

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