6 OBJCOPYFLAGS := -O binary -R .note -R .comment -S
7 LDFLAGS_vmlinux := -e startup_32
8 LDFLAGS_BLOB := --format binary --oformat elf32-m32r
10 CFLAGS += -pipe -fno-schedule-insns
11 CFLAGS_KERNEL += -mmodel=medium
12 CFLAGS_MODULE += -mmodel=large
14 ifdef CONFIG_CHIP_VDEC2
15 cflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -Wa,-bitinst
16 aflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -Wa,-bitinst
18 cflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -m32r2
19 aflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -m32r2
22 cflags-$(CONFIG_ISA_M32R) += -DNO_FPU
23 aflags-$(CONFIG_ISA_M32R) += -DNO_FPU -Wa,-no-bitinst
28 CHECKFLAGS := $(CHECK) -D__m32r__
30 head-y := arch/m32r/kernel/head.o arch/m32r/kernel/init_task.o
32 LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
34 libs-y += arch/m32r/lib/ $(LIBGCC)
35 core-y += arch/m32r/kernel/ \
39 drivers-$(CONFIG_OPROFILE) += arch/m32r/oprofile/
41 boot := arch/m32r/boot
46 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
51 $(Q)$(MAKE) $(clean)=$(boot)
54 @echo ' zImage - Compressed kernel image (arch/m32r/boot/zImage)'