lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since 807d2d4 was 807d2d4, checked in by Jakub Jermar <jakub@…>, 20 years ago |
|
Move ACPI code to genarch.
Enable it for ia32, amd64 and ia64.
For now, ia64 support is commented out.
|
-
Property mode
set to
100644
|
|
File size:
1.5 KB
|
| Line | |
|---|
| 1 | ifeq (${NATIVE_COMPILER},yes)
|
|---|
| 2 | CC=gcc
|
|---|
| 3 | AS=as
|
|---|
| 4 | LD=ld
|
|---|
| 5 | OBJCOPY=objcopy
|
|---|
| 6 | OBJDUMP=objdump
|
|---|
| 7 | else
|
|---|
| 8 | IA-32_TARGET=i686-pc-linux-gnu
|
|---|
| 9 |
|
|---|
| 10 | IA-32_CC_DIR=/usr/local/i686/bin
|
|---|
| 11 | IA-32_BINUTILS_DIR=/usr/local/i686/bin
|
|---|
| 12 |
|
|---|
| 13 | CC=$(IA-32_CC_DIR)/$(IA-32_TARGET)-gcc
|
|---|
| 14 | AS=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-as
|
|---|
| 15 | LD=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-ld
|
|---|
| 16 | OBJCOPY=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-objcopy
|
|---|
| 17 | OBJDUMP=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-objdump
|
|---|
| 18 | endif
|
|---|
| 19 |
|
|---|
| 20 | BFD_NAME=elf32-i386
|
|---|
| 21 | BFD_ARCH=i386
|
|---|
| 22 |
|
|---|
| 23 | DEFS:=-DARCH=$(ARCH) -DFPU_LAZY
|
|---|
| 24 |
|
|---|
| 25 | ifdef SMP
|
|---|
| 26 | DEFS+=-D$(SMP)
|
|---|
| 27 | endif
|
|---|
| 28 |
|
|---|
| 29 | ifdef HT
|
|---|
| 30 | DEFS+=-D$(HT)
|
|---|
| 31 | endif
|
|---|
| 32 |
|
|---|
| 33 | CPPFLAGS=$(DEFS) -nostdinc -Iinclude/
|
|---|
| 34 | CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -fomit-frame-pointer -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3
|
|---|
| 35 | LFLAGS=-M
|
|---|
| 36 |
|
|---|
| 37 | arch/$(ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in
|
|---|
| 38 | $(CC) $(CFLAGS) -E -x c $< | grep -v "^\#" > $@
|
|---|
| 39 |
|
|---|
| 40 | arch_sources= \
|
|---|
| 41 | src/arch/context.s \
|
|---|
| 42 | src/arch/debug/panic.s \
|
|---|
| 43 | src/arch/delay.s \
|
|---|
| 44 | src/arch/asm.S \
|
|---|
| 45 | src/arch/proc/scheduler.c \
|
|---|
| 46 | src/arch/bios/bios.c \
|
|---|
| 47 | src/arch/smp/ap.S \
|
|---|
| 48 | src/arch/smp/apic.c \
|
|---|
| 49 | src/arch/smp/mps.c \
|
|---|
| 50 | src/arch/smp/smp.c \
|
|---|
| 51 | src/arch/atomic.S \
|
|---|
| 52 | src/arch/smp/ipi.c \
|
|---|
| 53 | src/arch/ia32.c \
|
|---|
| 54 | src/arch/interrupt.c \
|
|---|
| 55 | src/arch/pm.c \
|
|---|
| 56 | src/arch/userspace.c \
|
|---|
| 57 | src/arch/cpu/cpu.c \
|
|---|
| 58 | src/arch/mm/frame.c \
|
|---|
| 59 | src/arch/mm/memory_init.c \
|
|---|
| 60 | src/arch/mm/page.c \
|
|---|
| 61 | src/arch/mm/tlb.c \
|
|---|
| 62 | src/arch/drivers/i8042.c \
|
|---|
| 63 | src/arch/drivers/i8254.c \
|
|---|
| 64 | src/arch/drivers/i8259.c \
|
|---|
| 65 | src/arch/drivers/ega.c \
|
|---|
| 66 | src/arch/boot/boot.S \
|
|---|
| 67 | src/arch/boot/memmap.S\
|
|---|
| 68 | src/arch/fpu_context.c\
|
|---|
| 69 | src/arch/fmath.c
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.