Back to home page

LXR

 
 

    


0001 #
0002 # m32r/Makefile
0003 #
0004 # This file is included by the global makefile so that you can add your own
0005 # architecture-specific flags and dependencies.
0006 #
0007 
0008 KBUILD_DEFCONFIG := m32700ut.smp_defconfig
0009 
0010 LDFLAGS         :=
0011 OBJCOPYFLAGS    := -O binary -R .note -R .comment -S
0012 LDFLAGS_vmlinux :=
0013 
0014 KBUILD_CFLAGS += -pipe -fno-schedule-insns
0015 KBUILD_CFLAGS_KERNEL += -mmodel=medium
0016 KBUILD_CFLAGS_MODULE += -mmodel=large
0017 
0018 ifdef CONFIG_CHIP_VDEC2
0019 cflags-$(CONFIG_ISA_M32R2)      += -DNO_FPU -Wa,-bitinst
0020 aflags-$(CONFIG_ISA_M32R2)      += -DNO_FPU -O2 -Wa,-bitinst -Wa,-no-parallel
0021 else
0022 cflags-$(CONFIG_ISA_M32R2)      += -DNO_FPU -m32r2
0023 aflags-$(CONFIG_ISA_M32R2)      += -DNO_FPU -m32r2 -O2
0024 endif
0025 
0026 cflags-$(CONFIG_ISA_M32R)       += -DNO_FPU
0027 aflags-$(CONFIG_ISA_M32R)       += -DNO_FPU -O2 -Wa,-no-bitinst
0028 
0029 KBUILD_CFLAGS += $(cflags-y)
0030 KBUILD_AFLAGS += $(aflags-y)
0031 
0032 CHECKFLAGS      += -D__m32r__ -D__BIG_ENDIAN__=1
0033 
0034 head-y  := arch/m32r/kernel/head.o
0035 
0036 LIBGCC  := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
0037 
0038 libs-y  += arch/m32r/lib/ $(LIBGCC)
0039 core-y  += arch/m32r/kernel/    \
0040            arch/m32r/mm/        \
0041            arch/m32r/boot/      \
0042            arch/m32r/platforms/
0043 
0044 drivers-$(CONFIG_OPROFILE)      += arch/m32r/oprofile/
0045 
0046 boot := arch/m32r/boot
0047 
0048 PHONY += zImage
0049 
0050 all: zImage
0051 
0052 zImage: vmlinux
0053         $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
0054 
0055 compressed: zImage
0056 
0057 archclean:
0058         $(Q)$(MAKE) $(clean)=$(boot)
0059 
0060 define archhelp
0061         echo  '* zImage          - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
0062 endef