Linux 2.6.22-rc7
[deliverable/linux.git] / arch / blackfin / Makefile
CommitLineData
1394f032
BW
1#
2# arch/blackfin/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
9
10CROSS_COMPILE ?= bfin-uclinux-
11LDFLAGS_vmlinux := -X
12OBJCOPYFLAGS := -O binary -R .note -R .comment -S
13GZFLAGS := -9
14
15CFLAGS_MODULE += -mlong-calls
16KALLSYMS += --symbol-prefix=_
17
ca9cb6fd 18KBUILD_DEFCONFIG := BF537-STAMP_defconfig
1394f032
BW
19
20# setup the machine name and the machine dependent settings
21machine-$(CONFIG_BF531) := bf533
22machine-$(CONFIG_BF532) := bf533
23machine-$(CONFIG_BF533) := bf533
24machine-$(CONFIG_BF534) := bf537
25machine-$(CONFIG_BF536) := bf537
26machine-$(CONFIG_BF537) := bf537
27machine-$(CONFIG_BF561) := bf561
28MACHINE := $(machine-y)
29export MACHINE
30
31
32head-y := arch/$(ARCH)/mach-$(MACHINE)/head.o arch/$(ARCH)/kernel/init_task.o
33
34core-y += arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/ arch/$(ARCH)/mach-common/
35
36# If we have a machine-specific directory, then include it in the build.
37ifneq ($(machine-y),)
38core-y += arch/$(ARCH)/mach-$(MACHINE)/
39core-y += arch/$(ARCH)/mach-$(MACHINE)/boards/
40endif
41
42libs-y += arch/$(ARCH)/lib/
43
44drivers-$(CONFIG_OPROFILE) += arch/$(ARCH)/oprofile/
45
46
47
48# Update machine arch symlinks if something which affects
49# them changed. We use .mach to indicate when they were updated
50# last, otherwise make uses the target directory mtime.
51
52include/asm-blackfin/.mach: $(wildcard include/config/arch/*.h) include/config/auto.conf
53 @echo ' SYMLINK include/asm-$(ARCH)/mach-$(MACHINE) -> include/asm-$(ARCH)/mach'
54ifneq ($(KBUILD_SRC),)
55 $(Q)mkdir -p include/asm-$(ARCH)
56 $(Q)ln -fsn $(srctree)/include/asm-$(ARCH)/mach-$(MACHINE) include/asm-$(ARCH)/mach
57else
58 $(Q)ln -fsn mach-$(MACHINE) include/asm-$(ARCH)/mach
59endif
60 @touch $@
61
62CLEAN_FILES += \
63 include/asm-$(ARCH)/asm-offsets.h \
64 arch/$(ARCH)/kernel/asm-offsets.s \
65 include/asm-$(ARCH)/mach \
66 include/asm-$(ARCH)/.mach
67
68archprepare: include/asm-blackfin/.mach
69archclean:
70 $(Q)$(MAKE) $(clean)=$(boot)
71
72
73all: vmImage
74boot := arch/$(ARCH)/boot
75BOOT_TARGETS = vmImage
76.PHONY: $(BOOT_TARGETS)
77$(BOOT_TARGETS): vmlinux
78 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
79define archhelp
80 echo '* vmImage - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage)'
81endef
This page took 0.048765 seconds and 5 git commands to generate.