1 # This file is included by the global makefile so that you can add your own
2 # architecture-specific flags and dependencies. Remember to do have actions
3 # for "archclean" and "archdep" for cleaning up and making dependencies for
6 # This file is subject to the terms and conditions of the GNU General Public
7 # License. See the file "COPYING" in the main directory of this archive
10 # Copyright (C) 1994 by Linus Torvalds
11 # Changes for PPC by Gary Thomas
12 # Rewritten by Cort Dougan and Paul Mackerras
15 KERNELLOAD
=0xc0000000
17 ifeq ($(shell uname
-m
),ppc
)
22 LINKFLAGS
= -T arch
/ppc
/vmlinux.lds
-Ttext
$(KERNELLOAD
) -Bstatic
23 CFLAGSINC
= -D__KERNEL__
-I
$(TOPDIR
)/include -D__powerpc__
24 CFLAGS
:= $(CFLAGS
) -D__powerpc__
-fsigned-char
-msoft-float
-pipe \
25 -fno-builtin
-ffixed-r2
-Wno-uninitialized
-mmultiple \
27 CPP
= $(CC
) -E
$(CFLAGS
)
30 CFLAGS
:= $(CFLAGS
) -mcpu
=860
34 CFLAGS
:= $(CFLAGS
) -Wa
,-mppc64bridge
#-mpowerpc64
37 HEAD
:= arch
/ppc
/kernel
/head.o
39 ARCH_SUBDIRS
= arch
/ppc
/kernel arch
/ppc
/mm arch
/ppc
/lib
40 SUBDIRS
:= $(SUBDIRS
) $(ARCH_SUBDIRS
)
41 ARCHIVES
:= arch
/ppc
/kernel
/kernel.o arch
/ppc
/mm
/mm.o arch
/ppc
/lib
/lib.o
$(ARCHIVES
)
42 CORE_FILES
:= arch
/ppc
/kernel
/kernel.o arch
/ppc
/mm
/mm.o arch
/ppc
/lib
/lib.o
$(CORE_FILES
)
45 SUBDIRS
+= arch
/ppc
/xmon
46 CORE_FILES
+= arch
/ppc
/xmon
/x.o
49 MAKEBOOT
= $(MAKE
) -C arch
/$(ARCH
)/boot
50 MAKECOFFBOOT
= $(MAKE
) -C arch
/$(ARCH
)/coffboot
51 MAKECHRPBOOT
= $(MAKE
) -C arch
/$(ARCH
)/chrpboot
52 MAKEMBXBOOT
= $(MAKE
) -C arch
/$(ARCH
)/mbxboot
55 SUBDIRS
+= arch
/ppc
/8xx_io
56 DRIVERS
+= arch
/ppc
/8xx_io
/8xx_io.a drivers
/net
/net.a
60 SUBDIRS
+= arch
/ppc
/amiga
61 ARCHIVES
+= arch
/ppc
/amiga
/amiga.o
62 CORE_FILES
+= arch
/ppc
/amiga
/amiga.o
66 @
$(MAKE
) -C arch
/$(ARCH
)/kernel checks
68 BOOT_TARGETS
= netboot znetboot zImage floppy
install \
69 vmlinux.coff znetboot.initrd zImage.initrd vmlinux.coff.initrd
72 $(BOOT_TARGETS
): $(CHECKS
) vmlinux
76 $(BOOT_TARGETS
): $(CHECKS
) vmlinux
83 rm -f .config arch
/ppc
/defconfig
84 ln
-s pmac_defconfig arch
/ppc
/defconfig
87 rm -f .config arch
/ppc
/defconfig
88 ln
-s prep_defconfig arch
/ppc
/defconfig
91 rm -f .config arch
/ppc
/defconfig
92 ln
-s chrp_defconfig arch
/ppc
/defconfig
95 rm -f .config arch
/ppc
/defconfig
96 ln
-s common_defconfig arch
/ppc
/defconfig
99 rm -f .config arch
/ppc
/defconfig
100 ln
-s mbx_defconfig arch
/ppc
/defconfig
103 rm -f .config arch
/ppc
/defconfig
104 ln
-s apus_defconfig arch
/ppc
/defconfig
107 etags
*/*.c
include/{asm
,linux
}/*.h arch
/ppc
/kernel
/*.
{c
,h
}
110 rm -f arch
/ppc
/kernel
/{mk_defs
,ppc_defs.h
,find_name
,checks
}
111 @
$(MAKECOFFBOOT
) clean
113 @
$(MAKECHRPBOOT
) clean
114 @
$(MAKEMBXBOOT
) clean
120 $(MAKECHRPBOOT
) fastdep