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