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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [or32/] [Makefile] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
# BK Id: %F% %I% %G% %U% %#%
2
#
3
# This file is included by the global makefile so that you can add your own
4
# architecture-specific flags and dependencies. Remember to do have actions
5
# for "archclean" and "archdep" for cleaning up and making dependencies for
6
# this architecture
7
#
8
# This file is subject to the terms and conditions of the GNU General Public
9
# License.  See the file "COPYING" in the main directory of this archive
10
# for more details.
11
#
12
# Copyright (C) 1994 by Linus Torvalds
13
# Changes for or32 by Simon Srot
14
# Based on:
15
# arch/ppc/Makefile
16
#
17
 
18
# Be sure to change PAGE_OFFSET in include/asm-or32/page.h to match
19
KERNELLOAD      =0xc0000000
20
 
21
ifeq ($(shell uname -m),or32)
22
CHECKS          = checks
23
endif
24
 
25
LINKFLAGS       = -T arch/or32/vmlinux.lds -Bstatic
26
# -Ttext $(KERNELLOAD) -Bstatic
27
CPPFLAGS        := $(CPPFLAGS) -I$(TOPDIR)/arch/$(ARCH)
28
AFLAGS          := $(AFLAGS) -I$(TOPDIR)/arch/$(ARCH)
29
CFLAGS          := $(CFLAGS) -I$(TOPDIR)/arch/$(ARCH) -fsigned-char \
30
                -msoft-float -pipe -ffixed-r2 -Wno-uninitialized
31
LIBGCC          := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
32
LIBS            := arch/or32/lib/lib.a $(LIBS) $(LIBGCC)
33
 
34
HOSTCFLAGS      += -I$(TOPDIR)/arch/$(ARCH)
35
CPP             = $(CC) -E $(CFLAGS)
36
 
37
HEAD := arch/or32/kernel/head.o
38
 
39
ARCH_SUBDIRS = arch/or32/kernel arch/or32/mm arch/or32/lib arch/or32/board arch/or32/drivers arch/or32/support
40
SUBDIRS      := $(SUBDIRS) $(ARCH_SUBDIRS)
41
CORE_FILES   := arch/or32/kernel/kernel.o arch/or32/mm/mm.o \
42
                arch/or32/board/board.o arch/or32/support/support.o \
43
                arch/or32/drivers/drivers.o $(CORE_FILES)
44
 
45
#MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
46
MAKEBOOT = $(MAKE)
47
 
48
checks:
49
        @$(MAKE) -C arch/$(ARCH)/kernel checks
50
 
51
BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd
52
 
53
# All the instructions talk about "make bzImage".
54
bzImage: zImage
55
 
56
$(BOOT_TARGETS): $(CHECKS) vmlinux
57
        @$(MAKEBOOT) $@
58
 
59
%_config: arch/or32/configs/%_defconfig
60
        rm -f .config arch/or32/defconfig
61
        cp -f arch/or32/configs/$(@:config=defconfig) arch/or32/defconfig
62
 
63
archclean:
64
        rm -f arch/or32/kernel/{mk_defs,or32_defs.h}
65
#       @$(MAKEBOOT) clean
66
 
67
archmrproper:
68
 
69
archdep: scripts/mkdep
70
        $(MAKEBOOT) fastdep

powered by: WebSVN 2.1.0

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