lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 7b43e11 was 9060bd1, checked in by Jakub Jermar <jakub@…>, 20 years ago |
IA-32 can be now cross-compiled by ./build.ia32 cross.
Unify IA-32 Makefile.inc and Makefile.inc.cross.
Update doc/requirements.
Small changes elsewere.
|
-
Property mode
set to
100644
|
File size:
1.5 KB
|
Line | |
---|
1 | ifeq (${CROSS_COMPILER},yes)
|
---|
2 | IA-32_TARGET=i686-pc-linux-gnu
|
---|
3 |
|
---|
4 | IA-32_CC_DIR=/usr/local/i686/bin
|
---|
5 | IA-32_BINUTILS_DIR=/usr/local/i686/bin
|
---|
6 |
|
---|
7 | CC=$(IA-32_CC_DIR)/$(IA-32_TARGET)-gcc
|
---|
8 | AS=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-as
|
---|
9 | LD=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-ld
|
---|
10 | OBJCOPY=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-objcopy
|
---|
11 | OBJDUMP=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-objdump
|
---|
12 | else
|
---|
13 | CC=gcc
|
---|
14 | AS=as
|
---|
15 | LD=ld
|
---|
16 | OBJCOPY=objcopy
|
---|
17 | OBJDUMP=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 -I../include
|
---|
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 | arch/context.s \
|
---|
42 | arch/debug/panic.s \
|
---|
43 | arch/cpuid.s \
|
---|
44 | arch/delay.s \
|
---|
45 | arch/asm.S \
|
---|
46 | arch/proc/scheduler.c \
|
---|
47 | arch/acpi/acpi.c \
|
---|
48 | arch/acpi/madt.c \
|
---|
49 | arch/bios/bios.c \
|
---|
50 | arch/smp/ap.S \
|
---|
51 | arch/smp/apic.c \
|
---|
52 | arch/smp/mps.c \
|
---|
53 | arch/smp/smp.c \
|
---|
54 | arch/atomic.S \
|
---|
55 | arch/smp/ipi.c \
|
---|
56 | arch/ia32.c \
|
---|
57 | arch/interrupt.c \
|
---|
58 | arch/pm.c \
|
---|
59 | arch/userspace.c \
|
---|
60 | arch/cpu/cpu.c \
|
---|
61 | arch/mm/frame.c \
|
---|
62 | arch/mm/memory_init.c \
|
---|
63 | arch/mm/page.c \
|
---|
64 | arch/mm/tlb.c \
|
---|
65 | arch/drivers/i8042.c \
|
---|
66 | arch/drivers/i8254.c \
|
---|
67 | arch/drivers/i8259.c \
|
---|
68 | arch/drivers/ega.c \
|
---|
69 | arch/boot/boot.S \
|
---|
70 | arch/boot/memmap.S\
|
---|
71 | arch/fpu_context.c\
|
---|
72 | arch/fmath.c
|
---|
Note:
See
TracBrowser
for help on using the repository browser.