~ubuntu-branches/ubuntu/gutsy/libcaca/gutsy

« back to all changes in this revision

Viewing changes to build-kernel

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hocevar (Debian packages)
  • Date: 2006-12-03 02:05:11 UTC
  • mfrom: (3.1.6 feisty)
  • Revision ID: james.westby@ubuntu.com-20061203020511-h5nzqgf8nov7ns3z
Tags: 0.99.beta11.debian-2
Remove toilet from caca-utils now that it has entered testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
##  Kernel-mode libcaca compilation script -- Sam Hocevar <sam@zoy.org>
 
4
##  $Id: build-kernel 836 2006-09-18 07:30:14Z sam $
 
5
 
 
6
set -x
 
7
set -e
 
8
 
 
9
CFLAGS="-fno-builtin -O2 -I. -I.. -Wall"
 
10
CPPFLAGS="-D__KERNEL__ -nostdinc -include kernel/kernel.h"
 
11
LDFLAGS="-nostdlib -Wl,-N -Wl,-Ttext -Wl,100000"
 
12
 
 
13
./configure --disable-slang --disable-ncurses --disable-win32 \
 
14
            --disable-conio --disable-x11 --disable-gl --disable-network \
 
15
            --enable-vga --disable-imlib2 --disable-doc \
 
16
            --host i386
 
17
 
 
18
# We need this.
 
19
make clean
 
20
 
 
21
cd cucul && make && cd ..
 
22
cd caca && make && cd ..
 
23
 
 
24
cd src && make cacademo.o && cd ..
 
25
 
 
26
cd kernel &&
 
27
    gcc $CFLAGS -c multiboot.S -o multiboot.o &&
 
28
    gcc $CFLAGS $CPPFLAGS -c kernel.c -o kernel.o &&
 
29
cd ..
 
30
 
 
31
gcc $LDFLAGS -o src/cacademo kernel/multiboot.o kernel/kernel.o src/cacademo.o caca/.libs/libcaca.a cucul/.libs/libcucul.a
 
32
 
 
33
objcopy -O binary src/cacademo cacademo.boot
 
34
 
 
35
# For further development: create floppy images using the kernel
 
36
#gcc -traditional -c -o bootsect.o /usr/src/linux/arch/i386/boot/bootsect.S
 
37
#ld -Ttext 0x0 -s --oformat binary bootsect.o -o cacademo.img
 
38