OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [arch/] [ppc/] [boot/] [compressed/] [Makefile] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#
2
# linux/arch/ppc/boot/compressed/Makefile
3
#
4
# create a compressed vmlinux image from the original vmlinux
5
#
6
 
7
TOPDIR = ../../../..
8
CC = cc.ppc
9
AS = as.ppc
10
LD = ld.ppc
11
ZLINKFLAGS = -T ../../ld.script -Ttext 0x00400000
12
HOSTCC = cc
13
#GZIP_FLAGS = -9
14
GZIP_FLAGS =
15
 
16
HEAD = head.o
17
SYSTEM = $(TOPDIR)/vmlinux
18
 
19
OBJECTS = $(HEAD) inflate.o unzip.o misc.o
20
 
21
CFLAGS = -O2 -DSTDC_HEADERS
22
 
23
.c.s:
24
        $(CC) $(CFLAGS) -S $<
25
.s.o:
26
        $(AS) -o $*.o $<
27
.c.o:
28
        $(CC) $(CFLAGS) -c $<
29
 
30
all: vmlinux
31
 
32
vmlinux: $(OBJECTS) $(SYSTEM) piggyback
33
        mkboot $(TOPDIR)/vmlinux xx_boot 0
34
        gzip ${GZIP_FLAGS} 
35
        $(LD) $(ZLINKFLAGS) -o vmlinux $(OBJECTS) piggy.o
36
        rm -f piggy.o xx_boot
37
 
38
vmlinux.no_ramdisk: $(OBJECTS) piggyback
39
        mkboot $(TOPDIR)/vmlinux.no_ramdisk xx_boot 0
40
        gzip ${GZIP_FLAGS} 
41
        $(LD) $(ZLINKFLAGS) -o vmlinux.no_ramdisk $(OBJECTS) piggy.o
42
        rm -f piggy.o xx_boot
43
 
44
head.o: head.s
45
 
46
head.s: head.S $(TOPDIR)/include/linux/tasks.h
47
        $(CPP) -traditional head.S -o head.s
48
 
49
piggyback: piggyback.c
50
        $(HOSTCC) $(CFLAGS) -o piggyback piggyback.c
51
 
52
clean:
53
        rm -f piggyback vmlinux

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.