]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/m32r/Makefile
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / arch / m32r / Makefile
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
1da177e4
LT
2#
3# m32r/Makefile
4#
4f193362
PS
5# This file is included by the global makefile so that you can add your own
6# architecture-specific flags and dependencies.
7#
1da177e4 8
7622b464
AB
9KBUILD_DEFCONFIG := m32700ut.smp_defconfig
10
1da177e4
LT
11LDFLAGS :=
12OBJCOPYFLAGS := -O binary -R .note -R .comment -S
3d60f849 13LDFLAGS_vmlinux :=
1da177e4 14
a0f97e06 15KBUILD_CFLAGS += -pipe -fno-schedule-insns
80c00ba9 16KBUILD_CFLAGS_KERNEL += -mmodel=medium
6588169d 17KBUILD_CFLAGS_MODULE += -mmodel=large
1da177e4
LT
18
19ifdef CONFIG_CHIP_VDEC2
20cflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -Wa,-bitinst
cde05cf2 21aflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -O2 -Wa,-bitinst -Wa,-no-parallel
1da177e4
LT
22else
23cflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -m32r2
cde05cf2 24aflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -m32r2 -O2
1da177e4
LT
25endif
26
27cflags-$(CONFIG_ISA_M32R) += -DNO_FPU
cde05cf2 28aflags-$(CONFIG_ISA_M32R) += -DNO_FPU -O2 -Wa,-no-bitinst
1da177e4 29
a0f97e06 30KBUILD_CFLAGS += $(cflags-y)
222d394d 31KBUILD_AFLAGS += $(aflags-y)
1da177e4 32
c74dbac7 33CHECKFLAGS += -D__m32r__ -D__BIG_ENDIAN__=1
1da177e4 34
7433c5cf 35head-y := arch/m32r/kernel/head.o
1da177e4 36
a0f97e06 37LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
1da177e4
LT
38
39libs-y += arch/m32r/lib/ $(LIBGCC)
40core-y += arch/m32r/kernel/ \
41 arch/m32r/mm/ \
3264f976
HT
42 arch/m32r/boot/ \
43 arch/m32r/platforms/
1da177e4
LT
44
45drivers-$(CONFIG_OPROFILE) += arch/m32r/oprofile/
46
47boot := arch/m32r/boot
48
4f193362 49PHONY += zImage
1da177e4
LT
50
51all: zImage
52
53zImage: vmlinux
54 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
55
56compressed: zImage
57
58archclean:
59 $(Q)$(MAKE) $(clean)=$(boot)
60
61define archhelp
62 echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
63endef