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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [armnommu/] [boot/] [compressed/] [Makefile] - Blame information for rev 1765

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1622 jcastillo
#
2
# linux/arch/arm/boot/compressed/Makefile
3
#
4
# create a compressed vmlinuz image from the original vmlinux
5
#
6
# With this config, max compressed image size = 640k
7
# Uncompressed image size = 1.3M (text+data)
8
 
9
 
10
HEAD = head.o
11
SYSTEM = $(TOPDIR)/vmlinux
12
OBJS = $(HEAD) misc.o $(COMPRESSED_EXTRA)
13
 
14
CFLAGS = -O2 -DSTDC_HEADERS $(CFLAGS_PROC)
15
ARFLAGS = rc
16
 
17
all:            vmlinux
18
 
19
vmlinux:        piggy.o $(OBJS)
20
                $(LD) $(ZLINKFLAGS) -o vmlinux $(OBJS) piggy.o
21
 
22
head.o:         head.S
23
                $(CC) -traditional -DLOADADDR=$(ZRELADDR) -c head.S
24
 
25
piggy.o:        $(SYSTEM) xtract piggyback
26
                ./xtract $(SYSTEM) | gzip -9 | ./piggyback > $@
27
 
28
# rules for extracting & piggybacking the kernel
29
 
30
xtract:         xtract.c
31
                $(HOSTCC) $(HOSTCFLAGS) -o xtract xtract.c
32
 
33
piggyback:      piggyback.c
34
                $(HOSTCC) $(HOSTCFLAGS) -o piggyback piggyback.c
35
 
36
clean:
37
                rm -f xtract piggyback vmlinux core
38
 

powered by: WebSVN 2.1.0

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