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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [arch/] [armnommu/] [boot/] [compressed/] [Makefile] - Rev 1765

Compare with Previous | Blame | View Log

#
# linux/arch/arm/boot/compressed/Makefile
#
# create a compressed vmlinuz image from the original vmlinux
#
# With this config, max compressed image size = 640k
# Uncompressed image size = 1.3M (text+data)


HEAD = head.o
SYSTEM = $(TOPDIR)/vmlinux
OBJS = $(HEAD) misc.o $(COMPRESSED_EXTRA)

CFLAGS = -O2 -DSTDC_HEADERS $(CFLAGS_PROC)
ARFLAGS = rc

all:            vmlinux

vmlinux:        piggy.o $(OBJS)
                $(LD) $(ZLINKFLAGS) -o vmlinux $(OBJS) piggy.o

head.o:         head.S
                $(CC) -traditional -DLOADADDR=$(ZRELADDR) -c head.S

piggy.o:        $(SYSTEM) xtract piggyback
                ./xtract $(SYSTEM) | gzip -9 | ./piggyback > $@

# rules for extracting & piggybacking the kernel

xtract:         xtract.c
                $(HOSTCC) $(HOSTCFLAGS) -o xtract xtract.c

piggyback:      piggyback.c
                $(HOSTCC) $(HOSTCFLAGS) -o piggyback piggyback.c

clean:
                rm -f xtract piggyback vmlinux core

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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