Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 2 | # |
| 3 | # Makefile for the linux kernel. |
| 4 | # |
| 5 | |
Roland McGrath | 80fdf47 | 2007-12-20 03:58:00 -0800 | [diff] [blame] | 6 | CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' |
| 7 | |
Michael Ellerman | ba55bd7 | 2009-06-09 20:48:51 +0000 | [diff] [blame] | 8 | subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror |
| 9 | |
Stephen Rothwell | bd142b7 | 2005-09-30 13:51:25 +1000 | [diff] [blame] | 10 | ifeq ($(CONFIG_PPC64),y) |
Anton Blanchard | 1fbe9cf | 2012-11-26 17:41:08 +0000 | [diff] [blame] | 11 | CFLAGS_prom_init.o += $(NO_MINIMAL_TOC) |
Stephen Rothwell | bd142b7 | 2005-09-30 13:51:25 +1000 | [diff] [blame] | 12 | endif |
Stephen Rothwell | cabb558 | 2005-09-30 16:16:52 +1000 | [diff] [blame] | 13 | ifeq ($(CONFIG_PPC32),y) |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 14 | CFLAGS_prom_init.o += -fPIC |
Paul Mackerras | b349126 | 2005-10-06 13:24:50 +1000 | [diff] [blame] | 15 | CFLAGS_btext.o += -fPIC |
Stephen Rothwell | cabb558 | 2005-09-30 16:16:52 +1000 | [diff] [blame] | 16 | endif |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 17 | |
Emese Revfy | 38addce | 2016-06-20 20:41:19 +0200 | [diff] [blame] | 18 | CFLAGS_cputable.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) |
Andrew Donnellan | eac6f8b | 2016-12-06 17:27:59 +1100 | [diff] [blame] | 19 | CFLAGS_prom_init.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) |
Emese Revfy | 38addce | 2016-06-20 20:41:19 +0200 | [diff] [blame] | 20 | CFLAGS_btext.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) |
| 21 | CFLAGS_prom.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) |
| 22 | |
Steven Rostedt | 606576c | 2008-10-06 19:06:12 -0400 | [diff] [blame] | 23 | ifdef CONFIG_FUNCTION_TRACER |
Steven Rostedt | 4e491d1 | 2008-05-14 23:49:44 -0400 | [diff] [blame] | 24 | # Do not trace early boot code |
Torsten Duwe | 9a7841a | 2016-03-03 15:26:58 +1100 | [diff] [blame] | 25 | CFLAGS_REMOVE_cputable.o = -mno-sched-epilog $(CC_FLAGS_FTRACE) |
| 26 | CFLAGS_REMOVE_prom_init.o = -mno-sched-epilog $(CC_FLAGS_FTRACE) |
| 27 | CFLAGS_REMOVE_btext.o = -mno-sched-epilog $(CC_FLAGS_FTRACE) |
| 28 | CFLAGS_REMOVE_prom.o = -mno-sched-epilog $(CC_FLAGS_FTRACE) |
Steven Rostedt | 4e491d1 | 2008-05-14 23:49:44 -0400 | [diff] [blame] | 29 | endif |
| 30 | |
Matthew Wilcox | 64ac24e | 2008-03-07 21:55:58 -0500 | [diff] [blame] | 31 | obj-y := cputable.o ptrace.o syscalls.o \ |
Paul Mackerras | 624cee3 | 2006-01-12 21:22:34 +1100 | [diff] [blame] | 32 | irq.o align.o signal_32.o pmc.o vdso.o \ |
Thomas Gleixner | b0ce50a | 2012-05-03 09:02:57 +0000 | [diff] [blame] | 33 | process.o systbl.o idle.o \ |
Michael Ellerman | 698193d | 2010-11-08 17:31:36 +0000 | [diff] [blame] | 34 | signal.o sysfs.o cacheinfo.o time.o \ |
| 35 | prom.o traps.o setup-common.o \ |
Michael Ellerman | 68201fb | 2016-08-11 16:03:14 +1000 | [diff] [blame] | 36 | udbg.o misc.o io.o dma.o misc_$(BITS).o \ |
Kevin Hao | 52d9962 | 2015-03-12 20:32:50 +0800 | [diff] [blame] | 37 | of_platform.o prom_parse.o |
Roland McGrath | 01e31db | 2008-01-02 17:03:11 -0800 | [diff] [blame] | 38 | obj-$(CONFIG_PPC64) += setup_64.o sys_ppc32.o \ |
Paul Mackerras | 8568daa | 2006-02-10 16:02:20 +1100 | [diff] [blame] | 39 | signal_64.o ptrace32.o \ |
Benjamin Herrenschmidt | 2d27cfd | 2009-07-23 23:15:59 +0000 | [diff] [blame] | 40 | paca.o nvram_64.o firmware.o |
Michael Ellerman | e0d0059 | 2015-05-11 20:01:02 +1000 | [diff] [blame] | 41 | obj-$(CONFIG_VDSO32) += vdso32/ |
Nicholas Piggin | 75eb767 | 2017-08-01 22:00:52 +1000 | [diff] [blame] | 42 | obj-$(CONFIG_PPC_WATCHDOG) += watchdog.o |
K.Prasad | 5aae8a5 | 2010-06-15 11:35:19 +0530 | [diff] [blame] | 43 | obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o |
Benjamin Herrenschmidt | 2d27cfd | 2009-07-23 23:15:59 +0000 | [diff] [blame] | 44 | obj-$(CONFIG_PPC_BOOK3S_64) += cpu_setup_ppc970.o cpu_setup_pa6t.o |
Michael Neuling | cd5daaf | 2012-10-30 19:34:13 +0000 | [diff] [blame] | 45 | obj-$(CONFIG_PPC_BOOK3S_64) += cpu_setup_power.o |
Paolo Bonzini | 7c37952 | 2016-08-11 15:07:43 +0200 | [diff] [blame] | 46 | obj-$(CONFIG_PPC_BOOK3S_64) += mce.o mce_power.o |
Benjamin Herrenschmidt | 34d97e0 | 2010-07-14 14:12:16 +1000 | [diff] [blame] | 47 | obj-$(CONFIG_PPC_BOOK3E_64) += exceptions-64e.o idle_book3e.o |
Benjamin Herrenschmidt | a7f290d | 2005-11-11 21:15:21 +1100 | [diff] [blame] | 48 | obj-$(CONFIG_PPC64) += vdso64/ |
Benjamin Herrenschmidt | e821ea7 | 2009-06-02 21:17:37 +0000 | [diff] [blame] | 49 | obj-$(CONFIG_ALTIVEC) += vecemu.o |
Paul Mackerras | f39224a | 2006-04-18 21:49:11 +1000 | [diff] [blame] | 50 | obj-$(CONFIG_PPC_970_NAP) += idle_power4.o |
Shreyas B. Prabhu | 83289f9 | 2016-07-08 11:50:45 +0530 | [diff] [blame] | 51 | obj-$(CONFIG_PPC_P7_NAP) += idle_book3s.o |
Benjamin Herrenschmidt | 188917e | 2009-09-24 19:29:13 +0000 | [diff] [blame] | 52 | procfs-y := proc_powerpc.o |
David Gibson | d3d2176 | 2005-11-10 15:26:20 +1100 | [diff] [blame] | 53 | obj-$(CONFIG_PROC_FS) += $(procfs-y) |
Stephen Rothwell | bed5927 | 2007-03-04 17:04:44 +1100 | [diff] [blame] | 54 | rtaspci-$(CONFIG_PPC64)-$(CONFIG_PCI) := rtas_pci.o |
| 55 | obj-$(CONFIG_PPC_RTAS) += rtas.o rtas-rtc.o $(rtaspci-y-y) |
Benjamin Herrenschmidt | 3d541c4 | 2009-09-24 19:30:05 +0000 | [diff] [blame] | 56 | obj-$(CONFIG_PPC_RTAS_DAEMON) += rtasd.o |
Paul Mackerras | f4fcbbe | 2005-11-03 14:41:19 +1100 | [diff] [blame] | 57 | obj-$(CONFIG_RTAS_FLASH) += rtas_flash.o |
| 58 | obj-$(CONFIG_RTAS_PROC) += rtas-proc.o |
Nicholas Piggin | 5a61ef7 | 2017-05-09 13:16:52 +1000 | [diff] [blame] | 59 | obj-$(CONFIG_PPC_DT_CPU_FTRS) += dt_cpu_ftrs.o |
Gavin Shan | 317f06d | 2013-06-20 13:20:52 +0800 | [diff] [blame] | 60 | obj-$(CONFIG_EEH) += eeh.o eeh_pe.o eeh_dev.o eeh_cache.o \ |
| 61 | eeh_driver.o eeh_event.o eeh_sysfs.o |
Paul Mackerras | 8ad200d | 2005-11-04 13:28:58 +1100 | [diff] [blame] | 62 | obj-$(CONFIG_GENERIC_TBSYNC) += smp-tbsync.o |
Michael Ellerman | 0cc4746 | 2005-12-04 18:39:37 +1100 | [diff] [blame] | 63 | obj-$(CONFIG_CRASH_DUMP) += crash_dump.o |
Mahesh Salgaonkar | eb39c880 | 2012-02-16 01:14:22 +0000 | [diff] [blame] | 64 | obj-$(CONFIG_FA_DUMP) += fadump.o |
Kumar Gala | 4490c06 | 2010-10-08 08:32:11 -0500 | [diff] [blame] | 65 | ifeq ($(CONFIG_PPC32),y) |
Kumar Gala | fc4033b | 2008-06-18 16:26:52 -0500 | [diff] [blame] | 66 | obj-$(CONFIG_E500) += idle_e500.o |
Kumar Gala | 4490c06 | 2010-10-08 08:32:11 -0500 | [diff] [blame] | 67 | endif |
Paul Mackerras | 9b78172 | 2006-03-27 19:15:26 +1100 | [diff] [blame] | 68 | obj-$(CONFIG_6xx) += idle_6xx.o l2cr_6xx.o cpu_setup_6xx.o |
| 69 | obj-$(CONFIG_TAU) += tau_6xx.o |
Anton Vorontsov | 90103f9 | 2010-05-17 22:56:52 +0400 | [diff] [blame] | 70 | obj-$(CONFIG_HIBERNATION) += swsusp.o suspend.o |
| 71 | ifeq ($(CONFIG_FSL_BOOKE),y) |
| 72 | obj-$(CONFIG_HIBERNATION) += swsusp_booke.o |
| 73 | else |
Michael Ellerman | 68201fb | 2016-08-11 16:03:14 +1000 | [diff] [blame] | 74 | obj-$(CONFIG_HIBERNATION) += swsusp_$(BITS).o |
Anton Vorontsov | 90103f9 | 2010-05-17 22:56:52 +0400 | [diff] [blame] | 75 | endif |
Stephen Rothwell | 2578bfa | 2007-09-21 10:16:20 +1000 | [diff] [blame] | 76 | obj64-$(CONFIG_HIBERNATION) += swsusp_asm64.o |
Michael Ellerman | 68201fb | 2016-08-11 16:03:14 +1000 | [diff] [blame] | 77 | obj-$(CONFIG_MODULES) += module.o module_$(BITS).o |
Paul Mackerras | 26f571d | 2007-10-04 11:02:09 +1000 | [diff] [blame] | 78 | obj-$(CONFIG_44x) += cpu_setup_44x.o |
Ian Munsie | 440bc68 | 2012-11-14 18:49:49 +0000 | [diff] [blame] | 79 | obj-$(CONFIG_PPC_FSL_BOOK3E) += cpu_setup_fsl_booke.o |
| 80 | obj-$(CONFIG_PPC_DOORBELL) += dbell.o |
Michael Ellerman | ac5f89c | 2011-06-29 19:16:59 +0000 | [diff] [blame] | 81 | obj-$(CONFIG_JUMP_LABEL) += jump_label.o |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 82 | |
Michael Ellerman | 68201fb | 2016-08-11 16:03:14 +1000 | [diff] [blame] | 83 | extra-y := head_$(BITS).o |
Josh Boyer | 15f6527 | 2007-08-20 07:27:07 -0500 | [diff] [blame] | 84 | extra-$(CONFIG_40x) := head_40x.o |
Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 85 | extra-$(CONFIG_44x) := head_44x.o |
| 86 | extra-$(CONFIG_FSL_BOOKE) := head_fsl_booke.o |
Christophe Leroy | 968159c | 2017-08-08 13:58:54 +0200 | [diff] [blame] | 87 | extra-$(CONFIG_PPC_8xx) := head_8xx.o |
Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 88 | extra-y += vmlinux.lds |
| 89 | |
Michael Ellerman | 68201fb | 2016-08-11 16:03:14 +1000 | [diff] [blame] | 90 | obj-$(CONFIG_RELOCATABLE) += reloc_$(BITS).o |
Suzuki Poulose | 9c5f7d3 | 2011-12-14 22:58:12 +0000 | [diff] [blame] | 91 | |
Stephen Rothwell | 2578bfa | 2007-09-21 10:16:20 +1000 | [diff] [blame] | 92 | obj-$(CONFIG_PPC32) += entry_32.o setup_32.o |
Becky Bruce | 4fc665b | 2008-09-12 10:34:46 +0000 | [diff] [blame] | 93 | obj-$(CONFIG_PPC64) += dma-iommu.o iommu.o |
Jason Wessel | 17ce452 | 2008-07-23 11:30:15 -0500 | [diff] [blame] | 94 | obj-$(CONFIG_KGDB) += kgdb.o |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 95 | obj-$(CONFIG_BOOTX_TEXT) += btext.o |
Paul Mackerras | 5ad5707 | 2005-11-05 10:33:55 +1100 | [diff] [blame] | 96 | obj-$(CONFIG_SMP) += smp.o |
Paul Mackerras | 7568cb4 | 2005-11-14 17:30:17 +1100 | [diff] [blame] | 97 | obj-$(CONFIG_KPROBES) += kprobes.o |
Anju T | 51c9c08 | 2017-02-08 15:20:51 +0530 | [diff] [blame] | 98 | obj-$(CONFIG_OPTPROBES) += optprobes.o optprobes_head.o |
Naveen N. Rao | ead514d | 2017-04-19 18:22:26 +0530 | [diff] [blame] | 99 | obj-$(CONFIG_KPROBES_ON_FTRACE) += kprobes-ftrace.o |
Ananth N Mavinakayanahalli | 8b7b80b | 2012-08-23 21:31:32 +0000 | [diff] [blame] | 100 | obj-$(CONFIG_UPROBES) += uprobes.o |
Paul Mackerras | 13b8a27 | 2006-01-10 16:19:05 +1100 | [diff] [blame] | 101 | obj-$(CONFIG_PPC_UDBG_16550) += legacy_serial.o udbg_16550.o |
Christoph Hellwig | fd3e0bb | 2008-04-17 14:35:00 +1000 | [diff] [blame] | 102 | obj-$(CONFIG_STACKTRACE) += stacktrace.o |
Becky Bruce | ec3cf2e | 2009-05-14 12:42:28 +0000 | [diff] [blame] | 103 | obj-$(CONFIG_SWIOTLB) += dma-swiotlb.o |
Benjamin Herrenschmidt | 4c75a6f | 2006-11-11 17:24:53 +1100 | [diff] [blame] | 104 | |
Gavin Shan | 317f06d | 2013-06-20 13:20:52 +0800 | [diff] [blame] | 105 | pci64-$(CONFIG_PPC64) += pci_dn.o pci-hotplug.o isa-bridge.o |
Michael Ellerman | 68201fb | 2016-08-11 16:03:14 +1000 | [diff] [blame] | 106 | obj-$(CONFIG_PCI) += pci_$(BITS).o $(pci64-y) \ |
Grant Likely | fbe6544 | 2009-08-25 20:07:11 +0000 | [diff] [blame] | 107 | pci-common.o pci_of_scan.o |
Michael Ellerman | df87ef5 | 2007-05-08 12:58:34 +1000 | [diff] [blame] | 108 | obj-$(CONFIG_PCI_MSI) += msi.o |
Thiago Jung Bauermann | da66588 | 2016-11-29 23:45:50 +1100 | [diff] [blame] | 109 | obj-$(CONFIG_KEXEC_CORE) += machine_kexec.o crash.o \ |
Michael Ellerman | 68201fb | 2016-08-11 16:03:14 +1000 | [diff] [blame] | 110 | machine_kexec_$(BITS).o |
Thiago Jung Bauermann | a045828 | 2016-11-29 23:45:51 +1100 | [diff] [blame] | 111 | obj-$(CONFIG_KEXEC_FILE) += machine_kexec_file_$(BITS).o kexec_elf_$(BITS).o |
Thiago Jung Bauermann | 467d278 | 2016-12-19 16:22:32 -0800 | [diff] [blame] | 112 | ifeq ($(CONFIG_HAVE_IMA_KEXEC)$(CONFIG_IMA),yy) |
| 113 | obj-y += ima_kexec.o |
| 114 | endif |
| 115 | |
Al Viro | c080379 | 2006-08-31 19:02:42 -0400 | [diff] [blame] | 116 | obj-$(CONFIG_AUDIT) += audit.o |
| 117 | obj64-$(CONFIG_AUDIT) += compat_audit.o |
Stephen Rothwell | cabb558 | 2005-09-30 16:16:52 +1000 | [diff] [blame] | 118 | |
Michael Ellerman | 3cc30d0 | 2011-04-11 21:25:01 +0000 | [diff] [blame] | 119 | obj-$(CONFIG_PPC_IO_WORKAROUNDS) += io-workarounds.o |
| 120 | |
Naveen N. Rao | 7853f9c | 2017-04-25 19:25:53 +0530 | [diff] [blame] | 121 | obj-y += trace/ |
Scott Wood | a111065 | 2010-02-25 18:09:45 -0600 | [diff] [blame] | 122 | |
Benjamin Herrenschmidt | ecd73cc | 2013-07-15 13:03:08 +1000 | [diff] [blame] | 123 | ifneq ($(CONFIG_PPC_INDIRECT_PIO),y) |
Benjamin Herrenschmidt | 68a6435 | 2006-11-13 09:27:39 +1100 | [diff] [blame] | 124 | obj-y += iomap.o |
Benjamin Herrenschmidt | 4cb3cee | 2006-11-11 17:25:10 +1100 | [diff] [blame] | 125 | endif |
| 126 | |
Michael Neuling | 98ae22e | 2013-02-13 16:21:35 +0000 | [diff] [blame] | 127 | obj64-$(CONFIG_PPC_TRANSACTIONAL_MEM) += tm.o |
| 128 | |
Paul Mackerras | 437a58d | 2005-11-18 15:43:34 +1100 | [diff] [blame] | 129 | obj-$(CONFIG_PPC64) += $(obj64-y) |
Paul Mackerras | 7325927 | 2009-06-17 21:53:51 +1000 | [diff] [blame] | 130 | obj-$(CONFIG_PPC32) += $(obj32-y) |
Paul Mackerras | 437a58d | 2005-11-18 15:43:34 +1100 | [diff] [blame] | 131 | |
Thiago Jung Bauermann | da66588 | 2016-11-29 23:45:50 +1100 | [diff] [blame] | 132 | ifneq ($(CONFIG_XMON)$(CONFIG_KEXEC_CORE),) |
Anton Vorontsov | 322b439 | 2008-12-17 10:08:55 +0000 | [diff] [blame] | 133 | obj-y += ppc_save_regs.o |
| 134 | endif |
| 135 | |
Liu Yu-B13201 | 2e1ae9c | 2012-03-15 10:52:13 +0000 | [diff] [blame] | 136 | obj-$(CONFIG_EPAPR_PARAVIRT) += epapr_paravirt.o epapr_hcalls.o |
Alexander Graf | d17051c | 2010-07-29 14:47:57 +0200 | [diff] [blame] | 137 | obj-$(CONFIG_KVM_GUEST) += kvm.o kvm_emul.o |
Alexander Graf | 2a342ed | 2010-07-29 14:47:48 +0200 | [diff] [blame] | 138 | |
Daniel Axtens | bf76f73 | 2016-01-20 15:00:58 -0800 | [diff] [blame] | 139 | # Disable GCOV & sanitizers in odd or sensitive code |
Michael Ellerman | a15098c | 2009-08-09 19:02:51 +0000 | [diff] [blame] | 140 | GCOV_PROFILE_prom_init.o := n |
Daniel Axtens | bf76f73 | 2016-01-20 15:00:58 -0800 | [diff] [blame] | 141 | UBSAN_SANITIZE_prom_init.o := n |
Michael Ellerman | a15098c | 2009-08-09 19:02:51 +0000 | [diff] [blame] | 142 | GCOV_PROFILE_machine_kexec_64.o := n |
Daniel Axtens | bf76f73 | 2016-01-20 15:00:58 -0800 | [diff] [blame] | 143 | UBSAN_SANITIZE_machine_kexec_64.o := n |
Michael Ellerman | a15098c | 2009-08-09 19:02:51 +0000 | [diff] [blame] | 144 | GCOV_PROFILE_machine_kexec_32.o := n |
Daniel Axtens | bf76f73 | 2016-01-20 15:00:58 -0800 | [diff] [blame] | 145 | UBSAN_SANITIZE_machine_kexec_32.o := n |
Michael Ellerman | a15098c | 2009-08-09 19:02:51 +0000 | [diff] [blame] | 146 | GCOV_PROFILE_kprobes.o := n |
Daniel Axtens | bf76f73 | 2016-01-20 15:00:58 -0800 | [diff] [blame] | 147 | UBSAN_SANITIZE_kprobes.o := n |
Naveen N. Rao | ead514d | 2017-04-19 18:22:26 +0530 | [diff] [blame] | 148 | GCOV_PROFILE_kprobes-ftrace.o := n |
| 149 | UBSAN_SANITIZE_kprobes-ftrace.o := n |
Daniel Axtens | bf76f73 | 2016-01-20 15:00:58 -0800 | [diff] [blame] | 150 | UBSAN_SANITIZE_vdso.o := n |
Michael Ellerman | a15098c | 2009-08-09 19:02:51 +0000 | [diff] [blame] | 151 | |
David Gibson | 25c8a78 | 2005-10-27 16:27:25 +1000 | [diff] [blame] | 152 | extra-$(CONFIG_PPC_FPU) += fpu.o |
Benjamin Herrenschmidt | e821ea7 | 2009-06-02 21:17:37 +0000 | [diff] [blame] | 153 | extra-$(CONFIG_ALTIVEC) += vector.o |
Stephen Rothwell | 640768e | 2005-10-28 12:51:45 +1000 | [diff] [blame] | 154 | extra-$(CONFIG_PPC64) += entry_64.o |
Anton Blanchard | 5ac47f7 | 2012-11-26 17:39:03 +0000 | [diff] [blame] | 155 | extra-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += prom_init.o |
Stephen Rothwell | 0a4690c | 2008-01-07 16:12:44 +1100 | [diff] [blame] | 156 | |
| 157 | extra-y += systbl_chk.i |
| 158 | $(obj)/systbl.o: systbl_chk |
| 159 | |
| 160 | quiet_cmd_systbl_chk = CALL $< |
| 161 | cmd_systbl_chk = $(CONFIG_SHELL) $< $(obj)/systbl_chk.i |
| 162 | |
| 163 | PHONY += systbl_chk |
| 164 | systbl_chk: $(src)/systbl_chk.sh $(obj)/systbl_chk.i |
| 165 | $(call cmd,systbl_chk) |
Kumar Gala | e4ccde0 | 2008-02-12 02:32:00 +1100 | [diff] [blame] | 166 | |
Michael Ellerman | 7719ed7 | 2009-06-11 02:12:28 +0000 | [diff] [blame] | 167 | ifeq ($(CONFIG_PPC_OF_BOOT_TRAMPOLINE),y) |
Michael Ellerman | 5c02cd2 | 2008-04-24 12:08:22 +1000 | [diff] [blame] | 168 | $(obj)/built-in.o: prom_init_check |
| 169 | |
| 170 | quiet_cmd_prom_init_check = CALL $< |
| 171 | cmd_prom_init_check = $(CONFIG_SHELL) $< "$(NM)" "$(obj)/prom_init.o" |
| 172 | |
| 173 | PHONY += prom_init_check |
| 174 | prom_init_check: $(src)/prom_init_check.sh $(obj)/prom_init.o |
| 175 | $(call cmd,prom_init_check) |
Michael Ellerman | 7719ed7 | 2009-06-11 02:12:28 +0000 | [diff] [blame] | 176 | endif |
Michael Ellerman | 5c02cd2 | 2008-04-24 12:08:22 +1000 | [diff] [blame] | 177 | |
Kumar Gala | e4ccde0 | 2008-02-12 02:32:00 +1100 | [diff] [blame] | 178 | clean-files := vmlinux.lds |