Rev 268 | Rev 289 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 268 | Rev 277 | ||
---|---|---|---|
1 | AMD64_TARGET=amd64-linux-gnu |
1 | AMD64_TARGET=amd64-linux-gnu |
2 | AMD64_CC_DIR=/usr/local/amd64/bin |
2 | AMD64_CC_DIR=/usr/local/amd64/bin |
3 | AMD64_BINUTILS_DIR=/usr/local/amd64/bin |
3 | AMD64_BINUTILS_DIR=/usr/local/amd64/bin |
4 | 4 | ||
5 | CC=$(AMD64_CC_DIR)/$(AMD64_TARGET)-gcc |
5 | CC=$(AMD64_CC_DIR)/$(AMD64_TARGET)-gcc |
6 | AS=$(AMD64_BINUTILS_DIR)/$(AMD64_TARGET)-as |
6 | AS=$(AMD64_BINUTILS_DIR)/$(AMD64_TARGET)-as |
7 | LD=$(AMD64_BINUTILS_DIR)/$(AMD64_TARGET)-ld |
7 | LD=$(AMD64_BINUTILS_DIR)/$(AMD64_TARGET)-ld |
8 | OBJCOPY=$(AMD64_BINUTILS_DIR)/$(AMD64_TARGET)-objcopy |
8 | OBJCOPY=$(AMD64_BINUTILS_DIR)/$(AMD64_TARGET)-objcopy |
9 | BFD_NAME=elf64-x86-64 |
9 | BFD_NAME=elf64-x86-64 |
10 | BFD_ARCH=i386:x86-64 |
10 | BFD_ARCH=i386:x86-64 |
11 | 11 | ||
12 | DEFS=-DARCH=$(ARCH) |
12 | DEFS=-DARCH=$(ARCH) |
13 | 13 | ||
14 | ifdef SMP |
14 | ifdef SMP |
15 | DEFS+=-D$(SMP) |
15 | DEFS+=-D$(SMP) |
16 | endif |
16 | endif |
17 | 17 | ||
18 | ifdef HT |
18 | ifdef HT |
19 | DEFS+=-D$(HT) |
19 | DEFS+=-D$(HT) |
20 | endif |
20 | endif |
21 | 21 | ||
22 | 22 | ||
23 | CPPFLAGS=$(DEFS) -nostdinc -I../include |
23 | CPPFLAGS=$(DEFS) -nostdinc -I../include |
24 | CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -fno-unwind-tables -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -march=opteron -m64 -mcmodel=kernel -mno-red-zone |
24 | CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -fno-unwind-tables -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -march=opteron -m64 -mcmodel=kernel -mno-red-zone |
25 | LFLAGS=-M -T ../arch/amd64/_link.ld |
25 | LFLAGS=-M -T ../arch/amd64/_link.ld |
26 | 26 | ||
27 | arch_sources = arch/dummy.s \ |
27 | arch_sources = arch/dummy.s \ |
28 | arch/fpu_context.c \ |
28 | arch/fpu_context.c \ |
29 | arch/boot/boot.S \ |
29 | arch/boot/boot.S \ |
30 | arch/boot/memmap.S \ |
30 | arch/boot/memmap.S \ |
31 | arch/pm.c \ |
31 | arch/pm.c \ |
32 | arch/context.S \ |
32 | arch/context.S \ |
33 | arch/drivers/ega.c \ |
33 | arch/drivers/ega.c \ |
34 | arch/drivers/i8042.c \ |
34 | arch/drivers/i8042.c \ |
35 | arch/drivers/i8254.c \ |
35 | arch/drivers/i8254.c \ |
36 | arch/drivers/i8259.c \ |
36 | arch/drivers/i8259.c \ |
37 | arch/supplib.c \ |
37 | arch/supplib.c \ |
38 | arch/delay.S \ |
38 | arch/delay.S \ |
39 | arch/amd64.c \ |
39 | arch/amd64.c \ |
40 | arch/bios/bios.c \ |
40 | arch/bios/bios.c \ |
41 | arch/interrupt.c \ |
41 | arch/interrupt.c \ |
42 | arch/mm/frame.c \ |
42 | arch/mm/frame.c \ |
43 | arch/mm/page.c \ |
43 | arch/mm/page.c \ |
44 | arch/mm/tlb.c \ |
44 | arch/mm/tlb.c \ |
45 | arch/asm_utils.S \ |
45 | arch/asm_utils.S \ |
46 | arch/fmath.c \ |
46 | arch/fmath.c \ |
47 | arch/mm/memory_init.c \ |
47 | arch/mm/memory_init.c \ |
48 | arch/cpu/cpu.c \ |
48 | arch/cpu/cpu.c \ |
49 | arch/proc/scheduler.c \ |
49 | arch/proc/scheduler.c \ |
50 | arch/userspace.c \ |
50 | arch/userspace.c \ |
51 | arch/acpi/acpi.c \ |
51 | arch/acpi/acpi.c \ |
52 | arch/acpi/madt.c |
52 | arch/acpi/madt.c |
53 | 53 | ||
54 | ifdef SMP |
54 | ifdef SMP |
55 | arch_sources += arch/smp/apic.c \ |
55 | arch_sources += arch/smp/ap.S \ |
- | 56 | arch/smp/apic.c \ |
|
56 | arch/smp/ipi.c \ |
57 | arch/smp/ipi.c \ |
57 | arch/smp/mps.c \ |
58 | arch/smp/mps.c \ |
58 | arch/smp/smp.c |
59 | arch/smp/smp.c |
59 | endif |
60 | endif |
60 | 61 |