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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [uclinux/] [uClinux-2.0.x/] [arch/] [alpha/] [Makefile] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#
2
# alpha/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
NM := nm -B
12
 
13
ifdef CONFIG_CROSSCOMPILE
14
# enable this for linking under OSF/1:
15
LINKFLAGS = -non_shared -T 0xfffffc0000310000 -N
16
else
17
 elf=$(shell if $(LD) --help | grep elf64alpha >/dev/null; then echo yes; fi)
18
 ifeq ($(elf),yes)
19
   LINKFLAGS = -static -Ttext 0xfffffc0000310000 -N
20
 else
21
   LINKFLAGS = -static -T arch/alpha/vmlinux.lds -N
22
 endif
23
# GNU gcc/cc1/as can use pipes instead of temporary files
24
CFLAGS := $(CFLAGS) -pipe
25
endif
26
 
27
CFLAGS := $(CFLAGS) -mno-fp-regs
28
 
29
# determine if we can use the BWX instructions with GAS
30
dummy:=$(shell rm -f /tmp/GAS_VER)
31
#$(shell $(AS) --version >& /tmp/GAS_VER)
32
dummy:=$(shell $(AS) --version > /tmp/GAS_VER 2>&1)
33
OLD_GAS := $(shell if cat /tmp/GAS_VER | grep 'version 2.7' > /dev/null; then echo yes; else echo no; fi)
34
 
35
ifneq ($(OLD_GAS),yes)
36
 CFLAGS := $(CFLAGS) -Wa,-m21164a -DBWX_USABLE
37
 
38
# if PYXIS, then enable use of BWIO space
39
 ifeq ($(CONFIG_ALPHA_PYXIS),y)
40
  CFLAGS := $(CFLAGS) -DBWIO_ENABLED
41
 endif
42
endif
43
 
44
HEAD := arch/alpha/kernel/head.o
45
 
46
SUBDIRS := $(SUBDIRS) arch/alpha/kernel arch/alpha/mm arch/alpha/lib \
47
        arch/alpha/math-emu
48
ARCHIVES := arch/alpha/kernel/kernel.o arch/alpha/mm/mm.o $(ARCHIVES)
49
LIBS := $(TOPDIR)/arch/alpha/math-emu/math-emu.a \
50
        $(TOPDIR)/arch/alpha/lib/lib.a $(LIBS) $(TOPDIR)/arch/alpha/lib/lib.a
51
 
52
MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
53
 
54
rawboot:
55
        @$(MAKEBOOT) rawboot
56
 
57
#
58
# my boot writes directly to a specific disk partition, I doubt most
59
# people will want to do that without changes..
60
#
61
msb my-special-boot:
62
        @$(MAKEBOOT) msb
63
 
64
bootimage:
65
        @$(MAKEBOOT) bootimage
66
 
67
srmboot:
68
        @$(MAKEBOOT) srmboot
69
 
70
archclean:
71
        @$(MAKEBOOT) clean
72
 
73
archdep:
74
        @$(MAKEBOOT) dep
75
 
76
bootpfile:
77
        @$(MAKEBOOT) bootpfile

powered by: WebSVN 2.1.0

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