blob: 923bfb34043336c044ea9d127ccf0567f7b55ad2 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Benjamin Herrenschmidtd7f39452005-11-23 17:58:13 +11002CFLAGS_bootx_init.o += -fPIC
Christophe Leroyc3ff2a52018-09-27 07:05:53 +00003CFLAGS_bootx_init.o += $(call cc-option, -fno-stack-protector)
Benjamin Herrenschmidtd7f39452005-11-23 17:58:13 +11004
Steven Rostedt606576c2008-10-06 19:06:12 -04005ifdef CONFIG_FUNCTION_TRACER
Steven Rostedt4e491d12008-05-14 23:49:44 -04006# Do not trace early boot code
Nicholas Piggin2a056f52018-09-14 15:08:53 +10007CFLAGS_REMOVE_bootx_init.o = $(CC_FLAGS_FTRACE)
Steven Rostedt4e491d12008-05-14 23:49:44 -04008endif
9
Paul Mackerras35499c02005-10-22 16:02:39 +100010obj-y += pic.o setup.o time.o feature.o pci.o \
Benjamin Herrenschmidt5b9ca522006-01-07 11:41:02 +110011 sleep.o low_i2c.o cache.o pfunc_core.o \
Kumar Gala9c4cb822008-08-02 02:44:11 +100012 pfunc_base.o udbg_scc.o udbg_adb.o
Paul Mackerrasf6d57912005-10-10 22:13:53 +100013obj-$(CONFIG_PMAC_BACKLIGHT) += backlight.o
Lucas De Marchi25985ed2011-03-30 22:57:33 -030014# CONFIG_NVRAM is an arch. independent tristate symbol, for pmac32 we really
Tony Breeds21e38df2008-04-29 11:42:32 +100015# need this to be a bool. Cheat here and pretend CONFIG_NVRAM=m is really
16# CONFIG_NVRAM=y
17obj-$(CONFIG_NVRAM:m=y) += nvram.o
Paul Mackerras35499c02005-10-22 16:02:39 +100018# ppc64 pmac doesn't define CONFIG_NVRAM but needs nvram stuff
19obj-$(CONFIG_PPC64) += nvram.o
Benjamin Herrenschmidtd7f39452005-11-23 17:58:13 +110020obj-$(CONFIG_PPC32) += bootx_init.o
Paul Mackerrasf6d57912005-10-10 22:13:53 +100021obj-$(CONFIG_SMP) += smp.o