]> bbs.cooldavid.org Git - net-next-2.6.git/blame - arch/cris/Makefile
gianfar: fix signedness issue
[net-next-2.6.git] / arch / cris / Makefile
CommitLineData
2c2314bf 1#
1da177e4
LT
2# cris/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
8f808417
AB
13KBUILD_DEFCONFIG := etrax-100lx_v2_defconfig
14
1da177e4
LT
15arch-y := v10
16arch-$(CONFIG_ETRAX_ARCH_V10) := v10
3e41d652 17arch-$(CONFIG_ETRAX_ARCH_V32) := v32
1da177e4 18
2c2314bf
JN
19# No config available for make clean etc
20mach-y := fs
21mach-$(CONFIG_CRIS_MACH_ARTPEC3) := a3
22mach-$(CONFIG_ETRAXFS) := fs
23
1da177e4
LT
24ifneq ($(arch-y),)
25SARCH := arch-$(arch-y)
c5ec6fb0
JN
26inc := -Iarch/cris/include/$(SARCH)
27inc += -Iarch/cris/include/$(SARCH)/arch
1da177e4
LT
28else
29SARCH :=
556dcee7 30inc :=
1da177e4
LT
31endif
32
2c2314bf
JN
33ifneq ($(mach-y),)
34MACH := mach-$(mach-y)
556dcee7
JN
35inc += -Iarch/cris/include/$(SARCH)/$(MACH)/
36inc += -Iarch/cris/include/$(SARCH)/$(MACH)/mach
2c2314bf
JN
37else
38MACH :=
39endif
40
1da177e4
LT
41LD = $(CROSS_COMPILE)ld -mcrislinux
42
43OBJCOPYFLAGS := -O binary -R .note -R .comment -S
44
556dcee7
JN
45KBUILD_AFLAGS += -mlinux -march=$(arch-y) $(inc)
46KBUILD_CFLAGS += -mlinux -march=$(arch-y) -pipe $(inc)
47KBUILD_CPPFLAGS += $(inc)
1da177e4
LT
48
49ifdef CONFIG_FRAME_POINTER
a0f97e06
SR
50KBUILD_CFLAGS := $(subst -fomit-frame-pointer,,$(KBUILD_CFLAGS)) -g
51KBUILD_CFLAGS += -fno-omit-frame-pointer
1da177e4
LT
52endif
53
c5ec6fb0 54head-y := arch/cris/$(SARCH)/kernel/head.o
1da177e4 55
a0f97e06 56LIBGCC = $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libgcc.a)
1da177e4 57
c5ec6fb0
JN
58core-y += arch/cris/kernel/ arch/cris/mm/
59core-y += arch/cris/$(SARCH)/kernel/ arch/cris/$(SARCH)/mm/
2c2314bf 60ifdef CONFIG_ETRAX_ARCH_V32
c5ec6fb0 61core-y += arch/cris/$(SARCH)/$(MACH)/
2c2314bf 62endif
c5ec6fb0
JN
63drivers-y += arch/cris/$(SARCH)/drivers/
64libs-y += arch/cris/$(SARCH)/lib/ $(LIBGCC)
1da177e4 65
3e41d652 66# cris source path
c5ec6fb0 67SRC_ARCH = $(srctree)/arch/cris
3e41d652 68# cris object files path
c5ec6fb0 69OBJ_ARCH = $(objtree)/arch/cris
3e41d652 70
66ab3a74 71boot := arch/cris/boot
c5ec6fb0 72MACHINE := arch/cris/$(SARCH)
1da177e4 73
2c2314bf 74all: zImage
1da177e4 75
2c2314bf
JN
76zImage Image: vmlinux
77 $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@
1da177e4 78
c5ec6fb0 79archprepare:
1da177e4 80
2c2314bf 81archclean:
66ab3a74
JN
82 $(Q)if [ -e arch/cris/boot ]; then \
83 $(MAKE) $(clean)=arch/cris/boot; \
2c2314bf
JN
84 fi
85
86CLEAN_FILES += \
66ab3a74
JN
87 $(boot)/zImage \
88 $(boot)/compressed/decompress.bin \
89 $(boot)/compressed/piggy.gz \
90 $(boot)/rescue/rescue.bin
2c2314bf 91
0365f707 92
c5ec6fb0 93# MRPROPER_FILES +=
2c2314bf
JN
94
95define archhelp
c5ec6fb0
JN
96 echo '* zImage - Compressed kernel image (arch/cris/boot/zImage)'
97 echo '* Image - Uncompressed kernel image (arch/cris/boot/Image)'
2c2314bf 98endef