xref: /linux/arch/powerpc/platforms/powermac/Makefile (revision c3ff2a5193fa61b1b284cfb1d79628814ed0e95a)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2d7f39454SBenjamin HerrenschmidtCFLAGS_bootx_init.o  		+= -fPIC
3*c3ff2a51SChristophe LeroyCFLAGS_bootx_init.o  		+= $(call cc-option, -fno-stack-protector)
4d7f39454SBenjamin Herrenschmidt
5606576ceSSteven Rostedtifdef CONFIG_FUNCTION_TRACER
64e491d14SSteven Rostedt# Do not trace early boot code
72a056f58SNicholas PigginCFLAGS_REMOVE_bootx_init.o = $(CC_FLAGS_FTRACE)
84e491d14SSteven Rostedtendif
94e491d14SSteven Rostedt
1035499c01SPaul Mackerrasobj-y				+= pic.o setup.o time.o feature.o pci.o \
115b9ca526SBenjamin Herrenschmidt				   sleep.o low_i2c.o cache.o pfunc_core.o \
129c4cb825SKumar Gala				   pfunc_base.o udbg_scc.o udbg_adb.o
13f6d57916SPaul Mackerrasobj-$(CONFIG_PMAC_BACKLIGHT)	+= backlight.o
1425985edcSLucas De Marchi# CONFIG_NVRAM is an arch. independent tristate symbol, for pmac32 we really
1521e38dfeSTony Breeds# need this to be a bool.  Cheat here and pretend CONFIG_NVRAM=m is really
1621e38dfeSTony Breeds# CONFIG_NVRAM=y
1721e38dfeSTony Breedsobj-$(CONFIG_NVRAM:m=y)		+= nvram.o
1835499c01SPaul Mackerras# ppc64 pmac doesn't define CONFIG_NVRAM but needs nvram stuff
1935499c01SPaul Mackerrasobj-$(CONFIG_PPC64)		+= nvram.o
20d7f39454SBenjamin Herrenschmidtobj-$(CONFIG_PPC32)		+= bootx_init.o
21f6d57916SPaul Mackerrasobj-$(CONFIG_SMP)		+= smp.o
22