Makefile 796 B

12345678910111213141516171819202122232425
  1. # SPDX-License-Identifier: GPL-2.0
  2. CFLAGS_bootx_init.o += -fPIC
  3. CFLAGS_bootx_init.o += -fno-stack-protector
  4. KASAN_SANITIZE_bootx_init.o := n
  5. ifdef CONFIG_KASAN
  6. CFLAGS_bootx_init.o += -DDISABLE_BRANCH_PROFILING
  7. endif
  8. ifdef CONFIG_FUNCTION_TRACER
  9. # Do not trace early boot code
  10. CFLAGS_REMOVE_bootx_init.o = $(CC_FLAGS_FTRACE)
  11. endif
  12. obj-y += pic.o setup.o time.o feature.o pci.o \
  13. sleep.o low_i2c.o cache.o pfunc_core.o \
  14. pfunc_base.o udbg_scc.o udbg_adb.o
  15. obj-$(CONFIG_PMAC_BACKLIGHT) += backlight.o
  16. # CONFIG_NVRAM is an arch. independent tristate symbol, for pmac32 we really
  17. # need this to be a bool. Cheat here and pretend CONFIG_NVRAM=m is really
  18. # CONFIG_NVRAM=y
  19. obj-$(CONFIG_NVRAM:m=y) += nvram.o
  20. obj-$(CONFIG_PPC32) += bootx_init.o
  21. obj-$(CONFIG_SMP) += smp.o