summaryrefslogtreecommitdiffstats
path: root/arch/ppc/Makefile
blob: af577c5ae8ac048627452557f046a79b54f997b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#
# ppc/Makefile
#
# This file is included by the global makefile so that you can add your own
# architecture-specific flags and dependencies. Remember to do have actions
# for "archclean" and "archdep" for cleaning up and making dependencies for
# this architecture
#
# This file is subject to the terms and conditions of the GNU General Public
# License.  See the file "COPYING" in the main directory of this archive
# for more details.
#
# Copyright (C) 1994 by Linus Torvalds
# Changes for PPC by Gary Thomas
# Modified by Cort Dougan
#

# PowerPC (cross) tools
SUFFIX		= 
AS		= as$(SUFFIX)
ASFLAGS		= 
LD		= ld$(SUFFIX)
LINKFLAGS	= -T arch/ppc/ld.script -Ttext 0x90000000 
HOSTCC		= gcc
CC		= gcc$(SUFFIX)
CFLAGSINC	= -D__KERNEL__ -I$(TOPDIR)/include -D__powerpc__
CFLAGS		= $(CFLAGSINC) \
		-Wstrict-prototypes \
		-fomit-frame-pointer \
		-fno-builtin \
		-finhibit-size-directive -fno-strength-reduce\
		-O2 -fsigned-char -pipe -mstring -mmultiple
CPP		= $(CC) -E $(CFLAGS)
AR		= ar$(SUFFIX)
RANLIB		= ranlib$(SUFFIX)
STRIP		= strip$(SUFFIX)
NM		= nm$(SUFFIX)

ifdef CONFIG_603
CFLAGS := $(CFLAGS) -mcpu=603 -DCPU=603
endif

ifdef CONFIG_603e
CFLAGS := $(CFLAGS) -mcpu=603e -DCPU=603e
endif

ifdef CONFIG_604
CFLAGS := $(CFLAGS) -mcpu=604 -DCPU=604
endif

#
# NFS_ROOT_NAME specifies the default name of the directory to mount
# as root via NFS, if the kernel does not get the "root=" option from
# the boot loader. The "%s" will be replaced by the IP-number of the
# local system.
#
NFS_ROOT = -DNFS_ROOT="\"/joplin/ppc/root\""

HEAD := arch/ppc/kernel/head.o

ARCH_SUBDIRS = arch/ppc/kernel arch/ppc/mm arch/ppc/lib
SUBDIRS := $(SUBDIRS) $(ARCH_SUBDIRS)
ARCHIVES := arch/ppc/kernel/kernel.o arch/ppc/mm/mm.o arch/ppc/lib/lib.o $(ARCHIVES)


MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot

netboot: vmlinux
	@$(MAKEBOOT) netboot

znetboot: vmlinux
	@$(MAKEBOOT) znetboot

zImage: vmlinux
	@$(MAKEBOOT) zImage

floppy: vmlinux
	@$(MAKEBOOT) floppy

install: vmlinux
	@$(MAKEBOOT) install

arch/ppc/kernel: dummy
	$(MAKE) linuxsubdirs SUBDIRS=arch/ppc/kernel

arch/ppc/mm: dummy
	$(MAKE) linuxsubdirs SUBDIRS=arch/ppc/mm

arch/ppc/lib: dummy
	$(MAKE) linuxsubdirs SUBDIRS=arch/ppc/lib


archclean:
	rm -f arch/ppc/kernel/mk_defs arch/ppc/kernel/ppc_defs.h TAGS
	@$(MAKEBOOT) clean

archdep:

corttags :
	etags arch/ppc/*/*.c include/asm/* */*.c drivers/*/*.c net/*.c