Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Benjamin Herrenschmidt | d7f3945 | 2005-11-23 17:58:13 +1100 | [diff] [blame] | 2 | CFLAGS_bootx_init.o += -fPIC |
Christophe Leroy | c3ff2a5 | 2018-09-27 07:05:53 +0000 | [diff] [blame] | 3 | CFLAGS_bootx_init.o += $(call cc-option, -fno-stack-protector) |
Benjamin Herrenschmidt | d7f3945 | 2005-11-23 17:58:13 +1100 | [diff] [blame] | 4 | |
Steven Rostedt | 606576c | 2008-10-06 19:06:12 -0400 | [diff] [blame] | 5 | ifdef CONFIG_FUNCTION_TRACER |
Steven Rostedt | 4e491d1 | 2008-05-14 23:49:44 -0400 | [diff] [blame] | 6 | # Do not trace early boot code |
Nicholas Piggin | 2a056f5 | 2018-09-14 15:08:53 +1000 | [diff] [blame] | 7 | CFLAGS_REMOVE_bootx_init.o = $(CC_FLAGS_FTRACE) |
Steven Rostedt | 4e491d1 | 2008-05-14 23:49:44 -0400 | [diff] [blame] | 8 | endif |
| 9 | |
Paul Mackerras | 35499c0 | 2005-10-22 16:02:39 +1000 | [diff] [blame] | 10 | obj-y += pic.o setup.o time.o feature.o pci.o \ |
Benjamin Herrenschmidt | 5b9ca52 | 2006-01-07 11:41:02 +1100 | [diff] [blame] | 11 | sleep.o low_i2c.o cache.o pfunc_core.o \ |
Kumar Gala | 9c4cb82 | 2008-08-02 02:44:11 +1000 | [diff] [blame] | 12 | pfunc_base.o udbg_scc.o udbg_adb.o |
Paul Mackerras | f6d5791 | 2005-10-10 22:13:53 +1000 | [diff] [blame] | 13 | obj-$(CONFIG_PMAC_BACKLIGHT) += backlight.o |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 14 | # CONFIG_NVRAM is an arch. independent tristate symbol, for pmac32 we really |
Tony Breeds | 21e38df | 2008-04-29 11:42:32 +1000 | [diff] [blame] | 15 | # need this to be a bool. Cheat here and pretend CONFIG_NVRAM=m is really |
| 16 | # CONFIG_NVRAM=y |
| 17 | obj-$(CONFIG_NVRAM:m=y) += nvram.o |
Paul Mackerras | 35499c0 | 2005-10-22 16:02:39 +1000 | [diff] [blame] | 18 | # ppc64 pmac doesn't define CONFIG_NVRAM but needs nvram stuff |
| 19 | obj-$(CONFIG_PPC64) += nvram.o |
Benjamin Herrenschmidt | d7f3945 | 2005-11-23 17:58:13 +1100 | [diff] [blame] | 20 | obj-$(CONFIG_PPC32) += bootx_init.o |
Paul Mackerras | f6d5791 | 2005-10-10 22:13:53 +1000 | [diff] [blame] | 21 | obj-$(CONFIG_SMP) += smp.o |