[PATCH] opti9x - Fix compile without CONFIG_PNP
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / m32r / Makefile
blob4b3c90ba926c7024108c4972680550126c03217e
2 # m32r/Makefile
5 LDFLAGS :=
6 OBJCOPYFLAGS := -O binary -R .note -R .comment -S
7 LDFLAGS_vmlinux := -e startup_32
9 CFLAGS += -pipe -fno-schedule-insns
10 CFLAGS_KERNEL += -mmodel=medium
11 CFLAGS_MODULE += -mmodel=large
13 ifdef CONFIG_CHIP_VDEC2
14 cflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -Wa,-bitinst
15 aflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -O2 -Wa,-bitinst -Wa,-no-parallel
16 else
17 cflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -m32r2
18 aflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -m32r2 -O2
19 endif
21 cflags-$(CONFIG_ISA_M32R) += -DNO_FPU
22 aflags-$(CONFIG_ISA_M32R) += -DNO_FPU -O2 -Wa,-no-bitinst
24 CFLAGS += $(cflags-y)
25 AFLAGS += $(aflags-y)
27 CHECKFLAGS += -D__m32r__ -D__BIG_ENDIAN__=1
29 head-y := arch/m32r/kernel/head.o arch/m32r/kernel/init_task.o
31 LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
33 libs-y += arch/m32r/lib/ $(LIBGCC)
34 core-y += arch/m32r/kernel/ \
35 arch/m32r/mm/ \
36 arch/m32r/boot/
38 drivers-$(CONFIG_OPROFILE) += arch/m32r/oprofile/
40 boot := arch/m32r/boot
42 .PHONY: zImage
44 all: zImage
46 zImage: vmlinux
47 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
49 compressed: zImage
51 archclean:
52 $(Q)$(MAKE) $(clean)=$(boot)
54 define archhelp
55 echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
56 endef