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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [m68k/] [Makefile] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1625 jcastillo
#
2
# m68k/Makefile
3
#
4
# This file is included by the global makefile so that you can add your own
5
# architecture-specific flags and dependencies. Remember to do have actions
6
# for "archclean" and "archdep" for cleaning up and making dependencies for
7
# this architecture
8
#
9
# This file is subject to the terms and conditions of the GNU General Public
10
# License.  See the file "COPYING" in the main directory of this archive
11
# for more details.
12
#
13
# Copyright (C) 1994 by Hamish Macdonald
14
#
15
 
16
# override top level makefile
17
ifdef CONFIG_KERNEL_ELF
18
AS      = as -m68020
19
LD      = ld -m m68kelf
20
CC      := $(CC)
21
# set up for cross compiling
22
COMPILE_ARCH = $(shell uname -m)
23
ifneq ($(COMPILE_ARCH),$(ARCH))
24
        CROSSDIR=/usr/$(ARCH)-linux
25
        CC := $(CROSSDIR)/$(CC)
26
        AS := $(CROSSDIR)/$(AS)
27
        LD := $(CROSSDIR)/$(LD)
28
        AR := $(CROSSDIR)/$(AR)
29
        NM := $(CROSSDIR)/$(NM)
30
        STRIP := $(CROSSDIR)/$(STRIP)
31
endif
32
else
33
AS      = /usr/m68k-linuxaout/bin/as -m68020
34
CC      := $(CC) -pipe -b m68k-linuxaout
35
LD      = ld -m m68klinux
36
endif
37
 
38
#
39
# Set these to indicate how to link it..
40
#
41
# -zmagic:
42
#
43
# LINKFLAGS    = -Ttext 0x100000
44
#
45
# -qmagic (we need to remove the 32 byte header for bootup purposes)
46
#
47
 
48
ifdef CONFIG_KERNEL_ELF
49
LINKFLAGS = -Ttext 0x1000
50
else
51
LINKFLAGS = -qmagic -Ttext 0xFE0
52
endif
53
CFLAGS := $(CFLAGS) -pipe
54
 
55
HEAD := arch/m68k/kernel/head.o
56
 
57
SUBDIRS += arch/m68k/kernel arch/m68k/mm arch/m68k/console arch/m68k/lib
58
#SUBDIRS += arch/m68k/kernel arch/m68k/mm arch/m68k/lib
59
ARCHIVES := arch/m68k/kernel/kernel.o arch/m68k/mm/mm.o $(ARCHIVES)
60
LIBS += arch/m68k/lib/lib.a
61
 
62
ifdef CONFIG_AMIGA
63
ARCHIVES := $(ARCHIVES) arch/m68k/amiga/amiga.o
64
SUBDIRS := $(SUBDIRS) arch/m68k/amiga
65
endif
66
 
67
ifdef CONFIG_ATARI
68
ARCHIVES := $(ARCHIVES) arch/m68k/atari/atari.o
69
SUBDIRS := $(SUBDIRS) arch/m68k/atari
70
endif
71
 
72
ifdef CONFIG_MAC
73
ARCHIVES := $(ARCHIVES) arch/m68k/mac/mac.o
74
SUBDIRS := $(SUBDIRS) arch/m68k/mac
75
endif
76
 
77
# add in console.a after {amiga,atari}.o that need it
78
ARCHIVES := $(ARCHIVES) arch/m68k/console/console.a
79
 
80
ifdef CONFIG_FPSP_040
81
ARCHIVES := $(ARCHIVES) arch/m68k/fpsp040/fpsp.o
82
SUBDIRS := $(SUBDIRS) arch/m68k/fpsp040
83
endif
84
 
85
ifdef CONFIG_IFPSP_060
86
ARCHIVES := $(ARCHIVES) arch/m68k/ifpsp060/ifpsp.o
87
SUBDIRS := $(SUBDIRS) arch/m68k/ifpsp060
88
endif
89
 
90
MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
91
 
92
lilo:   vmlinux
93
        if [ -f $(INSTALL_PATH)/vmlinux ]; then mv -f $(INSTALL_PATH)/vmlinux $(INSTALL_PATH)/vmlinux.old; fi
94
        if [ -f $(INSTALL_PATH)/System.map ]; then mv -f $(INSTALL_PATH)/System.map $(INSTALL_PATH)/System.old; fi
95
        cat vmlinux > $(INSTALL_PATH)/vmlinux
96
        cp System.map $(INSTALL_PATH)/System.map
97
        if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi
98
 
99
bootstrap:
100
        @$(MAKEBOOT) bootstrap
101
 
102
archclean:
103
        @$(MAKEBOOT) clean
104
 
105
archdep:
106
        $(MAKEBOOT) dep

powered by: WebSVN 2.1.0

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