kill dentry_update_name_case()
[sfrench/cifs-2.6.git] / arch / nds32 / Makefile
1 LDFLAGS_vmlinux := --no-undefined -X
2 OBJCOPYFLAGS    := -O binary -R .note -R .note.gnu.build-id -R .comment -S
3
4 KBUILD_DEFCONFIG := defconfig
5
6 comma = ,
7
8 KBUILD_CFLAGS   += $(call cc-option, -mno-sched-prolog-epilog)
9 KBUILD_CFLAGS   += -mcmodel=large
10
11 KBUILD_CFLAGS   +=$(arch-y) $(tune-y)
12 KBUILD_AFLAGS   +=$(arch-y) $(tune-y)
13
14 #Default value
15 head-y           := arch/nds32/kernel/head.o
16 textaddr-y       := $(CONFIG_PAGE_OFFSET)+0xc000
17
18 TEXTADDR := $(textaddr-y)
19
20 export  TEXTADDR
21
22
23 # If we have a machine-specific directory, then include it in the build.
24 core-y                          += arch/nds32/kernel/ arch/nds32/mm/
25 libs-y                          += arch/nds32/lib/
26
27 ifneq '$(CONFIG_NDS32_BUILTIN_DTB)' '""'
28 BUILTIN_DTB := y
29 else
30 BUILTIN_DTB := n
31 endif
32
33 ifdef CONFIG_CPU_LITTLE_ENDIAN
34 KBUILD_CFLAGS   += $(call cc-option, -EL)
35 KBUILD_AFLAGS   += $(call cc-option, -EL)
36 LDFLAGS         += $(call cc-option, -EL)
37 else
38 KBUILD_CFLAGS   += $(call cc-option, -EB)
39 KBUILD_AFLAGS   += $(call cc-option, -EB)
40 LDFLAGS         += $(call cc-option, -EB)
41 endif
42
43 boot := arch/nds32/boot
44 core-$(BUILTIN_DTB) += $(boot)/dts/
45
46 .PHONY: FORCE
47
48 Image: vmlinux
49         $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
50
51
52 PHONY += vdso_install
53 vdso_install:
54         $(Q)$(MAKE) $(build)=arch/nds32/kernel/vdso $@
55
56 prepare: vdso_prepare
57 vdso_prepare: prepare0
58         $(Q)$(MAKE) $(build)=arch/nds32/kernel/vdso include/generated/vdso-offsets.h
59
60 CLEAN_FILES += include/asm-nds32/constants.h*
61
62 # We use MRPROPER_FILES and CLEAN_FILES now
63 archclean:
64         $(Q)$(MAKE) $(clean)=$(boot)
65
66 define archhelp
67   echo  '  Image         - kernel image (arch/$(ARCH)/boot/Image)'
68 endef