source: mainline/arch/amd64/Makefile.inc@ 84dd253

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 84dd253 was ffc277e, checked in by Ondrej Palkovsky <ondrap@…>, 20 years ago

Cleanup of makefiles to have common options in one main makefile.

Add simple build process for different simulators for MIPS.
Added FPU context & lazy FPU context switching to MIPS.
Cleanup of MIPS linker script.
Moved MIPS kernel above 1MB. Not tested on real machine yet, but it might help.

There is something broken with gcc inlined memcpy (either simulator or gcc), it is disabled on BigEndian mips now.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1AMD64_TARGET=amd64-linux-gnu
2AMD64_CC_DIR=/usr/local/amd64/bin
3AMD64_BINUTILS_DIR=/usr/local/amd64/bin
4
5CC=$(AMD64_CC_DIR)/$(AMD64_TARGET)-gcc
6AS=$(AMD64_BINUTILS_DIR)/$(AMD64_TARGET)-as
7LD=$(AMD64_BINUTILS_DIR)/$(AMD64_TARGET)-ld
8OBJDUMP=$(AMD64_BINUTILS_DIR)/$(AMD64_TARGET)-objdump
9OBJCOPY=$(AMD64_BINUTILS_DIR)/$(AMD64_TARGET)-objcopy
10BFD_NAME=elf64-x86-64
11BFD_ARCH=i386:x86-64
12
13DEFS=-DARCH=$(ARCH) -DFPU_LAZY
14
15ifdef SMP
16DEFS+=-D$(SMP)
17endif
18
19ifdef HT
20DEFS+=-D$(HT)
21endif
22
23
24CFLAGS=$(DEFS) -nostdlib -fno-builtin -fno-unwind-tables -O3 -march=opteron -m64 -mcmodel=kernel -mno-red-zone
25LFLAGS=-M
26
27../arch/$(ARCH)/_link.ld: ../arch/$(ARCH)/_link.ld.in
28 $(CC) $(CFLAGS) -C -E -x c $< | grep -v "^\#" > $@
29
30arch_sources = arch/dummy.s \
31 arch/fpu_context.c \
32 arch/boot/boot.S \
33 arch/boot/memmap.S \
34 arch/pm.c \
35 arch/context.S \
36 arch/drivers/ega.c \
37 arch/drivers/i8042.c \
38 arch/drivers/i8254.c \
39 arch/drivers/i8259.c \
40 arch/supplib.c \
41 arch/delay.S \
42 arch/amd64.c \
43 arch/bios/bios.c \
44 arch/interrupt.c \
45 arch/mm/frame.c \
46 arch/mm/page.c \
47 arch/mm/tlb.c \
48 arch/asm_utils.S \
49 arch/fmath.c \
50 arch/mm/memory_init.c \
51 arch/cpu/cpu.c \
52 arch/proc/scheduler.c \
53 arch/userspace.c \
54 arch/acpi/acpi.c \
55 arch/acpi/madt.c
56
57ifdef SMP
58arch_sources += arch/smp/ap.S \
59 arch/smp/apic.c \
60 arch/smp/ipi.c \
61 arch/smp/mps.c \
62 arch/smp/smp.c
63endif
Note: See TracBrowser for help on using the repository browser.