aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m32r/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m32r/Makefile')
-rw-r--r--arch/m32r/Makefile56
1 files changed, 56 insertions, 0 deletions
diff --git a/arch/m32r/Makefile b/arch/m32r/Makefile
new file mode 100644
index 000000000000..dd4418d846e9
--- /dev/null
+++ b/arch/m32r/Makefile
@@ -0,0 +1,56 @@
1#
2# m32r/Makefile
3#
4
5LDFLAGS :=
6OBJCOPYFLAGS := -O binary -R .note -R .comment -S
7LDFLAGS_vmlinux := -e startup_32
8
9CFLAGS += -pipe -fno-schedule-insns
10CFLAGS_KERNEL += -mmodel=medium
11CFLAGS_MODULE += -mmodel=large
12
13ifdef CONFIG_CHIP_VDEC2
14cflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -Wa,-bitinst
15aflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -Wa,-bitinst
16else
17cflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -m32r2
18aflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -m32r2
19endif
20
21cflags-$(CONFIG_ISA_M32R) += -DNO_FPU
22aflags-$(CONFIG_ISA_M32R) += -DNO_FPU -Wa,-no-bitinst
23
24CFLAGS += $(cflags-y)
25AFLAGS += $(aflags-y)
26
27CHECKFLAGS := $(CHECK) -D__m32r__
28
29head-y := arch/m32r/kernel/head.o arch/m32r/kernel/init_task.o
30
31LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
32
33libs-y += arch/m32r/lib/ $(LIBGCC)
34core-y += arch/m32r/kernel/ \
35 arch/m32r/mm/ \
36 arch/m32r/boot/
37
38drivers-$(CONFIG_OPROFILE) += arch/m32r/oprofile/
39
40boot := arch/m32r/boot
41
42.PHONY: zImage
43
44all: zImage
45
46zImage: vmlinux
47 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
48
49compressed: zImage
50
51archclean:
52 $(Q)$(MAKE) $(clean)=$(boot)
53
54define archhelp
55 echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
56endef