mm: fix exec activate_mm vs TLB shootdown and lazy tlb switching race
[linux/fpc-iii.git] / arch / h8300 / Makefile
blob073bba6f9f60a7f083781689bd198f387130a1ea
2 # arch/h8300/Makefile
4 # This file is subject to the terms and conditions of the GNU General Public
5 # License. See the file "COPYING" in the main directory of this archive
6 # for more details.
8 # (C) Copyright 2002-2015 Yoshinori Sato <ysato@users.sourceforge.jp>
11 cflags-$(CONFIG_CPU_H8300H) := -mh
12 aflags-$(CONFIG_CPU_H8300H) := -mh -Wa,--mach=h8300h
13 ldflags-$(CONFIG_CPU_H8300H) := -mh8300helf_linux
14 cflags-$(CONFIG_CPU_H8S) := -ms
15 aflags-$(CONFIG_CPU_H8S) := -ms -Wa,--mach=h8300s
16 ldflags-$(CONFIG_CPU_H8S) := -mh8300self_linux
18 KBUILD_CFLAGS += $(cflags-y)
19 KBUILD_CFLAGS += -mint32 -fno-builtin
20 KBUILD_CFLAGS += -D__linux__
21 KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\"
22 KBUILD_AFLAGS += $(aflags-y)
23 LDFLAGS += $(ldflags-y)
25 ifeq ($(CROSS_COMPILE),)
26 CROSS_COMPILE := $(call cc-cross-prefix, h8300-unknown-linux- h8300-linux-)
27 endif
29 core-y += arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/
30 ifneq '$(CONFIG_H8300_BUILTIN_DTB)' '""'
31 core-y += arch/h8300/boot/dts/
32 endif
34 libs-y += arch/$(ARCH)/lib/
36 boot := arch/h8300/boot
38 %.dtb %.dtb.S %.dtb.o: | scripts
39 $(Q)$(MAKE) $(build)=arch/h8300/boot/dts arch/h8300/boot/dts/$@
41 PHONY += dtbs
42 dtbs: scripts
43 $(Q)$(MAKE) $(build)=arch/h8300/boot/dts
45 archmrproper:
47 archclean:
48 $(Q)$(MAKE) $(clean)=$(boot)
50 vmlinux.srec vmlinux.bin zImage uImage.bin: vmlinux
51 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
53 define archhelp
54 @echo 'vmlinux.bin - Create raw binary'
55 @echo 'vmlinux.srec - Create srec binary'
56 @echo 'zImage - Compressed kernel image'
57 endef