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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [x86_64/] [boot/] [compressed/] [Makefile] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#
2
# linux/arch/i386/boot/compressed/Makefile
3
#
4
# create a compressed vmlinux image from the original vmlinux
5
#
6
 
7
HEAD = head.o
8
SYSTEM = $(TOPDIR)/vmlinux
9
 
10
OBJECTS = $(HEAD) misc.o
11
 
12
IA32_CFLAGS := -O2 -DSTDC_HEADERS
13
 
14
#
15
# ZIMAGE_OFFSET is the load offset of the compression loader
16
# BZIMAGE_OFFSET is the load offset of the high loaded compression loader
17
#
18
BZIMAGE_OFFSET = 0x100000
19
 
20
BZLINKFLAGS = -Ttext $(BZIMAGE_OFFSET) $(ZLDFLAGS)
21
 
22
all: vmlinux
23
 
24
bvmlinux: piggy.o $(OBJECTS)
25
        $(IA32_LD) $(BZLINKFLAGS) -o bvmlinux $(OBJECTS) piggy.o
26
 
27
head.o: head.S
28
        $(IA32_AS) -c head.S
29
 
30
misc.o: misc.c
31
        $(IA32_CC) $(IA32_CFLAGS) -c misc.c
32
 
33
piggy.o:        $(SYSTEM)
34
        tmppiggy=_tmp_$$$$piggy; \
35
        rm -f $$tmppiggy $$tmppiggy.gz $$tmppiggy.lnk; \
36
        $(OBJCOPY) $(SYSTEM) $$tmppiggy; \
37
        gzip -f -9 < $$tmppiggy > $$tmppiggy.gz; \
38
        echo "SECTIONS { .data : { input_len = .; LONG(input_data_end - input_data) input_data = .; *(.data) input_data_end = .; }}" > $$tmppiggy.lnk; \
39
        $(IA32_LD) -r -o piggy.o -b binary $$tmppiggy.gz -b elf32-i386 -T $$tmppiggy.lnk; \
40
        rm -f $$tmppiggy $$tmppiggy.gz $$tmppiggy.lnk
41
 
42
clean:
43
        rm -f vmlinux bvmlinux _tmp_*

powered by: WebSVN 2.1.0

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