mm: fix exec activate_mm vs TLB shootdown and lazy tlb switching race
[linux/fpc-iii.git] / arch / m32r / Makefile
blobd73b58c847a63f3786ac3e69da0795363ee74ca7
1 # SPDX-License-Identifier: GPL-2.0
3 # m32r/Makefile
5 # This file is included by the global makefile so that you can add your own
6 # architecture-specific flags and dependencies.
9 KBUILD_DEFCONFIG := m32700ut.smp_defconfig
11 LDFLAGS :=
12 OBJCOPYFLAGS := -O binary -R .note -R .comment -S
13 LDFLAGS_vmlinux :=
15 KBUILD_CFLAGS += -pipe -fno-schedule-insns
16 KBUILD_CFLAGS_KERNEL += -mmodel=medium
17 KBUILD_CFLAGS_MODULE += -mmodel=large
19 ifdef CONFIG_CHIP_VDEC2
20 cflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -Wa,-bitinst
21 aflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -O2 -Wa,-bitinst -Wa,-no-parallel
22 else
23 cflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -m32r2
24 aflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -m32r2 -O2
25 endif
27 cflags-$(CONFIG_ISA_M32R) += -DNO_FPU
28 aflags-$(CONFIG_ISA_M32R) += -DNO_FPU -O2 -Wa,-no-bitinst
30 KBUILD_CFLAGS += $(cflags-y)
31 KBUILD_AFLAGS += $(aflags-y)
33 CHECKFLAGS += -D__m32r__ -D__BIG_ENDIAN__=1
35 head-y := arch/m32r/kernel/head.o
37 LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
39 libs-y += arch/m32r/lib/ $(LIBGCC)
40 core-y += arch/m32r/kernel/ \
41 arch/m32r/mm/ \
42 arch/m32r/boot/ \
43 arch/m32r/platforms/
45 drivers-$(CONFIG_OPROFILE) += arch/m32r/oprofile/
47 boot := arch/m32r/boot
49 PHONY += zImage
51 all: zImage
53 zImage: vmlinux
54 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
56 compressed: zImage
58 archclean:
59 $(Q)$(MAKE) $(clean)=$(boot)
61 define archhelp
62 echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
63 endef