Merge branch 'fix/asoc' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / c6x / Makefile
blob1d08dd0702776678cc5d90b791e03767e402b64b
2 # linux/arch/c6x/Makefile
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.
9 cflags-y += -mno-dsbt -msdata=none
11 cflags-$(CONFIG_C6X_BIG_KERNEL) += -mlong-calls
13 CFLAGS_MODULE += -mlong-calls -mno-dsbt -msdata=none
15 CHECKFLAGS +=
17 KBUILD_CFLAGS += $(cflags-y)
18 KBUILD_AFLAGS += $(cflags-y)
20 ifdef CONFIG_CPU_BIG_ENDIAN
21 KBUILD_CFLAGS += -mbig-endian
22 KBUILD_AFLAGS += -mbig-endian
23 LINKFLAGS += -mbig-endian
24 KBUILD_LDFLAGS += -mbig-endian
25 LDFLAGS += -EB
26 endif
28 head-y := arch/c6x/kernel/head.o
29 core-y += arch/c6x/kernel/ arch/c6x/mm/ arch/c6x/platforms/
30 libs-y += arch/c6x/lib/
32 # Default to vmlinux.bin, override when needed
33 all: vmlinux.bin
35 boot := arch/$(ARCH)/boot
37 # Are we making a dtbImage.<boardname> target? If so, crack out the boardname
38 DTB:=$(subst dtbImage.,,$(filter dtbImage.%, $(MAKECMDGOALS)))
39 export DTB
41 ifneq ($(DTB),)
42 core-y += $(boot)/
43 endif
45 # With make 3.82 we cannot mix normal and wildcard targets
47 vmlinux.bin: vmlinux
48 $(Q)$(MAKE) $(build)=$(boot) $(patsubst %,$(boot)/%,$@)
50 dtbImage.%: vmlinux
51 $(Q)$(MAKE) $(build)=$(boot) $(patsubst %,$(boot)/%,$@)
53 archclean:
54 $(Q)$(MAKE) $(clean)=$(boot)
56 define archhelp
57 @echo ' vmlinux.bin - Binary kernel image (arch/$(ARCH)/boot/vmlinux.bin)'
58 @echo ' dtbImage.<dt> - ELF image with $(arch)/boot/dts/<dt>.dts linked in'
59 @echo ' - stripped elf with fdt blob'
60 endef