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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [i386/] [boot/] [Makefile] - Blame information for rev 1623

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

Line No. Rev Author Line
1 1623 jcastillo
#
2
# arch/i386/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) 1994 by Linus Torvalds
9
#
10
 
11
ifdef CONFIG_KERNEL_ELF
12
HOSTCFLAGS := $(HOSTCFLAGS) -D__BFD__
13
endif
14
 
15
ifdef SMP
16
HOSTCFLAGS := $(HOSTCFLAGS) -D__SMP__
17
endif
18
 
19
zImage: $(CONFIGURE) bootsect setup compressed/vmlinux tools/build
20
ifdef CONFIG_KERNEL_ELF
21
        if hash $(ENCAPS) 2> /dev/null; then \
22
          $(OBJDUMP) $(OBJDUMP_FLAGS) -o $(ZIMAGE_OFFSET) compressed/vmlinux > compressed/vmlinux.out; \
23
        else \
24
          $(OBJCOPY) compressed/vmlinux compressed/vmlinux.out; \
25
        fi
26
        tools/build bootsect setup compressed/vmlinux.out $(ROOT_DEV) > zImage
27
else
28
        tools/build bootsect setup compressed/vmlinux $(ROOT_DEV) > zImage
29
endif
30
        sync
31
 
32
bzImage: $(CONFIGURE) bbootsect setup compressed/bvmlinux tools/bbuild
33
ifdef CONFIG_KERNEL_ELF
34
        if hash $(ENCAPS) 2> /dev/null; then \
35
          $(OBJDUMP) $(OBJDUMP_FLAGS) -o $(IMAGE_OFFSET) compressed/bvmlinux > compressed/bvmlinux.out; \
36
        else \
37
          $(OBJCOPY) compressed/bvmlinux compressed/bvmlinux.out; \
38
        fi
39
        tools/bbuild bbootsect setup compressed/bvmlinux.out $(ROOT_DEV) > bzImage
40
else
41
        tools/bbuild bbootsect setup compressed/bvmlinux $(ROOT_DEV) > bzImage
42
endif
43
        sync
44
 
45
compressed/vmlinux: $(TOPDIR)/vmlinux
46
        @$(MAKE) -C compressed vmlinux
47
 
48
compressed/bvmlinux: $(TOPDIR)/vmlinux
49
        @$(MAKE) -C compressed bvmlinux
50
 
51
zdisk: $(BOOTIMAGE)
52
        dd bs=8192 if=$(BOOTIMAGE) of=/dev/fd0
53
 
54
zlilo: $(CONFIGURE) $(BOOTIMAGE)
55
        if [ -f $(INSTALL_PATH)/vmlinuz ]; then mv $(INSTALL_PATH)/vmlinuz $(INSTALL_PATH)/vmlinuz.old; fi
56
        if [ -f $(INSTALL_PATH)/System.map ]; then mv $(INSTALL_PATH)/System.map $(INSTALL_PATH)/System.old; fi
57
        cat $(BOOTIMAGE) > $(INSTALL_PATH)/vmlinuz
58
        cp $(TOPDIR)/System.map $(INSTALL_PATH)/
59
        if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi
60
 
61
install: $(CONFIGURE) zImage
62
        sh ./install.sh $(VERSION).$(PATCHLEVEL).$(SUBLEVEL) zImage $(TOPDIR)/System.map "$(INSTALL_PATH)"
63
 
64
tools/build: tools/build.c
65
        $(HOSTCC) $(HOSTCFLAGS) -o $@ $< -I$(TOPDIR)/include
66
 
67
tools/bbuild: tools/build.c
68
        $(HOSTCC) $(HOSTCFLAGS) -D__BIG_KERNEL__ -o $@ $< -I$(TOPDIR)/include
69
 
70
setup: setup.o
71
        $(LD86) -s -o $@ $<
72
 
73
setup.o: setup.s
74
        $(AS86) -o $@ $<
75
 
76
setup.s: setup.S video.S $(CONFIGURE) $(TOPDIR)/include/linux/config.h Makefile
77
        $(CPP) -traditional $(SVGA_MODE) $(RAMDISK) $< -o $@
78
 
79
bootsect: bootsect.o
80
        $(LD86) -s -o $@ $<
81
 
82
bootsect.o: bootsect.s
83
        $(AS86) -o $@ $<
84
 
85
bootsect.s: bootsect.S $(CONFIGURE) $(TOPDIR)/include/linux/config.h Makefile
86
        $(CPP) -traditional $(SVGA_MODE) $(RAMDISK) $< -o $@
87
 
88
bbootsect: bbootsect.o
89
        $(LD86) -s -o $@ $<
90
 
91
bbootsect.o: bbootsect.s
92
        $(AS86) -o $@ $<
93
 
94
bbootsect.s: bootsect.S $(CONFIGURE) $(TOPDIR)/include/linux/config.h Makefile
95
        $(CPP) -D__BIG_KERNEL__ -traditional $(SVGA_MODE) $(RAMDISK) $< -o $@
96
 
97
dep:
98
 
99
clean:
100
        rm -f bootsect setup
101
        rm -f bbootsect
102
        rm -f zImage tools/build compressed/vmlinux.out
103
        rm -f bzImage tools/bbuild compressed/bvmlinux.out
104
        @$(MAKE) -C compressed clean

powered by: WebSVN 2.1.0

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