-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 65408 b: refs/heads/master c: e1589cd h: refs/heads/master v: v3
- Loading branch information
Thomas Gleixner
committed
Oct 11, 2007
1 parent
eec7c4b
commit 0c158a1
Showing
3 changed files
with
94 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 565b56cc9929fd4e682850df960f0766c8363383 | ||
refs/heads/master: e1589cd4cba22e374b54f49385703fc766a11e7f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,5 @@ | ||
# | ||
# Makefile for the linux kernel. | ||
# | ||
|
||
extra-y := head_32.o init_task_32.o vmlinux.lds | ||
|
||
obj-y := process_32.o signal_32.o entry_32.o traps_32.o irq_32.o \ | ||
ptrace_32.o time_32.o ioport_32.o ldt_32.o setup_32.o i8259_32.o sys_i386_32.o \ | ||
pci-dma_32.o i386_ksyms_32.o i387_32.o bootflag.o e820_32.o\ | ||
quirks.o i8237.o topology.o alternative.o i8253_32.o tsc_32.o | ||
|
||
obj-$(CONFIG_STACKTRACE) += stacktrace.o | ||
obj-y += cpu/ | ||
obj-y += acpi/ | ||
obj-$(CONFIG_X86_BIOS_REBOOT) += reboot_32.o | ||
obj-$(CONFIG_MCA) += mca_32.o | ||
obj-$(CONFIG_X86_MSR) += msr.o | ||
obj-$(CONFIG_X86_CPUID) += cpuid.o | ||
obj-$(CONFIG_MICROCODE) += microcode.o | ||
obj-$(CONFIG_APM) += apm_32.o | ||
obj-$(CONFIG_X86_SMP) += smp_32.o smpboot_32.o tsc_sync.o | ||
obj-$(CONFIG_SMP) += smpcommon_32.o | ||
obj-$(CONFIG_X86_TRAMPOLINE) += trampoline_32.o | ||
obj-$(CONFIG_X86_MPPARSE) += mpparse_32.o | ||
obj-$(CONFIG_X86_LOCAL_APIC) += apic_32.o nmi_32.o | ||
obj-$(CONFIG_X86_IO_APIC) += io_apic_32.o | ||
obj-$(CONFIG_X86_REBOOTFIXUPS) += reboot_fixups_32.o | ||
obj-$(CONFIG_KEXEC) += machine_kexec_32.o relocate_kernel_32.o crash_32.o | ||
obj-$(CONFIG_CRASH_DUMP) += crash_dump_32.o | ||
obj-$(CONFIG_X86_NUMAQ) += numaq_32.o | ||
obj-$(CONFIG_X86_SUMMIT_NUMA) += summit_32.o | ||
obj-$(CONFIG_KPROBES) += kprobes_32.o | ||
obj-$(CONFIG_MODULES) += module_32.o | ||
obj-y += sysenter_32.o vsyscall_32.o | ||
obj-$(CONFIG_ACPI_SRAT) += srat_32.o | ||
obj-$(CONFIG_EFI) += efi_32.o efi_stub_32.o | ||
obj-$(CONFIG_DOUBLEFAULT) += doublefault_32.o | ||
obj-$(CONFIG_VM86) += vm86_32.o | ||
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o | ||
obj-$(CONFIG_HPET_TIMER) += hpet_32.o | ||
obj-$(CONFIG_K8_NB) += k8.o | ||
obj-$(CONFIG_MGEODE_LX) += geode_32.o | ||
|
||
obj-$(CONFIG_VMI) += vmi_32.o vmiclock_32.o | ||
obj-$(CONFIG_PARAVIRT) += paravirt_32.o | ||
obj-y += pcspeaker.o | ||
|
||
obj-$(CONFIG_SCx200) += scx200_32.o | ||
|
||
# vsyscall_32.o contains the vsyscall DSO images as __initdata. | ||
# We must build both images before we can assemble it. | ||
# Note: kbuild does not track this dependency due to usage of .incbin | ||
$(obj)/vsyscall_32.o: $(obj)/vsyscall-int80_32.so $(obj)/vsyscall-sysenter_32.so | ||
targets += $(foreach F,int80 sysenter,vsyscall-$F.o vsyscall-$F.so) | ||
targets += vsyscall-note_32.o vsyscall_32.lds | ||
|
||
# The DSO images are built using a special linker script. | ||
quiet_cmd_syscall = SYSCALL $@ | ||
cmd_syscall = $(CC) -m elf_i386 -nostdlib $(SYSCFLAGS_$(@F)) \ | ||
-Wl,-T,$(filter-out FORCE,$^) -o $@ | ||
|
||
export CPPFLAGS_vsyscall_32.lds += -P -C -U$(ARCH) | ||
|
||
vsyscall-flags = -shared -s -Wl,-soname=linux-gate.so.1 \ | ||
$(call ld-option, -Wl$(comma)--hash-style=sysv) | ||
SYSCFLAGS_vsyscall-sysenter_32.so = $(vsyscall-flags) | ||
SYSCFLAGS_vsyscall-int80_32.so = $(vsyscall-flags) | ||
|
||
$(obj)/vsyscall-int80_32.so $(obj)/vsyscall-sysenter_32.so: \ | ||
$(obj)/vsyscall-%.so: $(src)/vsyscall_32.lds \ | ||
$(obj)/vsyscall-%.o $(obj)/vsyscall-note_32.o FORCE | ||
$(call if_changed,syscall) | ||
|
||
# We also create a special relocatable object that should mirror the symbol | ||
# table and layout of the linked DSO. With ld -R we can then refer to | ||
# these symbols in the kernel code rather than hand-coded addresses. | ||
extra-y += vsyscall-syms.o | ||
$(obj)/built-in.o: $(obj)/vsyscall-syms.o | ||
$(obj)/built-in.o: ld_flags += -R $(obj)/vsyscall-syms.o | ||
|
||
SYSCFLAGS_vsyscall-syms.o = -r | ||
$(obj)/vsyscall-syms.o: $(src)/vsyscall_32.lds \ | ||
$(obj)/vsyscall-sysenter_32.o $(obj)/vsyscall-note_32.o FORCE | ||
$(call if_changed,syscall) | ||
|
||
k8-y += ../../x86_64/kernel/k8.o | ||
stacktrace-y += ../../x86_64/kernel/stacktrace.o | ||
|
||
ifeq ($(CONFIG_X86_32),y) | ||
include ${srctree}/arch/i386/kernel/Makefile_32 | ||
else | ||
include ${srctree}/arch/x86_64/kernel/Makefile_64 | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# | ||
# Makefile for the linux kernel. | ||
# | ||
|
||
extra-y := head_32.o init_task_32.o vmlinux.lds | ||
|
||
obj-y := process_32.o signal_32.o entry_32.o traps_32.o irq_32.o \ | ||
ptrace_32.o time_32.o ioport_32.o ldt_32.o setup_32.o i8259_32.o sys_i386_32.o \ | ||
pci-dma_32.o i386_ksyms_32.o i387_32.o bootflag.o e820_32.o\ | ||
quirks.o i8237.o topology.o alternative.o i8253_32.o tsc_32.o | ||
|
||
obj-$(CONFIG_STACKTRACE) += stacktrace.o | ||
obj-y += cpu/ | ||
obj-y += acpi/ | ||
obj-$(CONFIG_X86_BIOS_REBOOT) += reboot_32.o | ||
obj-$(CONFIG_MCA) += mca_32.o | ||
obj-$(CONFIG_X86_MSR) += msr.o | ||
obj-$(CONFIG_X86_CPUID) += cpuid.o | ||
obj-$(CONFIG_MICROCODE) += microcode.o | ||
obj-$(CONFIG_APM) += apm_32.o | ||
obj-$(CONFIG_X86_SMP) += smp_32.o smpboot_32.o tsc_sync.o | ||
obj-$(CONFIG_SMP) += smpcommon_32.o | ||
obj-$(CONFIG_X86_TRAMPOLINE) += trampoline_32.o | ||
obj-$(CONFIG_X86_MPPARSE) += mpparse_32.o | ||
obj-$(CONFIG_X86_LOCAL_APIC) += apic_32.o nmi_32.o | ||
obj-$(CONFIG_X86_IO_APIC) += io_apic_32.o | ||
obj-$(CONFIG_X86_REBOOTFIXUPS) += reboot_fixups_32.o | ||
obj-$(CONFIG_KEXEC) += machine_kexec_32.o relocate_kernel_32.o crash_32.o | ||
obj-$(CONFIG_CRASH_DUMP) += crash_dump_32.o | ||
obj-$(CONFIG_X86_NUMAQ) += numaq_32.o | ||
obj-$(CONFIG_X86_SUMMIT_NUMA) += summit_32.o | ||
obj-$(CONFIG_KPROBES) += kprobes_32.o | ||
obj-$(CONFIG_MODULES) += module_32.o | ||
obj-y += sysenter_32.o vsyscall_32.o | ||
obj-$(CONFIG_ACPI_SRAT) += srat_32.o | ||
obj-$(CONFIG_EFI) += efi_32.o efi_stub_32.o | ||
obj-$(CONFIG_DOUBLEFAULT) += doublefault_32.o | ||
obj-$(CONFIG_VM86) += vm86_32.o | ||
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o | ||
obj-$(CONFIG_HPET_TIMER) += hpet_32.o | ||
obj-$(CONFIG_K8_NB) += k8.o | ||
obj-$(CONFIG_MGEODE_LX) += geode_32.o | ||
|
||
obj-$(CONFIG_VMI) += vmi_32.o vmiclock_32.o | ||
obj-$(CONFIG_PARAVIRT) += paravirt_32.o | ||
obj-y += pcspeaker.o | ||
|
||
obj-$(CONFIG_SCx200) += scx200_32.o | ||
|
||
# vsyscall_32.o contains the vsyscall DSO images as __initdata. | ||
# We must build both images before we can assemble it. | ||
# Note: kbuild does not track this dependency due to usage of .incbin | ||
$(obj)/vsyscall_32.o: $(obj)/vsyscall-int80_32.so $(obj)/vsyscall-sysenter_32.so | ||
targets += $(foreach F,int80 sysenter,vsyscall-$F.o vsyscall-$F.so) | ||
targets += vsyscall-note_32.o vsyscall_32.lds | ||
|
||
# The DSO images are built using a special linker script. | ||
quiet_cmd_syscall = SYSCALL $@ | ||
cmd_syscall = $(CC) -m elf_i386 -nostdlib $(SYSCFLAGS_$(@F)) \ | ||
-Wl,-T,$(filter-out FORCE,$^) -o $@ | ||
|
||
export CPPFLAGS_vsyscall_32.lds += -P -C -U$(ARCH) | ||
|
||
vsyscall-flags = -shared -s -Wl,-soname=linux-gate.so.1 \ | ||
$(call ld-option, -Wl$(comma)--hash-style=sysv) | ||
SYSCFLAGS_vsyscall-sysenter_32.so = $(vsyscall-flags) | ||
SYSCFLAGS_vsyscall-int80_32.so = $(vsyscall-flags) | ||
|
||
$(obj)/vsyscall-int80_32.so $(obj)/vsyscall-sysenter_32.so: \ | ||
$(obj)/vsyscall-%.so: $(src)/vsyscall_32.lds \ | ||
$(obj)/vsyscall-%.o $(obj)/vsyscall-note_32.o FORCE | ||
$(call if_changed,syscall) | ||
|
||
# We also create a special relocatable object that should mirror the symbol | ||
# table and layout of the linked DSO. With ld -R we can then refer to | ||
# these symbols in the kernel code rather than hand-coded addresses. | ||
extra-y += vsyscall-syms.o | ||
$(obj)/built-in.o: $(obj)/vsyscall-syms.o | ||
$(obj)/built-in.o: ld_flags += -R $(obj)/vsyscall-syms.o | ||
|
||
SYSCFLAGS_vsyscall-syms.o = -r | ||
$(obj)/vsyscall-syms.o: $(src)/vsyscall_32.lds \ | ||
$(obj)/vsyscall-sysenter_32.o $(obj)/vsyscall-note_32.o FORCE | ||
$(call if_changed,syscall) | ||
|
||
k8-y += ../../x86_64/kernel/k8.o | ||
stacktrace-y += ../../x86_64/kernel/stacktrace.o | ||
|