Ignore:
Timestamp:
Feb 7, 2010, 1:22:31 AM (10 years ago)
Author:
Sam Hocevar
Message:

Move some configuration stuff from build-kernel into configure.ac.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/build-kernel

    r4219 r4317  
    77set -e
    88
    9 CFLAGS="-fno-builtin -O0 -I. -I.. -I../caca/ -Wall -D__KERNEL__ -fno-stack-protector -m32"
    10 LDFLAGS="-nostdlib -Wl,-N -Wl,-Ttext -Wl,100000"
     9MYCFLAGS="-fno-builtin -O0 -I. -I.. -I../caca/ -Wall -D__KERNEL__ -fno-stack-protector -m32"
    1110
    12 ./configure --disable-slang --disable-ncurses --disable-win32 \
    13             --disable-conio --disable-x11 --disable-gl --disable-network \
    14             --enable-vga --disable-imlib2 --disable-doc \
    15             --host i386
     11./configure --enable-kernel --disable-doc --host i386
    1612
    1713# Compile cacademo, leave it as an object
    1814cd caca && make && cd ..
    1915cd examples && make dithering.o && cd ..
    20 
    2116
    2217cd kernel
     
    2520nasm -f bin -o bootsect.bin boot/bootsect.asm
    2621# Interruption handlers
    27 nasm -f elf -o int.o boot/int.asm 
     22nasm -f elf -o int.o boot/int.asm
    2823
    2924##### Boot (x86)
    3025# Stage2, loads GDT, PIC, IDT, interrupts, then calls kmain()
    31 gcc $CFLAGS boot/stage2.c -c
     26gcc $MYCFLAGS boot/stage2.c -c
    3227# GDT installation, called by stage2
    33 gcc $CFLAGS boot/gdt.c -c
     28gcc $MYCFLAGS boot/gdt.c -c
    3429# PIC installation, called by stage2
    35 gcc $CFLAGS boot/pic.c -c
     30gcc $MYCFLAGS boot/pic.c -c
    3631# IDT installation, called by stage2
    37 gcc $CFLAGS boot/idt.c -c
     32gcc $MYCFLAGS boot/idt.c -c
    3833# Interruptions installation, called by stage2
    39 gcc $CFLAGS boot/interruptions.c -c
     34gcc $MYCFLAGS boot/interruptions.c -c
    4035
    41 ##### Drivers 
     36##### Drivers
    4237# Floppy driver
    43 gcc $CFLAGS drivers/floppy.c -c
     38gcc $MYCFLAGS drivers/floppy.c -c
    4439# Processor driver
    45 gcc $CFLAGS drivers/processor.c -c
     40gcc $MYCFLAGS drivers/processor.c -c
    4641# Keyboard handler
    47 gcc $CFLAGS drivers/keyboard.c -c
     42gcc $MYCFLAGS drivers/keyboard.c -c
    4843# Memory driver
    49 gcc $CFLAGS drivers/memory.c -c
     44gcc $MYCFLAGS drivers/memory.c -c
    5045# Programmable Interval Timer driver
    51 gcc $CFLAGS drivers/timer.c -c
     46gcc $MYCFLAGS drivers/timer.c -c
    5247
    5348# Minimalistic libc
    54 gcc $CFLAGS klibc.c -c
     49gcc $MYCFLAGS klibc.c -c
    5550
    5651# Kernel by itself, contains cmain() which calls main()
    57 gcc $CFLAGS kernel.c -c
     52gcc $MYCFLAGS kernel.c -c
    5853
    5954# Link everything but bootsector, kernel.o MUST be at the very end
    60 ld --oformat binary -Ttext 1000 stage2.o gdt.o pic.o int.o idt.o interruptions.o keyboard.o memory.o timer.o floppy.o processor.o klibc.o kernel.o ../caca/.libs/libcaca.a -Map kernel.map    -o kern.bin 
    61    
     55ld --oformat binary -Ttext 1000 stage2.o gdt.o pic.o int.o idt.o interruptions.o keyboard.o memory.o timer.o floppy.o processor.o klibc.o kernel.o ../caca/.libs/libcaca.a -Map kernel.map    -o kern.bin
     56
    6257ls -ail kern.bin
    6358cd ..
Note: See TracChangeset for help on using the changeset viewer.