~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/powerpc/kernel/Makefile

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/powerpc/kernel/Makefile (Version linux-6.12-rc7) and /arch/sparc64/kernel/Makefile (Version linux-2.4.37.11)


  1 # SPDX-License-Identifier: GPL-2.0             !!   1 # $Id: Makefile,v 1.69 2001/11/19 04:09:53 davem Exp $
  2 #                                              << 
  3 # Makefile for the linux kernel.                    2 # Makefile for the linux kernel.
  4 #                                                   3 #
  5                                                     4 
  6 ifdef CONFIG_PPC32                             !!   5 SH = $(CONFIG_SHELL)
  7 CFLAGS_prom_init.o      += -fPIC               << 
  8 CFLAGS_btext.o          += -fPIC               << 
  9 endif                                          << 
 10                                                << 
 11 CFLAGS_early_32.o += $(DISABLE_LATENT_ENTROPY_ << 
 12 CFLAGS_cputable.o += $(DISABLE_LATENT_ENTROPY_ << 
 13 CFLAGS_prom_init.o += $(DISABLE_LATENT_ENTROPY << 
 14 CFLAGS_btext.o += $(DISABLE_LATENT_ENTROPY_PLU << 
 15 CFLAGS_prom.o += $(DISABLE_LATENT_ENTROPY_PLUG << 
 16                                                << 
 17 CFLAGS_prom_init.o += -fno-stack-protector     << 
 18 CFLAGS_prom_init.o += -DDISABLE_BRANCH_PROFILI << 
 19 CFLAGS_prom_init.o += -ffreestanding           << 
 20 CFLAGS_prom_init.o += $(call cc-option, -ftriv << 
 21                                                << 
 22 ifdef CONFIG_FUNCTION_TRACER                   << 
 23 # Do not trace early boot code                 << 
 24 CFLAGS_REMOVE_cputable.o = $(CC_FLAGS_FTRACE)  << 
 25 CFLAGS_REMOVE_prom_init.o = $(CC_FLAGS_FTRACE) << 
 26 CFLAGS_REMOVE_btext.o = $(CC_FLAGS_FTRACE)     << 
 27 CFLAGS_REMOVE_prom.o = $(CC_FLAGS_FTRACE)      << 
 28 endif                                          << 
 29                                                     6 
 30 KASAN_SANITIZE_early_32.o := n                 !!   7 USE_STANDARD_AS_RULE := true
 31 KASAN_SANITIZE_cputable.o := n                 !!   8 EXTRA_AFLAGS := -ansi
 32 KASAN_SANITIZE_prom_init.o := n                << 
 33 KASAN_SANITIZE_btext.o := n                    << 
 34 KASAN_SANITIZE_paca.o := n                     << 
 35 KASAN_SANITIZE_setup_64.o := n                 << 
 36 KASAN_SANITIZE_mce.o := n                      << 
 37 KASAN_SANITIZE_mce_power.o := n                << 
 38 KASAN_SANITIZE_udbg.o := n                     << 
 39 KASAN_SANITIZE_udbg_16550.o := n               << 
 40                                                << 
 41 # we have to be particularly careful in ppc64  << 
 42 # runs with translations off, as we cannot acc << 
 43 # translations off. However, ppc32 can sanitiz << 
 44 ifdef CONFIG_PPC64                             << 
 45 KASAN_SANITIZE_traps.o := n                    << 
 46 endif                                          << 
 47                                                     9 
 48 ifdef CONFIG_KASAN                             !!  10 all: kernel.o head.o init_task.o
 49 CFLAGS_early_32.o += -DDISABLE_BRANCH_PROFILIN << 
 50 CFLAGS_cputable.o += -DDISABLE_BRANCH_PROFILIN << 
 51 CFLAGS_btext.o += -DDISABLE_BRANCH_PROFILING   << 
 52 endif                                          << 
 53                                                    11 
 54 KCSAN_SANITIZE_early_32.o := n                 !!  12 O_TARGET := kernel.o
 55 KCSAN_SANITIZE_cputable.o := n                 << 
 56 KCSAN_SANITIZE_btext.o := n                    << 
 57 KCSAN_SANITIZE_paca.o := n                     << 
 58 KCSAN_SANITIZE_setup_64.o := n                 << 
 59                                                << 
 60 #ifdef CONFIG_RANDOMIZE_KSTACK_OFFSET          << 
 61 # Remove stack protector to avoid triggering u << 
 62 # checks due to randomize_kstack_offset.       << 
 63 CFLAGS_REMOVE_syscall.o = -fstack-protector -f << 
 64 CFLAGS_syscall.o += -fno-stack-protector       << 
 65 #endif                                         << 
 66                                                << 
 67 obj-y                           := cputable.o  << 
 68                                    irq.o align << 
 69                                    process.o s << 
 70                                    signal.o sy << 
 71                                    prom.o trap << 
 72                                    udbg.o misc << 
 73                                    of_platform << 
 74                                    hw_breakpoi << 
 75                                    kdebugfs.o  << 
 76 obj-y                           += ptrace/     << 
 77 obj-$(CONFIG_PPC64)             += setup_64.o  << 
 78                                    paca.o nvra << 
 79 obj-$(CONFIG_PPC32)             += sys_ppc32.o << 
 80 obj-$(CONFIG_COMPAT)            += sys_ppc32.o << 
 81 obj-$(CONFIG_VDSO32)            += vdso32_wrap << 
 82 obj-$(CONFIG_PPC_WATCHDOG)      += watchdog.o  << 
 83 obj-$(CONFIG_HAVE_HW_BREAKPOINT)        += hw_ << 
 84 obj-$(CONFIG_PPC_DAWR)          += dawr.o      << 
 85 obj-$(CONFIG_PPC_BOOK3S_64)     += cpu_setup_p << 
 86 obj-$(CONFIG_PPC_BOOK3S_64)     += cpu_setup_p << 
 87 obj-$(CONFIG_PPC_BOOK3S_64)     += dexcr.o     << 
 88 obj-$(CONFIG_PPC_BOOK3S_64)     += mce.o mce_p << 
 89 obj-$(CONFIG_PPC_BOOK3E_64)     += exceptions- << 
 90 obj-$(CONFIG_PPC_BARRIER_NOSPEC) += security.o << 
 91 obj-$(CONFIG_PPC64)             += vdso64_wrap << 
 92 obj-$(CONFIG_ALTIVEC)           += vecemu.o    << 
 93 obj-$(CONFIG_PPC_BOOK3S_IDLE)   += idle_book3s << 
 94 procfs-y                        := proc_powerp << 
 95 obj-$(CONFIG_PROC_FS)           += $(procfs-y) << 
 96 rtaspci-$(CONFIG_PPC64)-$(CONFIG_PCI)   := rta << 
 97 obj-$(CONFIG_PPC_RTAS)          += rtas_entry. << 
 98 obj-$(CONFIG_PPC_RTAS_DAEMON)   += rtasd.o     << 
 99 obj-$(CONFIG_RTAS_FLASH)        += rtas_flash. << 
100 obj-$(CONFIG_RTAS_PROC)         += rtas-proc.o << 
101 obj-$(CONFIG_PPC_DT_CPU_FTRS)   += dt_cpu_ftrs << 
102 obj-$(CONFIG_EEH)              += eeh.o eeh_pe << 
103                                   eeh_driver.o << 
104 obj-$(CONFIG_GENERIC_TBSYNC)    += smp-tbsync. << 
105 obj-$(CONFIG_CRASH_DUMP)        += crash_dump. << 
106 obj-$(CONFIG_FA_DUMP)           += fadump.o    << 
107 obj-$(CONFIG_PRESERVE_FA_DUMP)  += fadump.o    << 
108 obj-$(CONFIG_PPC_85xx)          += idle_85xx.o << 
109 obj-$(CONFIG_PPC_BOOK3S_32)     += idle_6xx.o  << 
110 obj-$(CONFIG_TAU)               += tau_6xx.o   << 
111 obj-$(CONFIG_HIBERNATION)       += swsusp.o su << 
112 ifdef CONFIG_PPC_85xx                          << 
113 obj-$(CONFIG_HIBERNATION)       += swsusp_85xx << 
114 else                                           << 
115 obj-$(CONFIG_HIBERNATION)       += swsusp_$(BI << 
116 endif                                          << 
117 obj64-$(CONFIG_HIBERNATION)     += swsusp_asm6 << 
118 obj-$(CONFIG_MODULES)           += module.o mo << 
119 obj-$(CONFIG_44x)               += cpu_setup_4 << 
120 obj-$(CONFIG_PPC_E500)          += cpu_setup_e << 
121 obj-$(CONFIG_PPC_DOORBELL)      += dbell.o     << 
122 obj-$(CONFIG_JUMP_LABEL)        += jump_label. << 
123                                                << 
124 obj-$(CONFIG_PPC64)             += head_64.o   << 
125 obj-$(CONFIG_PPC_BOOK3S_32)     += head_book3s << 
126 obj-$(CONFIG_44x)               += head_44x.o  << 
127 obj-$(CONFIG_PPC_8xx)           += head_8xx.o  << 
128 obj-$(CONFIG_PPC_85xx)          += head_85xx.o << 
129 extra-y                         += vmlinux.lds << 
130                                                << 
131 obj-$(CONFIG_RELOCATABLE)       += reloc_$(BIT << 
132                                                << 
133 obj-$(CONFIG_PPC32)             += entry_32.o  << 
134 obj-$(CONFIG_PPC64)             += dma-iommu.o << 
135 obj-$(CONFIG_KGDB)              += kgdb.o      << 
136 obj-$(CONFIG_BOOTX_TEXT)        += btext.o     << 
137 obj-$(CONFIG_SMP)               += smp.o       << 
138 obj-$(CONFIG_KPROBES)           += kprobes.o   << 
139 obj-$(CONFIG_OPTPROBES)         += optprobes.o << 
140 obj-$(CONFIG_KPROBES_ON_FTRACE) += kprobes-ftr << 
141 obj-$(CONFIG_UPROBES)           += uprobes.o   << 
142 obj-$(CONFIG_RETHOOK)           += rethook.o   << 
143 obj-$(CONFIG_PPC_UDBG_16550)    += legacy_seri << 
144 obj-$(CONFIG_SWIOTLB)           += dma-swiotlb << 
145 obj-$(CONFIG_ARCH_HAS_DMA_SET_MASK) += dma-mas << 
146                                                << 
147 pci64-$(CONFIG_PPC64)           += pci_dn.o pc << 
148 obj-$(CONFIG_PCI)               += pci_$(BITS) << 
149                                    pci-common. << 
150 obj-$(CONFIG_PCI_MSI)           += msi.o       << 
151                                                << 
152 obj-$(CONFIG_AUDIT)             += audit.o     << 
153 obj64-$(CONFIG_AUDIT)           += compat_audi << 
154                                                    13 
155 obj-$(CONFIG_PPC_IO_WORKAROUNDS)        += io- !!  14 export-objs     := sparc64_ksyms.o
                                                   >>  15 obj-y           := process.o setup.o cpu.o idprom.o \
                                                   >>  16                    traps.o devices.o auxio.o \
                                                   >>  17                    irq.o ptrace.o time.o sys_sparc.o signal.o \
                                                   >>  18                    unaligned.o central.o pci.o starfire.o semaphore.o \
                                                   >>  19                    power.o sbus.o iommu_common.o sparc64_ksyms.o chmc.o
                                                   >>  20 
                                                   >>  21 obj-$(CONFIG_PCI)        += ebus.o isa.o pci_common.o pci_iommu.o \
                                                   >>  22                             pci_psycho.o pci_sabre.o pci_schizo.o
                                                   >>  23 obj-$(CONFIG_SMP)        += smp.o trampoline.o
                                                   >>  24 obj-$(CONFIG_SPARC32_COMPAT) += sys32.o sys_sparc32.o signal32.o ioctl32.o
                                                   >>  25 obj-$(CONFIG_BINFMT_ELF32) += binfmt_elf32.o
                                                   >>  26 obj-$(CONFIG_BINFMT_AOUT32) += binfmt_aout32.o
156                                                    27 
157 obj-y                           += trace/      !!  28 ifdef CONFIG_SUNOS_EMUL
158                                                !!  29   obj-y += sys_sunos32.o sunos_ioctl32.o
159 ifneq ($(CONFIG_PPC_INDIRECT_PIO),y)           !!  30 else
160 obj-y                           += iomap.o     !!  31   ifdef CONFIG_SOLARIS_EMUL
                                                   >>  32     obj-y += sys_sunos32.o sunos_ioctl32.o
                                                   >>  33   endif
161 endif                                              34 endif
162                                                    35 
163 obj64-$(CONFIG_PPC_TRANSACTIONAL_MEM)   += tm. !!  36 head.o: head.S ttable.S itlb_base.S dtlb_base.S dtlb_backend.S dtlb_prot.S \
                                                   >>  37         etrap.S rtrap.S winfixup.S entry.S
                                                   >>  38         $(CC) $(AFLAGS) -ansi -c $*.S -o $*.o
164                                                    39 
165 ifneq ($(CONFIG_XMON)$(CONFIG_KEXEC_CORE)(CONF !!  40 #
166 obj-y                           += ppc_save_re !!  41 # This is just to get the dependencies...
167 endif                                          !!  42 #
                                                   >>  43 binfmt_elf32.o: $(TOPDIR)/fs/binfmt_elf.c
168                                                    44 
169 obj-$(CONFIG_EPAPR_PARAVIRT)    += epapr_parav !!  45 ifneq ($(NEW_GCC),y)
170 obj-$(CONFIG_KVM_GUEST)         += kvm.o kvm_e !!  46   CMODEL_CFLAG := -mmedlow
171 ifneq ($(CONFIG_PPC_POWERNV)$(CONFIG_PPC_SVM), !!  47 else
172 obj-y                           += ucall.o     !!  48   CMODEL_CFLAG := -m64 -mcmodel=medlow
173 endif                                              49 endif
174                                                    50 
175 obj-$(CONFIG_PPC_SECURE_BOOT)   += secure_boot !!  51 check_asm: dummy
176 obj-$(CONFIG_PPC_SECVAR_SYSFS)  += secvar-sysf !!  52         @if [ ! -r $(HPATH)/asm/asm_offsets.h ] ; then \
177                                                !!  53           touch $(HPATH)/asm/asm_offsets.h ; \
178 # Disable GCOV, KCOV & sanitizers in odd or se !!  54         fi
179 GCOV_PROFILE_prom_init.o := n                  !!  55         @echo "/* Automatically generated. Do not edit. */" > asm_offsets.h
180 KCOV_INSTRUMENT_prom_init.o := n               !!  56         @echo "#ifndef __ASM_OFFSETS_H__" >> asm_offsets.h
181 KCSAN_SANITIZE_prom_init.o := n                !!  57         @echo "#define __ASM_OFFSETS_H__" >> asm_offsets.h
182 UBSAN_SANITIZE_prom_init.o := n                !!  58         @echo >> asm_offsets.h
183 GCOV_PROFILE_kprobes.o := n                    !!  59         @echo "#include <linux/config.h>" >> asm_offsets.h
184 KCOV_INSTRUMENT_kprobes.o := n                 !!  60         @echo >> asm_offsets.h
185 KCSAN_SANITIZE_kprobes.o := n                  !!  61         @echo "#include <linux/config.h>" > tmp.c
186 UBSAN_SANITIZE_kprobes.o := n                  !!  62         @echo "#include <linux/sched.h>" >> tmp.c
187 GCOV_PROFILE_kprobes-ftrace.o := n             !!  63         $(CPP) $(CPPFLAGS) -P tmp.c -o tmp.i
188 KCOV_INSTRUMENT_kprobes-ftrace.o := n          !!  64         @echo "/* Automatically generated. Do not edit. */" > check_asm_data.c
189 KCSAN_SANITIZE_kprobes-ftrace.o := n           !!  65         @echo "#include <linux/config.h>" >> check_asm_data.c
190 UBSAN_SANITIZE_kprobes-ftrace.o := n           !!  66         @echo "#include <linux/sched.h>" >> check_asm_data.c
191 UBSAN_SANITIZE_vdso.o := n                     !!  67         @echo 'unsigned int check_asm_data[] = {' >> check_asm_data.c
192                                                !!  68         $(SH) ./check_asm.sh -data task tmp.i check_asm_data.c
193 # Necessary for booting with kcov enabled on b !!  69         $(SH) ./check_asm.sh -data mm tmp.i check_asm_data.c
194 KCOV_INSTRUMENT_cputable.o := n                !!  70         $(SH) ./check_asm.sh -data thread tmp.i check_asm_data.c
195 KCOV_INSTRUMENT_setup_64.o := n                !!  71         @echo '};' >> check_asm_data.c
196 KCOV_INSTRUMENT_paca.o := n                    !!  72         $(CC) $(CPPFLAGS) $(CMODEL_CFLAG) -ffixed-g4 -S -o check_asm_data.s check_asm_data.c
197                                                !!  73         @echo "/* Automatically generated. Do not edit. */" > check_asm.c
198 CFLAGS_setup_64.o               += -fno-stack- !!  74         @echo 'extern int printf(const char *fmt, ...);' >>check_asm.c
199 CFLAGS_paca.o                   += -fno-stack- !!  75         @echo 'unsigned int check_asm_data[] = {' >> check_asm.c
200                                                !!  76         $(SH) ./check_asm.sh -ints check_asm_data.s check_asm.c
201 obj-$(CONFIG_PPC_FPU)           += fpu.o       !!  77         @echo '};' >> check_asm.c
202 obj-$(CONFIG_ALTIVEC)           += vector.o    !!  78         @echo 'int main(void) {' >> check_asm.c
203                                                !!  79         @echo 'int i = 0;' >> check_asm.c
204 obj-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += prom_i !!  80         $(SH) ./check_asm.sh -printf task tmp.i check_asm.c
205 obj64-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += prom !!  81         $(SH) ./check_asm.sh -printf mm tmp.i check_asm.c
206 extra-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += prom !!  82         $(SH) ./check_asm.sh -printf thread tmp.i check_asm.c
207                                                !!  83         @echo 'return 0; }' >> check_asm.c
208 obj-$(CONFIG_PPC64)             += $(obj64-y)  !!  84         @rm -f tmp.[ci] check_asm_data.[cs]
209 obj-$(CONFIG_PPC32)             += $(obj32-y)  !!  85         $(HOSTCC) -o check_asm check_asm.c
210                                                !!  86         ./check_asm >> asm_offsets.h
211 quiet_cmd_prom_init_check = PROMCHK $@         !!  87         @rm -f check_asm check_asm.c
212       cmd_prom_init_check = $(CONFIG_SHELL) $< !!  88         @echo >> asm_offsets.h
213                                                !!  89         @echo "#endif /* __ASM_OFFSETS_H__ */" >> asm_offsets.h
214 $(obj)/prom_init_check: $(src)/prom_init_check !!  90         @if test -r $(HPATH)/asm/asm_offsets.h; then \
215         $(call if_changed,prom_init_check)     !!  91           if cmp -s asm_offsets.h $(HPATH)/asm/asm_offsets.h; then \
216 targets += prom_init_check                     !!  92             echo $(HPATH)/asm/asm_offsets.h is unchanged; \
217                                                !!  93             rm -f asm_offsets.h; \
218 clean-files := vmlinux.lds                     !!  94           else \
219                                                !!  95             mv -f asm_offsets.h $(HPATH)/asm/asm_offsets.h; \
220 # Force dependency (incbin is bad)             !!  96           fi; \
221 $(obj)/vdso32_wrapper.o : $(obj)/vdso/vdso32.s !!  97         else \
222 $(obj)/vdso64_wrapper.o : $(obj)/vdso/vdso64.s !!  98           mv -f asm_offsets.h $(HPATH)/asm/asm_offsets.h; \
                                                   >>  99         fi
223                                                   100 
224 # for cleaning                                 !! 101 include $(TOPDIR)/Rules.make
225 subdir- += vdso                                << 
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php