ARM: dts: UniPhier: add UART and USB pinmux nodes
[linux-2.6/btrfs-unstable.git] / arch / h8300 / Makefile
blob0d2d96e52d9fed374928fdd0be0466aca66827f1
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 CROSS_COMPILE := h8300-unknown-linux-
27 core-y += arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/
28 ifneq '$(CONFIG_H8300_BUILTIN_DTB)' '""'
29 core-y += arch/h8300/boot/dts/
30 endif
32 libs-y += arch/$(ARCH)/lib/
34 boot := arch/h8300/boot
36 %.dtb %.dtb.S %.dtb.o: | scripts
37 $(Q)$(MAKE) $(build)=arch/h8300/boot/dts arch/h8300/boot/dts/$@
39 PHONY += dtbs
40 dtbs: scripts
41 $(Q)$(MAKE) $(build)=arch/h8300/boot/dts
43 archmrproper:
45 archclean:
46 $(Q)$(MAKE) $(clean)=$(boot)
48 vmlinux.srec vmlinux.bin zImage uImage.bin: vmlinux
49 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
51 define archhelp
52 @echo 'vmlinux.bin - Create raw binary'
53 @echo 'vmlinux.srec - Create srec binary'
54 @echo 'zImage - Compressed kernel image'
55 endef