Root/
1 | # |
2 | # linux/arch/c6x/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 | KBUILD_DEFCONFIG := dsk6455_defconfig |
10 | |
11 | cflags-y += -mno-dsbt -msdata=none |
12 | |
13 | cflags-$(CONFIG_C6X_BIG_KERNEL) += -mlong-calls |
14 | |
15 | CFLAGS_MODULE += -mlong-calls -mno-dsbt -msdata=none |
16 | |
17 | CHECKFLAGS += |
18 | |
19 | KBUILD_CFLAGS += $(cflags-y) |
20 | KBUILD_AFLAGS += $(cflags-y) |
21 | |
22 | ifdef CONFIG_CPU_BIG_ENDIAN |
23 | KBUILD_CFLAGS += -mbig-endian |
24 | KBUILD_AFLAGS += -mbig-endian |
25 | LINKFLAGS += -mbig-endian |
26 | KBUILD_LDFLAGS += -mbig-endian |
27 | LDFLAGS += -EB |
28 | endif |
29 | |
30 | head-y := arch/c6x/kernel/head.o |
31 | core-y += arch/c6x/kernel/ arch/c6x/mm/ arch/c6x/platforms/ |
32 | libs-y += arch/c6x/lib/ |
33 | |
34 | # Default to vmlinux.bin, override when needed |
35 | all: vmlinux.bin |
36 | |
37 | boot := arch/$(ARCH)/boot |
38 | |
39 | # Are we making a dtbImage.<boardname> target? If so, crack out the boardname |
40 | DTB:=$(subst dtbImage.,,$(filter dtbImage.%, $(MAKECMDGOALS))) |
41 | export DTB |
42 | |
43 | ifneq ($(DTB),) |
44 | core-y += $(boot)/dts/ |
45 | endif |
46 | |
47 | # With make 3.82 we cannot mix normal and wildcard targets |
48 | |
49 | vmlinux.bin: vmlinux |
50 | $(Q)$(MAKE) $(build)=$(boot) $(patsubst %,$(boot)/%,$@) |
51 | |
52 | dtbImage.%: vmlinux |
53 | $(Q)$(MAKE) $(build)=$(boot) $(patsubst %,$(boot)/%,$@) |
54 | |
55 | archclean: |
56 | $(Q)$(MAKE) $(clean)=$(boot) |
57 | |
58 | define archhelp |
59 | @echo ' vmlinux.bin - Binary kernel image (arch/$(ARCH)/boot/vmlinux.bin)' |
60 | @echo ' dtbImage.<dt> - ELF image with $(arch)/boot/dts/<dt>.dts linked in' |
61 | @echo ' - stripped elf with fdt blob' |
62 | endef |
63 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9