xref: /linux/arch/powerpc/platforms/powermac/Makefile (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2d7f39454SBenjamin HerrenschmidtCFLAGS_bootx_init.o  		+= -fPIC
3*893ab004SMasahiro YamadaCFLAGS_bootx_init.o		+= -fno-stack-protector
4d7f39454SBenjamin Herrenschmidt
5f072015cSChristophe LeroyKASAN_SANITIZE_bootx_init.o := n
6f072015cSChristophe Leroy
7f072015cSChristophe Leroyifdef CONFIG_KASAN
8f072015cSChristophe LeroyCFLAGS_bootx_init.o  		+= -DDISABLE_BRANCH_PROFILING
9f072015cSChristophe Leroyendif
10f072015cSChristophe Leroy
11606576ceSSteven Rostedtifdef CONFIG_FUNCTION_TRACER
124e491d14SSteven Rostedt# Do not trace early boot code
132a056f58SNicholas PigginCFLAGS_REMOVE_bootx_init.o = $(CC_FLAGS_FTRACE)
144e491d14SSteven Rostedtendif
154e491d14SSteven Rostedt
1635499c01SPaul Mackerrasobj-y				+= pic.o setup.o time.o feature.o pci.o \
175b9ca526SBenjamin Herrenschmidt				   sleep.o low_i2c.o cache.o pfunc_core.o \
189c4cb825SKumar Gala				   pfunc_base.o udbg_scc.o udbg_adb.o
19f6d57916SPaul Mackerrasobj-$(CONFIG_PMAC_BACKLIGHT)	+= backlight.o
2025985edcSLucas De Marchi# CONFIG_NVRAM is an arch. independent tristate symbol, for pmac32 we really
2121e38dfeSTony Breeds# need this to be a bool.  Cheat here and pretend CONFIG_NVRAM=m is really
2221e38dfeSTony Breeds# CONFIG_NVRAM=y
2321e38dfeSTony Breedsobj-$(CONFIG_NVRAM:m=y)		+= nvram.o
24d7f39454SBenjamin Herrenschmidtobj-$(CONFIG_PPC32)		+= bootx_init.o
25f6d57916SPaul Mackerrasobj-$(CONFIG_SMP)		+= smp.o
26