Blame view
arch/cris/Makefile
2.4 KB
2c2314bf6 CRIS: Update main... |
1 |
# |
1da177e4c Linux-2.6.12-rc2 |
2 3 4 5 6 7 8 9 10 11 |
# cris/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. |
8f808417f CRIS: proper defc... |
12 |
KBUILD_DEFCONFIG := etrax-100lx_v2_defconfig |
1da177e4c Linux-2.6.12-rc2 |
13 14 |
arch-y := v10 arch-$(CONFIG_ETRAX_ARCH_V10) := v10 |
3e41d6522 [PATCH] CRIS upda... |
15 |
arch-$(CONFIG_ETRAX_ARCH_V32) := v32 |
1da177e4c Linux-2.6.12-rc2 |
16 |
|
2c2314bf6 CRIS: Update main... |
17 18 19 20 |
# No config available for make clean etc mach-y := fs mach-$(CONFIG_CRIS_MACH_ARTPEC3) := a3 mach-$(CONFIG_ETRAXFS) := fs |
1da177e4c Linux-2.6.12-rc2 |
21 22 |
ifneq ($(arch-y),) SARCH := arch-$(arch-y) |
c5ec6fb08 [CRIS] Remove lin... |
23 24 |
inc := -Iarch/cris/include/$(SARCH) inc += -Iarch/cris/include/$(SARCH)/arch |
1da177e4c Linux-2.6.12-rc2 |
25 26 |
else SARCH := |
556dcee7b [CRIS] Move heade... |
27 |
inc := |
1da177e4c Linux-2.6.12-rc2 |
28 |
endif |
2c2314bf6 CRIS: Update main... |
29 30 |
ifneq ($(mach-y),) MACH := mach-$(mach-y) |
556dcee7b [CRIS] Move heade... |
31 32 |
inc += -Iarch/cris/include/$(SARCH)/$(MACH)/ inc += -Iarch/cris/include/$(SARCH)/$(MACH)/mach |
2c2314bf6 CRIS: Update main... |
33 34 35 |
else MACH := endif |
1da177e4c Linux-2.6.12-rc2 |
36 37 38 |
LD = $(CROSS_COMPILE)ld -mcrislinux OBJCOPYFLAGS := -O binary -R .note -R .comment -S |
556dcee7b [CRIS] Move heade... |
39 40 41 |
KBUILD_AFLAGS += -mlinux -march=$(arch-y) $(inc) KBUILD_CFLAGS += -mlinux -march=$(arch-y) -pipe $(inc) KBUILD_CPPFLAGS += $(inc) |
1da177e4c Linux-2.6.12-rc2 |
42 43 |
ifdef CONFIG_FRAME_POINTER |
a0f97e06a kbuild: enable 'm... |
44 45 |
KBUILD_CFLAGS := $(subst -fomit-frame-pointer,,$(KBUILD_CFLAGS)) -g KBUILD_CFLAGS += -fno-omit-frame-pointer |
1da177e4c Linux-2.6.12-rc2 |
46 |
endif |
c5ec6fb08 [CRIS] Remove lin... |
47 |
head-y := arch/cris/$(SARCH)/kernel/head.o |
1da177e4c Linux-2.6.12-rc2 |
48 |
|
a0f97e06a kbuild: enable 'm... |
49 |
LIBGCC = $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libgcc.a) |
1da177e4c Linux-2.6.12-rc2 |
50 |
|
c5ec6fb08 [CRIS] Remove lin... |
51 52 |
core-y += arch/cris/kernel/ arch/cris/mm/ core-y += arch/cris/$(SARCH)/kernel/ arch/cris/$(SARCH)/mm/ |
2c2314bf6 CRIS: Update main... |
53 |
ifdef CONFIG_ETRAX_ARCH_V32 |
c5ec6fb08 [CRIS] Remove lin... |
54 |
core-y += arch/cris/$(SARCH)/$(MACH)/ |
2c2314bf6 CRIS: Update main... |
55 |
endif |
c5ec6fb08 [CRIS] Remove lin... |
56 57 |
drivers-y += arch/cris/$(SARCH)/drivers/ libs-y += arch/cris/$(SARCH)/lib/ $(LIBGCC) |
1da177e4c Linux-2.6.12-rc2 |
58 |
|
3e41d6522 [PATCH] CRIS upda... |
59 |
# cris source path |
c5ec6fb08 [CRIS] Remove lin... |
60 |
SRC_ARCH = $(srctree)/arch/cris |
3e41d6522 [PATCH] CRIS upda... |
61 |
# cris object files path |
c5ec6fb08 [CRIS] Remove lin... |
62 |
OBJ_ARCH = $(objtree)/arch/cris |
3e41d6522 [PATCH] CRIS upda... |
63 |
|
66ab3a74c CRIS: Merge machi... |
64 |
boot := arch/cris/boot |
c5ec6fb08 [CRIS] Remove lin... |
65 |
MACHINE := arch/cris/$(SARCH) |
1da177e4c Linux-2.6.12-rc2 |
66 |
|
2c2314bf6 CRIS: Update main... |
67 |
all: zImage |
1da177e4c Linux-2.6.12-rc2 |
68 |
|
2c2314bf6 CRIS: Update main... |
69 70 |
zImage Image: vmlinux $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ |
1da177e4c Linux-2.6.12-rc2 |
71 |
|
c5ec6fb08 [CRIS] Remove lin... |
72 |
archprepare: |
1da177e4c Linux-2.6.12-rc2 |
73 |
|
2c2314bf6 CRIS: Update main... |
74 |
archclean: |
66ab3a74c CRIS: Merge machi... |
75 76 |
$(Q)if [ -e arch/cris/boot ]; then \ $(MAKE) $(clean)=arch/cris/boot; \ |
2c2314bf6 CRIS: Update main... |
77 78 79 |
fi CLEAN_FILES += \ |
66ab3a74c CRIS: Merge machi... |
80 81 82 83 |
$(boot)/zImage \ $(boot)/compressed/decompress.bin \ $(boot)/compressed/piggy.gz \ $(boot)/rescue/rescue.bin |
2c2314bf6 CRIS: Update main... |
84 |
|
0365f707c [CRIS] Merge asm-... |
85 |
|
c5ec6fb08 [CRIS] Remove lin... |
86 |
# MRPROPER_FILES += |
2c2314bf6 CRIS: Update main... |
87 88 |
define archhelp |
c5ec6fb08 [CRIS] Remove lin... |
89 90 |
echo '* zImage - Compressed kernel image (arch/cris/boot/zImage)' echo '* Image - Uncompressed kernel image (arch/cris/boot/Image)' |
2c2314bf6 CRIS: Update main... |
91 |
endef |