clk: samsung: Add bus clock for GPU/G3D on Exynos4412
[linux/fpc-iii.git] / arch / nds32 / Makefile
blobac3482882cf93e50b165ac3896712fc65ce66e65
1 LDFLAGS_vmlinux := --no-undefined -X
2 OBJCOPYFLAGS := -O binary -R .note -R .note.gnu.build-id -R .comment -S
4 KBUILD_DEFCONFIG := defconfig
6 ifdef CONFIG_FUNCTION_TRACER
7 arch-y += -malways-save-lp -mno-relax
8 endif
10 # Avoid generating FPU instructions
11 arch-y += -mno-ext-fpu-sp -mno-ext-fpu-dp -mfloat-abi=soft
13 KBUILD_CFLAGS += $(call cc-option, -mno-sched-prolog-epilog)
14 KBUILD_CFLAGS += -mcmodel=large
16 KBUILD_CFLAGS +=$(arch-y) $(tune-y)
17 KBUILD_AFLAGS +=$(arch-y) $(tune-y)
19 #Default value
20 head-y := arch/nds32/kernel/head.o
21 textaddr-y := $(CONFIG_PAGE_OFFSET)+0xc000
23 TEXTADDR := $(textaddr-y)
25 export TEXTADDR
28 # If we have a machine-specific directory, then include it in the build.
29 core-y += arch/nds32/kernel/ arch/nds32/mm/
30 core-$(CONFIG_FPU) += arch/nds32/math-emu/
31 libs-y += arch/nds32/lib/
33 ifneq '$(CONFIG_NDS32_BUILTIN_DTB)' '""'
34 BUILTIN_DTB := y
35 else
36 BUILTIN_DTB := n
37 endif
39 ifdef CONFIG_CPU_LITTLE_ENDIAN
40 KBUILD_CFLAGS += $(call cc-option, -EL)
41 KBUILD_AFLAGS += $(call cc-option, -EL)
42 KBUILD_LDFLAGS += $(call cc-option, -EL)
43 CHECKFLAGS += -D__NDS32_EL__
44 else
45 KBUILD_CFLAGS += $(call cc-option, -EB)
46 KBUILD_AFLAGS += $(call cc-option, -EB)
47 KBUILD_LDFLAGS += $(call cc-option, -EB)
48 CHECKFLAGS += -D__NDS32_EB__
49 endif
51 boot := arch/nds32/boot
52 core-y += $(boot)/dts/
54 Image: vmlinux
55 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
58 PHONY += vdso_install
59 vdso_install:
60 $(Q)$(MAKE) $(build)=arch/nds32/kernel/vdso $@
62 prepare: vdso_prepare
63 vdso_prepare: prepare0
64 $(Q)$(MAKE) $(build)=arch/nds32/kernel/vdso include/generated/vdso-offsets.h
66 archclean:
67 $(Q)$(MAKE) $(clean)=$(boot)
69 define archhelp
70 echo ' Image - kernel image (arch/$(ARCH)/boot/Image)'
71 endef