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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [arch/] [mips/] [boot/] [Makefile] - Blame information for rev 1775

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

Line No. Rev Author Line
1 199 simons
#
2
# arch/mips/boot/Makefile
3
#
4
# This file is subject to the terms and conditions of the GNU General Public
5
# License.  See the file "COPYING" in the main directory of this archive
6
# for more details.
7
#
8
# Copyright (C) 1995 by Ralf Baechle
9
#
10
 
11
.S.s:
12
        $(CPP) $(CFLAGS) $< -o $*.s
13
.S.o:
14
        $(CC) $(CFLAGS) -c $< -o $*.o
15
 
16
OBJS  = milo.o a.out.o
17
 
18
#
19
# Drop some uninteresting sections in the kernel.
20
# This is only relevant for ELF kernels but doesn't hurt a.out
21
#
22
DROP_SECTIONS   = .reginfo .mdebug
23
 
24
#
25
# The new options of binutils 2.6 help to shrink object files a lot.
26
# This is especially useful for booting from floppy.  Though we
27
# don't yet require everyone to have binutils 2.6 installed.
28
#
29
OBJDUMP_VERSION =  $(word 4,$(shell $(OBJDUMP) --version))
30
ifneq ($(OBJDUMP_VERSION),2.5.2)
31
KEEP = kernel_entry boot_info screen_info _end
32
STRIP_FLAGS = $(addprefix --keep-symbol=,$(KEEP))
33
else
34
STRIP_FLAGS = --discard-all
35
endif
36
 
37
#
38
# Fake compressed boot
39
#
40
ifdef CONFIG_ELF_KERNEL
41
zImage: $(CONFIGURE) $(TOPDIR)/vmlinux
42
        cp $(TOPDIR)/vmlinux zImage.tmp
43
        $(STRIP) $(addprefix --remove-section=,$(DROP_SECTIONS)) \
44
                --strip-symbol=blurb zImage.tmp
45
        $(LD) -oformat=$(oformat) -N -e except_vec0 -Ttext=0x80000000 \
46
                -o zImage zImage.tmp
47
        rm -f zImage.tmp
48
        $(STRIP) $(STRIP_FLAGS) zImage
49
else
50
zImage: $(CONFIGURE) $(TOPDIR)/vmlinux
51
        cp $(TOPDIR)/vmlinux $@
52
        $(STRIP) $(STRIP_FLAGS) $@
53
endif
54
 
55
zdisk:  zImage
56
        mcopy -n zImage a:vmlinux
57
 
58
dep:
59
        $(CPP) -M *.[cS] > .depend
60
 
61
clean:
62
        rm -f zImage zImage.tmp
63
 
64
dummy:
65
 
66
include $(TOPDIR)/Rules.make

powered by: WebSVN 2.1.0

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