mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 00:57:24 +07:00
1fbe9cf259
Finally remove the two level TOC and build with -mcmodel=medium. Unfortunately we can't build modules with -mcmodel=medium due to the tricks the kernel module loader plays with percpu data: # -mcmodel=medium breaks modules because it uses 32bit offsets from # the TOC pointer to create pointers where possible. Pointers into the # percpu data area are created by this method. # # The kernel module loader relocates the percpu data section from the # original location (starting with 0xd...) to somewhere in the base # kernel percpu data space (starting with 0xc...). We need a full # 64bit relocation for this to work, hence -mcmodel=large. On older kernels we fall back to the two level TOC (-mminimal-toc) Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
31 lines
1009 B
Makefile
31 lines
1009 B
Makefile
ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC)
|
|
ccflags-$(CONFIG_PPC_PSERIES_DEBUG) += -DDEBUG
|
|
|
|
obj-y := lpar.o hvCall.o nvram.o reconfig.o \
|
|
setup.o iommu.o event_sources.o ras.o \
|
|
firmware.o power.o dlpar.o mobility.o
|
|
obj-$(CONFIG_SMP) += smp.o
|
|
obj-$(CONFIG_SCANLOG) += scanlog.o
|
|
obj-$(CONFIG_EEH) += eeh.o eeh_pe.o eeh_dev.o eeh_cache.o \
|
|
eeh_driver.o eeh_event.o eeh_sysfs.o \
|
|
eeh_pseries.o
|
|
obj-$(CONFIG_KEXEC) += kexec.o
|
|
obj-$(CONFIG_PCI) += pci.o pci_dlpar.o
|
|
obj-$(CONFIG_PSERIES_MSI) += msi.o
|
|
obj-$(CONFIG_PSERIES_ENERGY) += pseries_energy.o
|
|
|
|
obj-$(CONFIG_HOTPLUG_CPU) += hotplug-cpu.o
|
|
obj-$(CONFIG_MEMORY_HOTPLUG) += hotplug-memory.o
|
|
|
|
obj-$(CONFIG_HVC_CONSOLE) += hvconsole.o
|
|
obj-$(CONFIG_HVCS) += hvcserver.o
|
|
obj-$(CONFIG_HCALL_STATS) += hvCall_inst.o
|
|
obj-$(CONFIG_CMM) += cmm.o
|
|
obj-$(CONFIG_DTL) += dtl.o
|
|
obj-$(CONFIG_IO_EVENT_IRQ) += io_event_irq.o
|
|
obj-$(CONFIG_PSERIES_IDLE) += processor_idle.o
|
|
|
|
ifeq ($(CONFIG_PPC_PSERIES),y)
|
|
obj-$(CONFIG_SUSPEND) += suspend.o
|
|
endif
|