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